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
6 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
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
d2d58f9fe0
Don't share Popups in ContextMenu.
Was causing render problems for some reason, and this was the quickest
way to solve it.
10 years ago
Steven Kirk
a03dad9bab
Removed a bunch of unused members/classes.
10 years ago
Steven Kirk
6d139eb394
Fixes #407 .
10 years ago
Steven Kirk
e047de7bc2
Fixed #409 .
10 years ago
Steven Kirk
0dd742ada3
Display context menu at pointer position.
10 years ago
danwalmsley
13f0d4d530
contextmenu sub menus now close when context is lost.
10 years ago
danwalmsley
d043e4b67a
fixed popup, and context menu.
10 years ago
danwalmsley
f7de57f46f
fixed to popup to work on logical tree.
10 years ago
danwalmsley
c33c5bc627
migrating from popup root to popup.
10 years ago
danwalmsley
cd01ca61c9
addressed issues in PR# 405
10 years ago
danwalmsley
f32f293f30
Added implementation of ContextMenus.
10 years ago
danwalmsley
d2a6b89434
Added initial ContextMenu attachedProperty.
10 years ago