Nikita Tsukanov
c456998ce8
Make sure that TopLevel is no longer the actual root of the visual tree. This is needed for our future changes.
4 weeks ago
Julien Lebosquain
960cb39414
Enable nullability in Controls.UnitTests ( #20373 )
3 months ago
Nikita Tsukanov
fedbb270c0
Make sure that tests inherit from ScropedTestBase ( #18690 )
11 months ago
Max Katz
1cfa82ca57
Custom popup placement callback ( #15667 )
* Add CustomPopupPlacement API
* Add Placement="Custom" support for Flyout, ToolTip and ContextMenu controls as well
* Adjust some API changes
* Add Avalonia.Controls.Primitives.IPopupHost.ConfigurePosition breaking change
* Extract new types into separated files
* Fix build after merge conflict
* Adjust nupkg.xml
* Dispose property subscriptions after popup is closed, avoiding flickering
* Adjust API to be more future proof and add new parameters.
* Add new ContextRequestedEventArgs overload while I am on it
2 years ago
robloo
2eb04c2719
Rename Popup.PlacementMode to Popup.Placement
3 years ago
Steven Kirk
6f03f1c3d6
Removed ITemplatedControl.
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Steven Kirk
086c2c7e70
Don't apply styling in TopLevel ctor.
Applying styling in the constructor isn't a good idea as demonstrated by #8549..
Instead apply styling when showing a window, or if it's needed call `ApplyStyling` manually, e.g. in unit tests.
Fixes #8549
3 years ago
Emmanuel Hansen
588001d3e7
revert tests
3 years ago
Emmanuel Hansen
6384c49cdb
update tests
3 years ago
Giuseppe Lippolis
de4b55f8ee
feat(tests): Address rule CA1822
3 years ago
Steven Kirk
6b2cedfcd1
Fix failing test.
It was probably not a good idea to test the contents of the template explicitly in unit tests, but here we are...
4 years ago
Steven Kirk
fc711e7c86
Measure PopupRoot to MaxAutoSizeHint.
On win32 popup's don't receive `WM_GETMINMAXINFO` so instead query the monitor info for the max work area,
6 years ago
Dan Walmsley
4bc1801c2a
fix popup tests.
6 years ago
Steven Kirk
2fcde9e34d
Use OnApplyTemplate instead of OnTemplateApplied.
- More similar to WPF API
- Less bug-prone (see #3744 )
`OnTemplateApplied` still exists, but is deprecated and does nothing.
6 years ago
Steven Kirk
ec24030bac
Added another failing PopupRoot test.
6 years ago
Steven Kirk
908eef0b0d
Added failing tests for #3796 .
6 years ago
Steven Kirk
af950096cc
Added failing test for #3784 .
Had to refactor the `MockWindowingPlatform` a bit.
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
Steven Kirk
3a914c282b
Don't declare property fields AvaloniaProperty<>.
Instead use `StyledProperty<>`.
6 years ago
Steven Kirk
d7357ec876
Remove ContentControlMixin.
And implement the functionality in the content controls themselves. `ContentControlMixin` was too complex and even with its complexity had bugs (such as in #2821 ). By moving the functionality to the content controls there is some repeated code but it's much more straightforward.
7 years ago
Nikita Tsukanov
07ed194c9d
Review comments
7 years ago
Nikita Tsukanov
f9561260a3
IPopupImpl is now optional advanced feature
7 years ago
Nikita Tsukanov
8e5c8fee07
Somewhat fixed tests
7 years ago
Nikita Tsukanov
35f64af761
Make toplevels responsible of creating popups
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Jeremy Koritzinsky
8bcd07730a
Change StylingParent for Popup to be PopupRoot so local styles flow to it.
8 years ago
Jeremy Koritzinsky
bdaf4a2046
Fix #1182 .
8 years ago
Steven Kirk
546cbca0ef
Added failing test for #1247 .
8 years ago
Steven Kirk
a232b137b5
Allow reuse of existing tooltip popup.
To do this, had to fix a problem where templated children weren't notified of being re-attached to a logical tree.
9 years ago