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
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.
5 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
Dan Walmsley
68e8541f75
use thickness as the ExtendClientArea hint.
6 years ago
Dan Walmsley
1168dd186d
add client area extending api to window.
6 years ago
Dariusz Komosinski
a04e187fa0
Extra parameter doc.
6 years ago
Dariusz Komosinski
d69718ab61
Reimplement new child window support.
6 years ago
Dan Walmsley
2501698af1
whitespace
6 years ago
Dan Walmsley
c928700feb
make copy of list before enumerating.
6 years ago
Dan Walmsley
578443d6e0
nits
6 years ago
Dan Walmsley
97ae32c619
fix collection modified exception.
6 years ago
Dan Walmsley
0e59c05b55
implement closing chain logic.
6 years ago
Dan Walmsley
86ac0ff5a5
OSX implement SetParent
6 years ago
Dan Walmsley
313a292fc4
extend api so that when a parent is set you can state if the current window becomes modal.
6 years ago