jankrib
076d3c721e
Update DrawOperationTests.cs
3 years ago
jankrib
8f7deb17ad
Implement HitTestTransformed
3 years ago
Benedikt Stebner
2f67ca23f9
Fix emergency text wrapping for some unicode sequences
3 years ago
Nikita Tsukanov
fc96e2949f
Fixed #10539
3 years ago
Steven Kirk
e3bf19a399
Update tests due to changes in #10803 .
3 years ago
Steven Kirk
2aca946a71
Respect single-select with IsSelected bindings.
Use the existing `UpdateSelection` methods to correctly respect the current `SelectionMode`.
3 years ago
Steven Kirk
487fe9ed77
Make TreeViewItem IsSelected bindings work.
3 years ago
Steven Kirk
191a835c6a
Make container IsSelected bindings work again.
Rather than using the `ISelectable` interface to communicate container selection from the `SelectingItemsControl` to the container, use the `SelectingItemsControl.IsSelected` attached property, setting it with `SetCurrentValue` so that bindings defined in a style or item container theme can override the selection. Required an extra virtual `ContainerForItemPreparedOverride` method on `ItemsControl`.
3 years ago
Steven Kirk
e609822311
Modernized some SelectingItemsControl tests.
And moved some of the tests that were specific to user interaction to `ListBoxTests` as `SelectingItemsControl` doesn't define user interactions.
3 years ago
Steven Kirk
4740d0c63a
Get window chrome maximize button by index.
The real Windows Maximize button has no automation ID and is localized. Get it by index instead of by name. The Avalonia one isn't localized so we can get it by name.
3 years ago
Steven Kirk
cdbe84b774
Remove debug code.
3 years ago
Steven Kirk
39db10b345
Handle recycling control items inside containers.
Fixes #10825
3 years ago
Steven Kirk
670eea0977
Modernized ItemsControl tests.
3 years ago
Benedikt Stebner
a4a96d6ff4
Optimize FontManager caching
3 years ago
Max Katz
0fcf67d1cd
Add failing test
3 years ago
Steven Kirk
124d318499
Handle unrealized focused element losing focus.
3 years ago
Steven Kirk
9f95bd9156
Recycle elements early when viewport is disjunct.
3 years ago
Steven Kirk
bc32c061e8
Added tests to detect scroll jumps.
3 years ago
Tom Edwards
b400a1f72d
Fixed children being attached to the visual or logical tree multiple times
3 years ago
Steven Kirk
6dc5eddfeb
Fix nullability issues.
3 years ago
Tom Edwards
2a5a5d229f
Fix tests
3 years ago
Tom Edwards
74f75b0525
Converted RangeBase to StyledProperty
Normalised ScrollViewer internal properties and bindings
3 years ago
Steven Kirk
6dd9106fe5
Don't layout invisible controls.
And fix unit tests that were relying on this behavior.
3 years ago
Steven Kirk
44639fbd65
Added failing layout test.
3 years ago
Steven Kirk
a28483252b
Make MaskedTextBox tests pass again.
They need a registered `IPlatformRenderInterface` and were only passing because `GlyphRunTests` was leaking one.
3 years ago
Steven Kirk
668fa942b7
Don't leak IPlatformRenderInterface.
3 years ago
Steven Kirk
cd5307aa8c
Added failing test.
3 years ago
Steven Kirk
f8a8c4ab1f
Run check for disabled maximize button on Windows.
And also check with client-side decorations.
3 years ago
Nikita Tsukanov
312f1250e2
Don't use AvaloniaObject in IPlatformRenderInterface
3 years ago
Benedikt Stebner
f432d6f0a9
Fix GetTextBounds for combinations of EndOfParargrap and embedded RTL text
3 years ago
Steven Kirk
b7a249107b
Make data templates work again with MenuItem.
- `MenuItem` is a `HeaderedSelectingItemsControl` not a `HeaderedItemsControl` so need to separate logic for that case when preparing items
- Added `HeaderTemplate` to `HeaderedSelectingItemsControl `
- Tweaked logic for selecting header templates: parent's `ItemTemplate` should be used if set (cross-checked with WPF)
- Update menu templates to bind to menu item's `HeaderTemplate`
Fixes #10626
Fixes #10718
3 years ago
Steven Kirk
7bb6d06ac5
Added failing test for #10626 and #10718 .
3 years ago
Steven Kirk
996578f2bf
Remove all remaining uses of Items setter.
3 years ago
Emmanuel Hansen
04c8b652c8
move clipboard to TopLevel
3 years ago
Steven Kirk
964f30e883
Describe an edge-case.
3 years ago
Steven Kirk
e7aaf8a7f7
Ensure that the default value can be coerced.
When the coercion function on a property results in the default value being coerced, ensure that state is recorded in the value store.
3 years ago
Steven Kirk
faf1d83950
Fix merge error.
3 years ago
Nikita Tsukanov
44a830fd7f
Fixed tests
3 years ago
Nikita Tsukanov
91e4bd00b6
Fixed more tests
3 years ago
Nikita Tsukanov
9d4f11a111
Fixed tests
3 years ago
Nikita Tsukanov
5f52122bba
Implemented ExitAllFrames, DisableProcessing and Shutdown, dispatcher callbacks now have proper sync context
3 years ago
Nikita Tsukanov
b3fe7827a2
Fixed Dispatcher.Invoke when called from the UI thread
3 years ago
Steven Kirk
c2b47db2b1
Added failing test for #10769 .
And adjust terminology in tests.
3 years ago
Steven Kirk
8c1d4fbbbf
Added failing test for treeview selection.
3 years ago
Steven Kirk
a3866201a4
Modernized TreeViewTests.
3 years ago
Benedikt Stebner
f307b7364a
Fix TextLineImp GetTextBounds
Fix Tab character handling
3 years ago
Nikita Tsukanov
530f176783
Added Rgb24 and Bgr24
3 years ago
Dan Walmsley
fe1f9d4c77
add a failing unit test.
3 years ago
Nikita Tsukanov
371251d58c
Review comments
3 years ago
Benedikt Stebner
46632741e4
Revert invariant font family names
3 years ago