Steven Kirk
22c5a5e6a1
Fix usage of AddClassHandler in non-static ctor.
Property `AddClassHandler`s should only be added in static constructors. In this case it's not so important because `FocusManager` is a singleton, but best to fix the usage anyway.
Fixes #2315 .
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
a1d6406ce9
Only set focus on left button click.
9 years ago
Steven Kirk
7e3082dcec
Prevent stack overflow in focus code.
When a focus scope had null as its focused element, a stack overflow was
occurring. Fixes #577 .
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
ca301280e8
Correctly clear focus when control removed.
Focus was staying on removed element.
10 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
10 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
10 years ago
Steven Kirk
ddb5ed229a
Make keyboard range selection work.
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
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
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
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
2731387423
Removed debug code.
11 years ago
Steven Kirk
0959817b35
Move click focus handling to FocusManager.
11 years ago
Steven Kirk
9ae44342e5
Restore focus when menu item clicked.
11 years ago
Steven Kirk
e5feeb3fc1
Focus first item when menu opened by keyboard.
11 years ago
Steven Kirk
43e80392df
Started adding keyboard accessibility to Menu.
Still quite a lot to do.
11 years ago
Steven Kirk
b369c30a2e
Implemented Tab focus.
Should hopefully be the start of a non-hacky tab focus solution.
11 years ago
Steven Kirk
b8db5c2b75
Lose focus when control removed from visual tree.
11 years ago
Steven Kirk
6fa126f827
Show keyboard focus adorner.
11 years ago
Steven Kirk
9a994e582c
Moved VisualTree extensions into own namespace.
So that they don't pollute the whole Perspex namespace - you now need to
"opt-in" to the visual tree.
11 years ago
Steven Kirk
00aa02964f
Inplemented double and triple click in TextBox.
Copied a load of stuff from Moonlight regarding finding next/prev word
that I've put in StringUtils.
11 years ago
Steven Kirk
55a11d8dfd
More stylecop fixes.
11 years ago
Steven Kirk
2468e061c5
Improve focus a little bit.
11 years ago
Steven Kirk
c761f8830d
Make keyboard focus work again.
12 years ago
Steven Kirk
bfadaac5d9
Non-building checkpoint in MAJOR refactor.
12 years ago
Steven Kirk
88287b14ba
Moved input stuff into InputElement
Out of CONTROL dude!!!
12 years ago
Steven Kirk
732cf30dbc
Correctly send lost focus event.
12 years ago
Steven Kirk
6d31e7d865
Started on TextBox.
Can type but not much else.
12 years ago
Steven Kirk
406ad96736
Added FocusManager.
12 years ago