Emmanuel Hansen
98b52c73f0
only set pointer events to handled in button if click is triggered
3 years ago
Max Katz
59d7874b1d
Replace System.Reactive with internal extensions
3 years ago
Luis von der Eltz
9ab31f60b4
Fix button flyout toggle
Expose OverlayDismissEventPassThrough on FlyoutBase
4 years ago
Max Katz
2a2779f248
Stop listening for IsCancel on button detached
4 years ago
Steven Kirk
f9dbbb3da1
Make UpdateDataValidation non-generic.
4 years ago
Steven Kirk
f8706278a8
Make OnPropertyChanged non-generic.
4 years ago
robloo
b043db169c
Make sure to call base methods in Button
4 years ago
Giuseppe Lippolis
d62381a0b2
feat: Allowed Hotkey without using Command
4 years ago
robloo
485479e6c6
Add flyout pseudoclass and state handling to Button for derived controls
4 years ago
Max Katz
f039511de2
Adjust nullability
4 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
robloo
a0331c6007
Undo CanExecuteChanged changes
4 years ago
robloo
83720e9218
Revert "Minor refactoring to Button noticed when adding SplitButton"
This reverts commit c0bb7efa12 .
4 years ago
robloo
ee36313c3e
Revert "Move more Button property changed handling into OnPropertyChanged override"
This reverts commit 853d4140a3 .
4 years ago
robloo
d8e071039b
Move more Button property changed handling into OnPropertyChanged override
4 years ago
robloo
fe11e4f2c7
Minor refactoring to Button noticed when adding SplitButton
4 years ago
robloo
853d4140a3
Move more Button property changed handling into OnPropertyChanged override
4 years ago
robloo
c0bb7efa12
Minor refactoring to Button noticed when adding SplitButton
4 years ago
abdesol
7f20078e4f
removed focus fix and added test in sandbox
4 years ago
Lubomir Tetak
11c1543b5a
Handle default actions to prevent beeping sounds
4 years ago
Steven Kirk
7f89c2a0dc
Make button respond to access key.
4 years ago
Tako
09f82da4dd
Fix changing focus with Tab key for Button ( #6753 )
5 years ago
Steven Kirk
11c60b4294
Decouple automation peers from platform nodes.
Now peers are entirely unaware of the platform implementation.
5 years ago
ReeJK
6e26cd58fa
Button state update when CommandParameter changed
5 years ago
Yoh Deadfall
37e8890d27
CanExecute reevaluation on attaching to logical tree
5 years ago
amwx
0e82bce249
Button closes Flyout on escape key press
5 years ago
amwx
f7d100e7bd
Button Flyout StyledProperty and add change handler
5 years ago
amwx
ca8d70844f
Add docs and clean up
5 years ago
amwx
5b270a3142
Add Flyout property to Button
5 years ago
Steven Kirk
2a44d8b564
Initial implementation of UI automation.
Follows WPF/UWP API as closely as possible. Limited to win32 right now. Broken in many places.
5 years ago
Adir
41c4630bbb
Changed if statements to have braces
Moved comments above if
6 years ago
Giuseppe Lippolis
ef38567547
Implemented ICommandSource
6 years ago
Adir
3c302f72f2
Added docs explaining why need to change Hotkey on attach/detach from logical tree
Added the same logic to MenuItem.cs
Reverted auto indentation in Button.cs
6 years ago
Adir
7c952cfc5f
Changed Hotkey reset to detatch from logical tree (was visual tree)
6 years ago
Adir
ecba5f65f0
Reverted HotkeyManager.cs
Changed Button.cs to remove it's HotKey property when detaching from visual tree
6 years ago
Steven Kirk
58c333b6f1
Added PseudoClassesAttribute.
And apply it to our controls. Can be used by designers to add auto-completion support for pseudoclasses.
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
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
b89305d708
Set pseudoclasses manually.
It makes creating new controls a _lot_ faster.
6 years ago
Steven Kirk
557898adfd
Move methods back to original order.
Moving them like this was confusing the diff.
6 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
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
Genadij Trimailov
cd90cf86e7
copy paste typo
7 years ago
Tridy
42dd06cf96
added IsCancel to Button
Like pressing Enter triggers a button that has the property IsDefault set to true, pressing Escape should work on the button that has IsCancel set to true.
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
6334314a90
Fix typo in calling base methods.
7 years ago
Steven Kirk
7363f7140b
Don't leak subs to CanExecuteChanged in Button.
7 years ago
Dan Walmsley
e799543b94
fix menuitem command property.
7 years ago