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.
7 years ago
Steven Kirk
557898adfd
Move methods back to original order.
Moving them like this was confusing the diff.
7 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
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
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
Andrey Kunchev
91e678baf8
call canexecute before execute for button/menu command
7 years ago
Andrey Kunchev
a803e8bd7b
improve button click fixes #2148
8 years ago
Andrey Kunchev
81c274328b
fix tiny tiny nit
8 years ago
Andrey Kunchev
08d552de10
fix button click for deferedrenderer
8 years ago
Andrey Kunchev
ef158e3ec3
hittest when button is pressed
8 years ago
Andrey Kunchev
922917b299
fix pr nits
8 years ago
Andrey Kunchev
e1874b4a4c
fix for issue #2000 button with rendertransform don't fire click
8 years ago
Steven Kirk
576cc91573
Make Pseudoclass method typed.
8 years ago
Steven Kirk
272939464e
Need to press a button to click it!
Only raise a `Button` click event on pointer release when the button has been pressed first!
8 years ago
Matthijs ter Woord
981cf5a2f1
Now we have .IsPressed property, have the PseudoClass method handle that for us.
9 years ago
Eli Arbel
106146460d
Add RepeatButton
9 years ago
Matthijs ter Woord
bfd7de2427
IsPressed property should be a StyledProperty, otherwise stackoverflow occurs
9 years ago
Matthijs ter Woord
4f902c4552
Add IsPressed property on Button
9 years ago
Steven Kirk
3bee9e5557
Only respond to left click in Button.
Fixes #854 .
9 years ago
Steven Kirk
85e40b9c0b
Set e.Handled on command execution.
Otherwise the `Click` event bubbles upwards causing #566 .
Fixes #566
9 years ago
Steven Kirk
4d30de7c09
Only click when pointer is over the button.
Previously a button click was carried out when `:pointerover` was set, but because the button captures mouse input on mouse down, this is always true while the mouse is held. Check that the pointer was released within the bounds of the control.
Fixes #938
9 years ago
Nikita Tsukanov
0b756d0b8a
More null checks
9 years ago
Jeremy Koritzinsky
aacb052253
Made changes requested by @grokys .
9 years ago
Wiesław Šoltés
a26c261aad
Fixed OnPointerReleased parameter type
9 years ago
Jeremy Koritzinsky
64e0905d61
Buttons are disabled when there is a null in the binding chain for Command.
Fixes #846 .
9 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
10 years ago
Steven Kirk
5489487131
Make LayoutManager global.
Also made a few other changes along the way:
- Add MaxClientSize to ILayoutRoot
- Store IRenderRoot in Visual and use that to calculate
IsAttachedToVisualTree
- Make Affects* methods take multiple properties
10 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
10 years ago
Steven Kirk
db1e20acc8
Only allow pseudoclasses to be set by control.
Limit adding/removing pseudoclasses to IPseudoClasses interface.
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Steven Kirk
9eb54f59d2
Fixed name scopes.
Controls were being registered with the nearest name scope on the visual
tree, whereas they should be registered by traversing the logical tree.
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
24e18d0236
Documentation.
11 years ago
Nikita Tsukanov
23896f772d
HotKey property landed to button and menuitem
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
7954d52a24
Documentation
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
ec193b05c3
Added keyboard support to Button.
11 years ago
Steven Kirk
eb9597104f
Fix default button press.
It was being invoked when enter pressed on menu item.
11 years ago