Wiesław Šoltés
7a46bf27d6
Fix IsOpenProperty owner
4 years ago
Dariusz Komosinski
27f920a79d
Fixed ItemContainerGenerator usages.
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
dd563805cd
Nullable enable menu-related classes.
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
a2c6bc1b7c
Remove usage of AddClassHandler that returns new lambda per invocation.
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
4a5e11f6aa
Fix keyboard interaction for ContextMenu.
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
1293e9af8d
Implemented Menu interactions.
8 years ago
Steven Kirk
075cd4b9a4
Ensure menu gets closed.
If there's a `Command` binding for a `MenuItem` it will now swallow the `Click` event, meaning that the menu won't get closed. Listen for handled events too.
9 years ago
Nikita Tsukanov
f21212e76a
Refactored out WindowBase from TopLevel
9 years ago
Steven Kirk
5346f20d81
Use correct ItemContainerGenerator for menus.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
d4de5bb520
Close menu on non-client clicks.
10 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
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
1498213e0c
Make more PPs direct.
11 years ago
Nikita Tsukanov
dbeb0344f8
static readonly rename
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
Steven Kirk
84924dee3c
Added IPanel interface.
11 years ago
Steven Kirk
d9bac5e50d
Removed ItemsPanelTemplate
Use ITemplate<Panel> instead.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
ff331693f0
Started refactoring SelectingItemsControl.
11 years ago
Steven Kirk
cf4ce34afb
Added doc. comment.
11 years ago
Steven Kirk
c2ac02ec23
Clear selection when leaving menu.
11 years ago
Steven Kirk
9ae44342e5
Restore focus when menu item clicked.
11 years ago
Steven Kirk
80064e8712
More work on Menu.
11 years ago
Steven Kirk
731169d0d8
Navigate between top-level menus a bit better
If a menu item was open and we navigate to a new one with the arrow
keys, open that menu and select the first item.
11 years ago
Steven Kirk
5227f9a43d
Make arrow keys work in menu (sorta).
11 years ago
Steven Kirk
503034c2c8
Close menu when focus lost.
11 years ago
Steven Kirk
5c32b5cc42
Close menu on escape key.
11 years ago
Steven Kirk
43e80392df
Started adding keyboard accessibility to Menu.
Still quite a lot to do.
11 years ago
Steven Kirk
e085e56c70
Show access keys on Alt/F10.
11 years ago
Steven Kirk
fef04a5f5d
Implemented Menus a bit better.
Now appear correctly in logical tree and use general-purpose mechanisms
rather than direct communication between MenuItems.
11 years ago
Steven Kirk
1eb62cf4dc
Implement click on MenuItem.
11 years ago
Steven Kirk
88bb6c2c6c
Revert "Updated MenuItem style"
This reverts commit 79e8252886 .
11 years ago
Steven Kirk
79e8252886
Updated MenuItem style
11 years ago
Steven Kirk
8643a904c4
Close menu when window deactivated.
11 years ago
Steven Kirk
e1442af783
Try to make only 1 submenu at a time be opened.
Doesn't work as there is currently no logical tree link between
MenuItems as they're in Popups. Need to fix this first,
11 years ago
Steven Kirk
a90a027b53
Close menu when clicked outside.
11 years ago
Steven Kirk
51a4868010
More work on Menu.
11 years ago