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
Steven Kirk
b8db5c2b75
Lose focus when control removed from visual tree.
11 years ago
Steven Kirk
b116d94c3a
Added Button.IsDefault
11 years ago
Steven Kirk
5e5692c259
Oops!
Actually subscribe to the command.CanExecuteChanged event.
11 years ago
Steven Kirk
09092afe75
Use ICommand from System.Windows.Input.
11 years ago
Steven Kirk
a72e8e243d
Added ICommand and use it in Button.
11 years ago
Steven Kirk
ab916df3dc
Fix dropdown open/close behavior.
Now that new eventing stuff is in place.
Also fix bug with AddClassHandler where it was triyng to call every
object irregardless of whether it was the correct type.
11 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'.
11 years ago
Steven Kirk
e16444b33e
Make dropdown open with a click anywhere....
...on its surface.
11 years ago
Steven Kirk
b42d472b65
Added class RoutedEvent handlers.
11 years ago
Steven Kirk
b04bcf48a1
Fixed layout again.
Last commit actually ruined layout. Added a tab to the test app to test
that shiz.
12 years ago
Steven Kirk
f361fe23ce
Implemented basic GridSplitter for DevTools.
12 years ago
Steven Kirk
bfadaac5d9
Non-building checkpoint in MAJOR refactor.
12 years ago
Steven Kirk
406ad96736
Added FocusManager.
12 years ago
Steven Kirk
1b6bd74a6d
Added Button.Click
12 years ago