Steven Kirk
ba369a9059
Fix auto-scaling on win32.
- Adds a "resize reason" to platform `Resized` events
- Which is used by the auto-sizing code to determine whether to reset `SizeToContent`
- Also other improvements to the reset logic for `SizeToContent`:
- Don't reset it if the size hasn't changed
- Don't reset it if `CanResize == false`
- Only reset the dimensions whose size has changed
- Obsolete the `BeginAutoSizing`/`AutoSizing` feature in `WindowBase`
5 years ago
Steven Kirk
a42334d128
Hide child windows when hiding parent/owner.
5 years ago
Steven Kirk
15cdee1bee
Ensure parent/owner windows are visible when showing child.
5 years ago
Steven Kirk
69852a56f5
Don't allow self as parent/owner window.
5 years ago
Steven Kirk
ea3f85e126
Don't allow using a closed window as a parent/owner.
5 years ago
Dan Walmsley
69a149f0ca
use inline data.
5 years ago
Dan Walmsley
f829137f73
add unit tests for window close when os button is clicked
5 years ago
Dan Walmsley
19e5b277f2
add unit tests.
5 years ago
Dan Walmsley
4aa51e80da
fix more tests.
6 years ago
Dan Walmsley
2ad4002686
fix unit tests.
6 years ago
Dan Walmsley
0148106f54
Seperate RenderScaling from DesktopScaling.
6 years ago
Dan Walmsley
2f1974684e
fix unit test.
6 years ago
Steven Kirk
dc75bf512a
Run sizing tests with both Show and ShowDialog.
One test now failing with `ShowDialog` due to #3843 .
6 years ago
Dariusz Komosinski
1624e88ba3
Remove Window.ShowDialog variant that takes IWindowImpl.
6 years ago
Steven Kirk
95735d239b
Measure Window to MaxAutoSizeHint.
- Renamed `MaxClientSize` to `MaxAutoSizeHint`
- On Windows get its value from `WM_GETMINMAXINFO` message
- Remove `ILayoutRoot.MaxClientSize` as it's not used any more
6 years ago
Steven Kirk
df6dc0abb7
Fix window sizing tests.
We need to make sure the window is being measured the correct number of times to know that the measure pass is correct.
6 years ago
Steven Kirk
908eef0b0d
Added failing tests for #3796 .
6 years ago
Steven Kirk
c6860ceefa
Bypass ArrangeCore logic in top-level controls.
Top-level controls cannot have a `Bounds` offset, and their `(Min)/(Max)/Width` and `(Min)/(Max)/Height` reflects the client size of the actual window, so don't need to be applied at the layout level.
Fixes #3784
6 years ago
Steven Kirk
af950096cc
Added failing test for #3784 .
Had to refactor the `MockWindowingPlatform` a bit.
6 years ago
Steven Kirk
13f50f83e7
Remove old outdated header.
6 years ago
Steven Kirk
9763faec3a
Added failing test for #3569 .
And one passing test too.
6 years ago
Steven Kirk
b8b8e3f8cc
Fix IWindowImpl mocks to call Close on Dispose.
6 years ago
Dan Walmsley
17c4c10404
fix unit test for window center location.
6 years ago
Nikita Tsukanov
8e5c8fee07
Somewhat fixed tests
7 years ago
Nikita Tsukanov
9343ba4c23
Wired up the popup positioner
Tests are failing because they are trying create popups out of a thin air
7 years ago
Nikita Tsukanov
3655b6eea1
Move Application.Windows to IClassicDesktopStyleApplicationLifetime
7 years ago
Nikita Tsukanov
b33601ee9b
Refactored lifetime control into separate lifetime classes
7 years ago
Steven Kirk
1e74e8fc60
Add failing tests for #2388 .
7 years ago
Steven Kirk
068acb6376
Added TopLevel.Opened unit tests.
7 years ago
Steven Kirk
4ec2b1c554
Use PixelPoint and PixelRect for device points/rects.
The affected members are:
- `IWindowBaseImpl.Position`
- `IWindowBaseImpl.PositionChanged`
- `ITopLevelImpl.PointToClient`
- `ITopLevelImpl.PointToScreen`
- `IMouseDevice.Position`
- `Screen.Bounds`
- `Screen.WorkingArea`
7 years ago
Nikita Tsukanov
5cd7c1f6f4
Reworked dialogs for GTK/Win32
7 years ago
José Pedro
f32e71c977
Fixed Window.Close, so that Closing is only invoked once.
8 years ago
Benedikt Schroeder
e576ec178c
Initial
8 years ago
Steven Kirk
53397a2aab
Added failing test for #1423 .
8 years ago
José Pedro
2cc4b41acc
Use Screen API.
8 years ago
Steven Kirk
d2eca3968b
Removed IRendererFactory.
Make the `ITopLevelImpl` create the renderer instead.
9 years ago
José Pedro
1eee17345b
Implemented Window.WindowStartupLocation and WindowBase.Owner.
9 years ago
Steven Kirk
daf59b8497
Start/stop the renderer on window show/hide.
9 years ago
Steven Kirk
5a819c1c87
Make Window.OpenWindows readonly
And hack around the fact that it's static in unit tests.
9 years ago
Steven Kirk
a7ff93450e
Fixed problems with Windows.OpenWindows.
- Showing a window was causing it to be added to the collection twice because `Show()` called `IsVisible = true` which called `Show()`
- The window wasn't getting removed when the `PlatformImpl` signalled it was closed
9 years ago
Steven Kirk
4e719262c4
Make WindowBase.IsVisible return correct value.
`WindowBase.IsVisible` now tracks the visibility of the window. Still
needs to call `Show` and `Hide` when changed.
9 years ago
Steven Kirk
d7703d619c
Fixed failing test.
And removed `TestServices.WindowImpl` as it was being ignored.
9 years ago
Steven Kirk
65dd1a423b
Use the default compile items in unit tests.
For the tests that have been ported to .net core at least.
9 years ago
Steven Kirk
b5e93b67fe
Make Window.IsVisible track window visibility.
9 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
d11d779414
Trying to fix capitalization of tests and docs AGAIN.
11 years ago
Steven Kirk
1a2fba4798
Revert "Fixed casing of Docs and Tests directories."
This reverts commit 845b28a2c2 .
11 years ago
Steven Kirk
845b28a2c2
Fixed casing of Docs and Tests directories.
11 years ago
Steven Kirk
6794fc7407
Fix setting window title.
Closes #82 .
11 years ago