Dariusz Komosiński
7237fa979e
Add comments.
7 years ago
Dariusz Komosiński
7f33ffaf8b
Avoid allocations when running UpdateIsEffectivelyEnabled.
7 years ago
Nikita Tsukanov
ec99f7d1a9
Initial scroll gesture implementation
7 years ago
Steven Kirk
38d68865fd
Correctly handle command.CanExecute state.
Added a new `IsEnabledCore` property to `InputElement` which is overridden in `Button` and `MenuItem` to override the `IsEffectivelyEnabled` state with the enabled state of the command.
Also add data validation of the `Command` property to `MenuItem` to make it behave the same as `Button` when `Command` is bound to a non-existent property.
Fixes #2501
7 years ago
Steven Kirk
e6be9b7c5a
Renamed IsEnabledCore -> IsEffectivelyEnabled.
I now understand how WPF's `IsEnabledCore` works, and it's not like this. Rename `IsEnabledCore` to `IsEffectivelyEnabled` so that we can add a new `IsEnabledCore` property which works like WPF's.
This also aligns with the existing `IsEffectivelyVisible` property.
7 years ago
Steven Kirk
4a5e11f6aa
Fix keyboard interaction for ContextMenu.
8 years ago
Steven Kirk
576cc91573
Make Pseudoclass method typed.
8 years ago
Miha Markič
0a38876590
Spellchecks all projects except for Base, Controls, Samples and Testing
8 years ago
Steven Kirk
1293e9af8d
Implemented Menu interactions.
8 years ago
Steven Kirk
3f0c7650e5
Make sure IsPointerOver is correctly set.
Reset the handled state for `PointerEnter`/`PointerLeave` on each control invocation, and don't allow the user to skip setting `IsPointerOver`
8 years ago
Jeremy Koritzinsky
72a4889435
Move Control static constructor statements to more accurate layers.
8 years ago
José Pedro
7cccc6bda0
Use nameof where possible.
9 years ago
Wiesław Šoltés
a26c261aad
Fixed OnPointerReleased parameter type
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
11 years ago
Steven Kirk
ca301280e8
Correctly clear focus when control removed.
Focus was staying on removed element.
11 years ago
Steven Kirk
8eb4f30c6d
Added Tapped and DoubleTapped gestures.
11 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
11 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
11 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
92e6274ec3
Fixed input hit test Z ordering.
Closes #170 .
11 years ago
Steven Kirk
5c4d2b84a3
Started converting PPs to direct PPs.
11 years ago
Nikita Tsukanov
5acef971f0
Added KeyGesture and KeyBindings
11 years ago
Nikita Tsukanov
79f8f76351
ref #198
11 years ago
Nikita Tsukanov
21a3554260
Change property getter to expression properties
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
Nikita Tsukanov
7f72c7763b
Implemented cursors. Ceterum censeo StyleCopum esse delendum.
11 years ago
Nikita Tsukanov
70dcfd652a
Now using TextInput event, WM_CHAR and GtkIMContext
11 years ago
Steven Kirk
c5020d38ee
Remove RoutedEventArgs.OriginalSource.
Still not entirely sure what it's purpose is in WPF.
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
4919eeb226
Removed InputElement.IsTabFocused.
It was unused.
11 years ago
Steven Kirk
7435166436
Added more documentation.
11 years ago
Steven Kirk
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
d161428f52
Pass navigation method in GotFocus event.
And only focus selectable items when focus comes from the pointer, or
directional keys.
11 years ago
Steven Kirk
65def11dbd
Remove obsolete OnVisualParentChanged.
11 years ago
Steven Kirk
5227f9a43d
Make arrow keys work in menu (sorta).
11 years ago
Steven Kirk
05f131595c
Make keyboard navigation handler per-window.
Use the same pattern as AccessKeyHander.
11 years ago
Steven Kirk
3ac8bdcf37
Added KeyUp event.
11 years ago
Steven Kirk
b369c30a2e
Implemented Tab focus.
Should hopefully be the start of a non-hacky tab focus solution.
12 years ago
Steven Kirk
b8db5c2b75
Lose focus when control removed from visual tree.
12 years ago
Steven Kirk
3efc8e8920
Improved tab focus handling a bit.
12 years ago
Steven Kirk
6fa126f827
Show keyboard focus adorner.
12 years ago
Steven Kirk
557fb4d215
Added IsHitTestVisible property.
12 years ago
Steven Kirk
78a80b2b75
Moved Tab key handling to InputElement.
12 years ago
Steven Kirk
a92219625a
Added generic Add/RemoveHandler methods.
Prevents annoying casts when calling.
12 years ago
Steven Kirk
01e97aec7e
Removed Preview* tunneling events.
You need to call AddHandler to get to them now.
12 years ago
Steven Kirk
78901c776e
Make class handlers work again.
12 years ago
Steven Kirk
aa63b5fa15
Started refactoring events.
Tunnelled and bubbling events can now be represented by a single
RoutedEvent. Next need to implement 'handledEventsToo'.
12 years ago
Steven Kirk
8d2006c968
Make dropdown close on click.
12 years ago