Max Katz
50a97dc22f
Add more popup tests
4 years ago
Simon Haines
54f82b26a5
Fix positioning of non-overlay popups
When a native popup window is positioned relative to a placement target on
the root window and the root window is moved or resized, the popup position
should update to reflect the new position of the placement target.
If a native popup window is positioned relative to another popup, as in the
case of sub-menus, and the parent popup is moved due to a change in the
position of its placement target, the child popup should also update
relative to the new position of the parent popup.
4 years ago
Max Katz
0709bbfe0f
Fix tests
4 years ago
amwx
952c53cdff
Add tests
6 years ago
amwx
52075d6cd9
Fix Test
6 years ago
amwx
05c6978617
Try to get test to pass on CI
6 years ago
amwx
4e2dc7f5db
Add test
6 years ago
Przemysław Onak
db98c340d6
Add test to check if popup is displayed correctly after window is shown
6 years ago
Przemysław Onak
de5dd5096e
Schedule opening popup if cannot be opened right now
6 years ago
Steven Kirk
714b0740db
Make leak tests pass again.
6 years ago
Steven Kirk
c45436dff1
Added Popup.OverlayDismissEventPassThrough.
To control whether dismiss events are passed through from the overlay layer to the underlying window content.
6 years ago
Steven Kirk
b2a7339b4b
Added Popup.IsLightDismissEnabled property.
And deprecate `StaysOpen` in favor of this property.
6 years ago
Steven Kirk
529b279549
Fix failing popup tests.
6 years ago
Dan Walmsley
4bc1801c2a
fix popup tests.
6 years ago
Steven Kirk
af950096cc
Added failing test for #3784 .
Had to refactor the `MockWindowingPlatform` a bit.
6 years ago
Steven Kirk
a98b22c40c
Pass close event to Popup.Closed.
So that the event can be marked as handled if necessary. Mark the event as handled in `AutoCompleteBox`, `ComboBox` and `DatePicker`, but _not_ `ContextMenu`. Fixes #3760 .
6 years ago
Steven Kirk
252733e41f
Added failing test for #3760 .
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
01d26ed2ee
Failing unit tests for ComboBox losing focus on detach and Popup.Close raising Closed events for already closed popup.
6 years ago
Nikita Tsukanov
07ed194c9d
Review comments
7 years ago
Steven Kirk
c65b5de959
Move setting popup TemplatedParent...
...out of `PopupRoot` and into `Popup`. Fixes styling problems in `Popups` hosted in control templates.
7 years ago
Steven Kirk
6caa06f52b
Remove PopupContentHost.
It's no longer needed now the bug fix in 669c6511d6 is in place.
7 years ago
Nikita Tsukanov
f9561260a3
IPopupImpl is now optional advanced feature
7 years ago
Nikita Tsukanov
fafd27243f
Fixed tests
7 years ago
Nikita Tsukanov
79cf3e5cea
Completely re-create PopupRoot on reopening Popup
7 years ago
Nikita Tsukanov
8e5c8fee07
Somewhat fixed tests
7 years ago
Dariusz Komosinski
3c787b3d4d
Fix events for ContextMenu and Popup.
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Jeremy Koritzinsky
b0d013ad25
Fix tests.
8 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
8 years ago
Steven Kirk
2bd26bd9b8
Added failing test for #1245 .
9 years ago
Steven Kirk
090a1ec8cf
Lazily initialize Styles.
Added an `IStyleHost.IsStylesInitialized` property to prevent the need for allocating empty `Styles` collections for many controls.
9 years ago
Nikita Tsukanov
eb6bfd3de8
Moved layout manager from service locator to ILayoutRoot
9 years ago
Steven Kirk
4730ee1c41
Fix spelling of descendant.
While "descendent" is an acceptable English spelling, "descendant" is the common spelling.
9 years ago
Steven Kirk
6afa000c42
Added a render loop.
Rather than repainting whenever, this adds a render loop which is called
N times per second. IRenderQueueManager and ITopLevelRenderer have been
removed, replaced by IRenderer.
10 years ago
Steven Kirk
b61adbfd64
Detach PopupRoot from logical tree...
When parent `Popup` is detached. Together with previous comit also fixes
#706 .
10 years ago
Jeremy Koritzinsky
1429c4dd95
Fixed failing tests.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
eec9a1f44a
Added shared TestRoot class.
And use it in every unit test project except SceneGraph as that one is
different.
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Nikita Tsukanov
3c78704f55
Fix for tests
10 years ago
Steven Kirk
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
Steven Kirk
25fa7ddc6a
Added Carousel and CheckBox XAML styles.
11 years ago
Steven Kirk
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
11 years ago
Nikita Tsukanov
a61fdc86b2
Removed IPlatformThreadingInterface mock since it's broken anyway
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago