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
Dan Walmsley
4e0e72abf6
remove redundant call
6 years ago
Dan Walmsley
c8e27b597c
use owner property.
6 years ago
Dan Walmsley
5dffe72af8
Closing event re-enabled parent.
6 years ago
Dan Walmsley
0116f7ad96
remove disabledBy array on win32.
6 years ago
Dan Walmsley
e434d68f2e
implement showdialog using new apis.
6 years ago
Steven Kirk
be316e9aaf
Disable warnings when implementing deprecated API members.
6 years ago
Steven Kirk
4ee9700f08
Set initial size when showing Window as dialog.
Fixes #3843 .
6 years ago
Steven Kirk
4a752c3f48
Get non-animated change information.
- Pass information for all property changes to `OnPropertyChangedCore`; whether they result in an effective value change or not
- Added `GetBaseValue` to get a value with a specified priority
- Change the signature of `OnPropertyChanged` again to take an `AvaloniaPropertyChangedEventArgs<T>`
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
5b5c2e44c7
Fix window sizing again.
We need to measure with the client size when `SizeToContent` is `Manual`.
6 years ago
Steven Kirk
945054be25
Make Window and Popup respect layout properties.
Had to remove syncing client size to `Width`/`Height` in `PopupRoot` bceause without the `SizeToContent` property it was impossible to tell whether its `Width`/`Height` came from a requested bound or from the actual window size.
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
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Dariusz Komosinski
764e7aff01
Initial refactor of win32 window.
6 years ago
Steven Kirk
5d007606ba
Rework HasSystemDecorations.
Make it a direct property that is backed by `SystemDecorations`. Moved the changed handlers to `OnPropertyChanged`.
6 years ago
Nathan Garside
e5f0ac3dda
Fix event binding for HasSystemDecorations property
6 years ago
Steven Kirk
195c7ba6ea
Don't ignore available size in window measure.
Fixes #3569 .
6 years ago
Steven Kirk
384ff5992a
Allow assigning null to Window.Icon.
6 years ago
Nathan Garside
7b9d32af85
Rework system decorations
6 years ago
Dan Walmsley
0d2e10498f
Window shouldnt call HandleClosed as this is called by TopLevel signaled by backed Closed event.
7 years ago
Jumar Macato
88446b1e9e
Pass PointerPressed event to BeginModeDrag and BeginResizeDrag.
7 years ago