Dan Walmsley
947e358733
fix opening child window center screen when parent maximized.
4 years ago
Steven Kirk
77d80faec2
Fall back to CenterScreen when owner is minimized.
When showing a child window with `WindowStartupLocation = CenterOwner` to a minimized owner window, we were displaying the child in an invalid position. Use the WPF behavior of falling back to `CenterScreen` in this situation.
Fixes #7582
4 years ago
Steven Kirk
bdd576bfc0
Removed TopLevelImpl validating layer.
The validating layer introduced in #7369 has done its job and caught a few bugs, but was causing difficulties in certain places so removing it now.
Fixes #7573
4 years ago
Dan Walmsley
df360e164c
rename property.
4 years ago
Luis von der Eltz
563f313eb5
child window collection
4 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
Nikita Tsukanov
6ad1e3caf3
Fixed ITopLevelImpl API misuse, added validating layer
4 years ago
Giuseppe Lippolis
26722e410e
fixes: Window Control missing call base.OnPropertyChanged on override.
4 years ago
Steven Kirk
11c60b4294
Decouple automation peers from platform nodes.
Now peers are entirely unaware of the platform implementation.
5 years ago
Steven Kirk
59e18e3517
Add obsolete HandleResized to TopLevel/WindowBase too.
5 years ago
Steven Kirk
08566c36e2
Add in obsolete HandleResized for ApiCompat.
5 years ago
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
Steven Kirk
cd51d638e9
Pass dialog flag to window impl Show.
Not doing anything with it yet.
5 years ago
Nathan Garside
e652419927
Fix regression
5 years ago
Nathan Garside
d77d1fd5da
Rename to FrameSize
5 years ago
Dan Walmsley
75a7e36547
restore code
5 years ago
Dan Walmsley
a194fc12e2
OSX backend initial sizing now has same behavior as windows.
When window is not shown, and Resize is called, it will trigger a Resize event, that updates ClientSize.
5 years ago
Dan Walmsley
99cdff2d70
fix screen centering on OSX before window has been shown.
5 years ago
Dan Walmsley
ad9519102e
always set the window startuplocation before show.
5 years ago
Yoh Deadfall
b32cb382fb
Fixed popup positioning issue
5 years ago
Steven Kirk
8add2371c6
Make root automation node come from OS.
This will be needed for OSX.
5 years ago
Steven Kirk
2a44d8b564
Initial implementation of UI automation.
Follows WPF/UWP API as closely as possible. Limited to win32 right now. Broken in many places.
5 years ago
Dan Walmsley
8b2fb2711a
fix return value.
5 years ago
Dan Walmsley
e85da082b0
fix handleclosing logic.
5 years ago
Dan Walmsley
50a88ae2db
share cancel event args and ensure event is raised on all windows.
5 years ago
Dan Walmsley
460a5ba5ae
whitespace.
5 years ago
Dan Walmsley
411b8f0398
enumerate child windows and find out if close will be cancelled before closing.
5 years ago
Steven Kirk
ea90f05f83
Added Window.ShowActive for win32.
6 years ago
Giuseppe Lippolis
a6c705bf70
Update XML Comment
6 years ago
Steven Kirk
7a325af366
Fix auto-sizing on secondary monitors on win32.
- Allow nested calls to `BeginAutoSizing` - previously it was called twice when showing a window on a secondary monitor and when the second `using` block exited it cleared the autosizing state despite the outer block not completing
- Call `SetWindowStartupLocation` within the auto-sizing block. Moving to a secondary monitor causes a resize message.
6 years ago
Dan Walmsley
b88ec08b54
managed titlebar declared in xaml.
6 years ago
Dan Walmsley
e5324684a1
ensure managed titlebar is attached in window when template is applied.
6 years ago
Dan Walmsley
0148106f54
Seperate RenderScaling from DesktopScaling.
6 years ago
Dan Walmsley
cd647bb60c
add some more documentation.
6 years ago
Dan Walmsley
a8aff643f0
fix more nits.
6 years ago
Dan Walmsley
5ed9f0f420
fix some nits
6 years ago
Dan Walmsley
28fdb43ae0
windowimpl tells window then managed chrome is required.
6 years ago
Steven Kirk
d3c3741bec
No longer need to pass root to ExecuteInitialLayoutPass.
6 years ago
Dan Walmsley
64b2fdc80b
managed chrome compatible with fs.
6 years ago
Dan Walmsley
9e81245415
extend api only allows to turn titlebar on or off to maintain window integrity, and decoration margins dont include border margins.
6 years ago
Dan Walmsley
4152b2e365
Decorations Margin shouldnt include the border margin other wise users have to do subtractions.
6 years ago
Dan Walmsley
1e798be784
insert managed chrome when extend client area is enabled and hint flag is set.
6 years ago
Dan Walmsley
d587096e88
Add TitleBarHeight Hint.
6 years ago
Dan Walmsley
73d5025448
Add a readonly offscreen margin, to get the portion of the window that is offscreen.
6 years ago
Dan Walmsley
37e4e68b9d
add hints for further control over chrome.
6 years ago
Dan Walmsley
aea6f7bff9
Revert "use thickness as the ExtendClientArea hint."
This reverts commit 42673554085035e8a8a3435bc623ceb29f72e4db.
6 years ago