Steven Kirk
be316e9aaf
Disable warnings when implementing deprecated API members.
6 years ago
Steven Kirk
b79b225e33
Improve deprecation messages.
6 years ago
Steven Kirk
bc079008d1
Remove usage of deprecated input APIs.
6 years ago
Steven Kirk
4a752c3f48
Get non-animated change information.
- Pass information for all property changes to `OnPropertyChangedCore`; whether they result in an effective value change or not
- Added `GetBaseValue` to get a value with a specified priority
- Change the signature of `OnPropertyChanged` again to take an `AvaloniaPropertyChangedEventArgs<T>`
6 years ago
Nikita Tsukanov
48abbcdf91
[X11] Special handling for XI2 events when window is blocked by child Dialog
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
5397efc4f0
Remove some left-over copyright headers.
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
Steven Kirk
022294ec7a
MenuItem.InputGestureText -> InputGesture
Changed `MenuItem`'s `string InputGestureText` property to `KeyGesture InputGesture` and gave it a value converter in the default template, because the string representation of a key gesture depends on platform, and putting platform-specific behavior into `ToString` isn't a good idea.
7 years ago
José Pedro
2cb3b5f916
Updated obsolete API usages in interfaces.
7 years ago
Steven Kirk
2944099428
Display gestures in NativeMenuBar.
To do this we needed to change the `KeyGesture.ToString()` method to produce input gesture text suitable for menus. Also demonstrated in `MainWindow` how to produce different gestures/headers depending on platform.
7 years ago
José Pedro
a76d14650b
Fixed obsolete API usages.
7 years ago
Nikita Tsukanov
2bef4dc540
Always notify gesture recognizers about the loss of pointer capture
7 years ago
Nikita Tsukanov
9b4253f4d7
Fix inertial scrolling
7 years ago
Symbai
e92dbb14df
Update IInputElement.cs
7 years ago
José Pedro
fc9a6d5746
Updated obsolete API usages.
7 years ago
Steven Kirk
3cc59007b0
Only fire DoubleTapped on left button press.
Fixes #3325
7 years ago
José Pedro
ef15b80b12
Updated GotFocusEventArgs obsolete API usages.
7 years ago
José Pedro
dcab86a12e
Fixed drag and drop obsolete API usage.
7 years ago
José Pedro
11b1ec2ded
Fixed PlatformHotkeyConfiguration obsolete API usage.
7 years ago
Steven Kirk
3a914c282b
Don't declare property fields AvaloniaProperty<>.
Instead use `StyledProperty<>`.
7 years ago
Dariusz Komosinski
9e812f24b9
Add HitTestFirst that allows for hit testing first matching visual. Implement better enumerator that can be used for both first and multiple hits.
7 years ago
Dariusz Komosinski
24c5519e71
Use CondtionalWeakTable to avoid FocusManager becoming a GC root for all focus scopes.
7 years ago
Dariusz Komosiński
be4d1ef038
Fix right ALT and CTRL being reported as left.
7 years ago
José Pedro
fc1a60b159
Added support for extra mouse buttons.
7 years ago
FoggyFinder
cff59382c7
adjust comments
7 years ago
Steven Kirk
b89305d708
Set pseudoclasses manually.
It makes creating new controls a _lot_ faster.
7 years ago
Dariusz Komosinski
7a13d819fd
Optimize and add new efficient visual tree extensions.
7 years ago
José Pedro
14b3683127
Replaced obsolete API usages.
7 years ago
Nikita Tsukanov
d8ee7531ab
Properly raise PointerCaptureLost on capture transfer
7 years ago
Nikita Tsukanov
3b1005f04e
Removed pointer global state that caused trouble
7 years ago
Steven Kirk
fb173b30e2
Send keypresses to toplevel if no focused control.
- Added `IInputRoot Root` property to `RawInputEventArgs`
- Removed `InputRoot` and `Root` properties from `RawDragEvent` and `RawPointerEvent` as its now in the base class
- `InputRoot` in `RawDragEvent` was incorrectly using the type `IInputElement` instead of `IInputRoot`, fix callers that were using the wrong type
- Pass the input root to all raw input event constructors
- If no control is focused in `KeyboardDevice.ProcessRawEvent` then raise the event on the root
7 years ago
Nikita Tsukanov
9cb36f2dc4
Fixed obsolete comment
7 years ago
Nikita Tsukanov
1b5f3b6cc8
Renamed GetPointerPoint to GetCurrentPoint to match UWP
7 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
Dariusz Komosinski
a2c6bc1b7c
Remove usage of AddClassHandler that returns new lambda per invocation.
7 years ago
Dariusz Komosinski
09e7618463
Remove boxing from PointerPointProperties.
7 years ago
Dan Walmsley
13f7813984
add support for , in key gesture.
7 years ago
Dan Walmsley
e9d3b8ec5a
support CMD in keygestures.
7 years ago
Dariusz Komosiński
d409090b90
Fix unit tests. Remove default ctor.
7 years ago
Dariusz Komosiński
2362b5a847
Cleanup KeyGesture code. Add constructor taking non-deprecated arguments.
7 years ago
Dan Walmsley
bdca92c16a
dont handle f10 key in accesskey handler, prevents people using f10 hotkey.
7 years ago
Dariusz Komosiński
7237fa979e
Add comments.
7 years ago
Dariusz Komosiński
7f33ffaf8b
Avoid allocations when running UpdateIsEffectivelyEnabled.
7 years ago
Steven Kirk
0eb7b2d25e
Enable adding event handlers to Gestures events.
Added the `Add*Handler` and `Remove*Handler` events required by XAML in order to use attached event syntax. Added unit test to ensure this works.
7 years ago
Nikita Tsukanov
45f86a925f
Fixed possible NRE in Gestures.cs
7 years ago
Dariusz Komosiński
c619d1f0d4
Cache delegate used for hit testing.
7 years ago
Steven Kirk
bd354143ca
Notify MouseDevice when TopLevel closed.
So it can remove pointerover state.
7 years ago
Nikita Tsukanov
66963a28b7
DnD fix
7 years ago
Nikita Tsukanov
0cd25052fb
Cleanup
7 years ago