Steven Kirk
531fed2b4e
Don't focus unfocusable controls.
- Check `CanFocus` in `FocusManager.SetFocusedElement`
- Check for `IsEffectivelyVisible` in `CanFocus`
- Clear focus when control made invisible
- Update tests that relied on unfocusable controls being focused
3 years ago
Max Katz
4aa6035ec3
Reuse text and geometry related headless mocks in Avalonia unit tests and benchmarks
3 years ago
Steven Kirk
e77d6cc294
MenuFlyout.Items -> ItemsSource.
3 years ago
Emmanuel Hansen
04c8b652c8
move clipboard to TopLevel
3 years ago
Benedikt Stebner
0fc25da0dc
[TextBox] MoveEnd now correctly positions the caret before the line break
3 years ago
Simon Cropp
fb37ab1e77
leverage GetRequiredService
3 years ago
Daniil Pavliuchyk
80e1e1eb4c
Disabled controls should lose focus and don't accept keyboard events
3 years ago
Steven Kirk
1945345cd1
Rename TemplatedParent priority to Template.
It no longer represents just `TemplatedParent` bindings, but every value or binding created by a template.
3 years ago
amwx
3f1a342e6f
Add some tests
3 years ago
Giuseppe Lippolis
a763255f3f
fix: revert test changes
3 years ago
Giuseppe Lippolis
6213676115
fix: Address CA1822 rule
3 years ago
Giuseppe Lippolis
36cfc43a59
feat: Address CA1820 Rule
3 years ago
Ahmed Fawzy
7698505770
Removed tests which collided with removing the _ignoreTextChanges field
4 years ago
Benedikt Stebner
9250d93407
Implement embedded runs
Improve text edit navigation
Implement IncrementalTabWidth
4 years ago
Benedikt Stebner
c640bc21c6
Fix failing tests
4 years ago
Benedikt Stebner
27c7a5c724
Fix issues mentioned during review
4 years ago
Benedikt Stebner
b815a22d5a
Port WPF's FormattedText to Avalonia and rework TextPresenter
4 years ago
Steven Kirk
931a79dfb7
Send a single Text change nofication when TextBlock.SelectedText is changed. ( #5508 )
* Added failing tests for #838 .
* Fix Text events when setting SelectedText.
Only raise a single property changed event on `Text` when setting `SelectedText`. It's a bit ugly but the whole of `TextBox` needs a refactor...
Fixes #838 .
4 years ago
Dan Walmsley
b250fce59c
rename test to describe the actual issue.
5 years ago
Dan Walmsley
a295cac930
test more keys.
5 years ago
Dan Walmsley
73aaefcc32
add a failing unit test to demonstrate the issue.
5 years ago
Dan Walmsley
ac45578575
initial attempt at unit test
5 years ago
Benedikt Stebner
753c991aa8
Add failing test condition
5 years ago
amwx
5662c22a72
Add Tests
5 years ago
luthfiampas
1fa6bd25eb
better TextBox.MaxLength tests
5 years ago
Steven Kirk
a832d63915
IStandardCursorFactory -> ICursorFactory.
5 years ago
Dan Walmsley
ab58492b15
add failing unit test.
6 years ago
danwalmsley
89bf711602
Lose not Loose!
Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
6 years ago
Dan Walmsley
c8d26de948
Add failing unit test.
6 years ago
Dan Walmsley
ba11b5d8d0
add failing unit test, for pw reveal getting reset on focus lost.
6 years ago
Nikita Tsukanov
165da1c678
Naming
6 years ago
Nikita Tsukanov
996e602bf8
Implemented custom format support for clipboard
6 years ago
Deadpikle
3885a69ab1
Add more failing tests for other keys
6 years ago
Deadpikle
d8f74b7e41
Cut now triggers an undo
6 years ago
Deadpikle
99e5625ca6
Add failing test for cut not working with undo/redo
6 years ago
Deadpikle
681911098c
SelectedText = null -> clear text
6 years ago
Deadpikle
d7ca28a443
Add failing test for clearing SelectedText
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
Deadpikle
47f487e768
Add SelectedText unit tests
6 years ago
Ben Carman
0486de87a6
MaxLength Property for TextBox
7 years ago
Nikita Tsukanov
3d4a2781b0
Switched key events to use KeyModifiers
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Steven Kirk
67bd1b8d86
Added failing tests for #1701 .
7 years ago
Nikita Tsukanov
d1f2b941fb
Apply template before touching the textbox
7 years ago
FoggyFinder
44d467ba98
fix and test
7 years ago
ahopper
8a9e997c6c
unit test added
7 years ago
Andrey Kunchev
eabf122ce7
fix nits
7 years ago
Andrey Kunchev
81b58e955f
unit tests for textbox OutOfRangeException issue #1954
7 years ago
CommonGuy
ab36f86325
Add the NewLine property to TextBox
8 years ago