Max Katz
5ab8b06dce
Reset popup parent on context menu target detached
4 years ago
Wiesław Šoltés
c6eb413844
Use AddOwner for PlacementRectProperty
4 years ago
Steven Kirk
f8706278a8
Make OnPropertyChanged non-generic.
4 years ago
Tako
36f878b02a
Fix "ContextMenu ignores styles on first open"
4 years ago
Steven Kirk
d80cfbca18
Remove #nullable directives.
4 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
Steven Kirk
76667dbd0d
Finished adding nullable annotations to Avalonia.Base.
4 years ago
Steven Kirk
45d5ae503a
Update context menu popup parameters on each show.
Fixes #6795
4 years ago
Steven Kirk
0756c1b3be
Use new properties to remove some peers.
Simple peers which only change the accessibility view or control type can now use the new `AutomationProperties`.
5 years ago
Steven Kirk
11c60b4294
Decouple automation peers from platform nodes.
Now peers are entirely unaware of the platform implementation.
5 years ago
Luis von der Eltz
650ae63bd6
make "ctrl+shift+click" work
5 years ago
Max Katz
3caada808f
Refresh PlacementMode on context menu opened
5 years ago
Max Katz
18812a217f
Fix ContextMenu tests
5 years ago
Max Katz
72c975ac0b
Use ContextRequested event to show ContextMenu
5 years ago
Max Katz
5483071599
Fix cancellable contexts #6057
5 years ago
Steven Kirk
acc40a7e21
Add context menu automation peer.
And fixed NRE in MenuItemAutomationPeer.
5 years ago
Steven Kirk
97c3c10e2c
Respect ContextMenu.PlacementTarget again.
5 years ago
Steven Kirk
4003b1e40d
Pass clicked control as placement target.
Moved the implementation of `ContextMenu.Open` into a private method that accepts a control and a placement target. When calling `Open` due to a right-click in `ControlPointerReleased`, call this method with the clicked control as the placement target.
Fixes #5101
5 years ago
Andrey Kunchev
a045e963ac
ContextMenu.Open should call Open(null) so it doesn't break working scenarios
5 years ago
Dan Walmsley
b7168d4ae2
fix win32 square shadow border appearing on fluent menus.
5 years ago
Luis von der Eltz
a28dc2b9e4
Throw NotSupportedException inside ContextMenu.Open(null)
5 years ago
Dariusz Komosinski
c1bcdb9586
Allow for setting wm shadow hint on a context menu.
6 years ago
Dan Walmsley
505b54dd88
update _popup.Placement target everytime the context menu is opened.
6 years ago
Dan Walmsley
54cedcea87
dont allow text selection to be lost when context menu is opened... i.e. for copy and paste to work.
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
3780d1e8b5
Added PlacementConstraintAdjustment property.
To `Popup` and `ContextMenu`. Set default value to be `FlipX | FlipY` to try to match WPF's defaults.
6 years ago
Steven Kirk
964f0b85d4
Tweak doc comments.
6 years ago
Steven Kirk
4334c124b9
Added additional placement properties to ContextMenu.
6 years ago
Steven Kirk
372042b6f9
Added positioning properties to ContextMenu.
6 years ago
Steven Kirk
89fa3b77f5
Added nullable annotations to ContextMenu.
6 years ago
Steven Kirk
2048948541
Allow context menus to be shared.
Either via resources or styles.
6 years ago
Steven Kirk
5ad8c41f37
Fix NRE in ContextMenu.
6 years ago
Steven Kirk
c443336928
Fix leaks in attached context menu,
6 years ago
Steven Kirk
1cb7d830c7
Hack to reset focus when context menu closed.
Including a fix to `FocusManager` to ensure that it doesn't try to set focus to an invisble focus scope. Fixes #3738 .
6 years ago
Steven Kirk
76b4d17abf
Remove ContextMenu from logical tree.
When the `ContextMenu` is not attached to a control, i.e. it is shown using `Show(control)` then we need to detach it from the logical tree once hidden otherwise it will leak, causing #3738 .
6 years ago
José Pedro
a76d14650b
Fixed obsolete API usages.
6 years ago
Nikita Tsukanov
a16e3bff7f
Added InitialPressMouseButton to PointerReleasedEventArgs that returns the button that caused the PointerPressed event
MouseButton is now deprecated with error, since people need to decide which behavior they want
7 years ago
Nikita Tsukanov
8e5c8fee07
Somewhat fixed tests
7 years ago
Dariusz Komosinski
dfe853e24a
Cleanup usings.
7 years ago
Dariusz Komosinski
3c787b3d4d
Fix events for ContextMenu and Popup.
7 years ago
Steven Kirk
2210b441a2
Moved attached layout code to Avalonia.Layout.
Also involved moving `Orientation` enum.
7 years ago
Steven Kirk
4a5e11f6aa
Fix keyboard interaction for ContextMenu.
7 years ago
Steven Kirk
a5f07f78e9
Fixed context menu styling.
7 years ago
Steven Kirk
fbfd5d80d1
Added MenuBase.
And use it as base class for both `Menu` and `ContextMenu`.
7 years ago
Miha Markič
1524cb1aba
Spellchecks comments and members, removes unused using statements and sorts them
8 years ago
Steven Kirk
e5662a8a18
Implement ContextMenu interactions.
8 years ago
WojciechKrysiak
ec57b63908
Implemented cancelling ContextMenu opening/closing. ( #1781 )
8 years ago
Dan Walmsley
3bc303c4e8
implement menus and submenus obey screen extremities.
8 years ago
Dan Walmsley
e3992ef4ad
fix context menu not closing when an item is clicked.
9 years ago