Steven Kirk
46488628dd
Move TemplateBinding to Avalonia.Base.
It would be useful to be able to access it from here to provide bindings in default template values, and it has no dependency on XAML.
3 years ago
Steven Kirk
ac936ce130
Added failing test for #11290 .
3 years ago
Steven Kirk
c7db3bfee7
Added failing test for #11370 .
3 years ago
Steven Kirk
8e68fe910c
Fix error introduced in merge.
3 years ago
Steven Kirk
e7b61ef002
Added BringIntoViewOnFocusChange.
Added `ScrollViewer.BringIntoViewOnFocusChange` attached property, based on the UWP API.
3 years ago
Steven Kirk
0b1b3476fb
Make EnumExtensions internal.
3 years ago
Steven Kirk
04c50f8bf2
Make style selector internals internal.
3 years ago
Steven Kirk
ca02947c3e
Added failing test for VirtualizingStackPanel.
3 years ago
Steven Kirk
ac4ff30180
Added failing tests for null recycling key.
3 years ago
Benedikt Stebner
0b072f4d0d
Update test files
3 years ago
Benedikt Stebner
f153c626f8
Fix TextLineImpl.GetCharacterHitFromDistance for lines that include a TextEndOfLine run
Fix overhang handling to prevent clipped text for slanted glyphs
Fix TextBox selection issues
3 years ago
Max Katz
20064647dd
Limit IFocusManager API, extend IInputElement API, remove visible static properties
3 years ago
Steven Kirk
2728be47ee
Added failing treeview selection tests.
3 years ago
Steven Kirk
5878814bed
Added test for #9438 .
3 years ago
Steven Kirk
5b7d5a33ae
Fix benchmarks compile error,
3 years ago
Steven Kirk
474d78b335
Deprecate IStyleable .
This was signalled for removal in #9553 , but I was hesitant to do it because it will be in use by a lot of code in order to override `StyleKey`. Instead of removing it, deprecate it and provide a virtual `StyledElement.StyleKeyOverride` property as the supported way of overriding a control's style key.
3 years ago
Steven Kirk
00d077a634
Pass both owner and host type to AvaloniaProperty.
For non-attached properties these will be the same. For attached properties the metadata needs to be registered on the host, but the `Owner` property needs to be set to the owner, not the host.
3 years ago
Nikita Tsukanov
64610c264b
Composition aware resources
3 years ago
robloo
a0f70f4b02
Standardize CaptionButtons to Minimize/Maximize spelling
3 years ago
robloo
fac0a045d4
Add direct conversions for HsvColor.ToHsl() and HslColor.ToHsv()
3 years ago
Martin Garstenauer
ec8cbeb37d
Fix FloatingResourceObservable listening for ActualThemeVariantChanged
3 years ago
Tim
85b816c27f
fix unit tests
Do not set Min / max in case it is decimal,Min / decimal.Max
3 years ago
Tim
d5b73e2109
Add some unit tests for Incement / Decrement
3 years ago
Steven Kirk
e7c3e0c673
Added failing test for #11212 .
3 years ago
Steven Kirk
5474d1e360
Refactor TransitioningContentControl.
Now has two `ContentPresenter`s between which it transitions.
Fixes #11167
3 years ago
Steven Kirk
d4194c8e2b
Added failing tests for TabControl tab navigation.
3 years ago
Steven Kirk
31ece204fc
Fix tab navigation in ItemsControl & ListBox
- Don't set `KeyboardNavigationMode.Once` on `ItemsPresenter`
- Instead set it on `ListBox` (more controls to come)
- Make `TabOnceActiveElement` follow `Selection.AnchorIndex` in `SelectingItemsControl` and set it on `ItemsControl` itself
3 years ago
Giuseppe Lippolis
20971097ca
test: Binding StringFormat without curly braces
3 years ago
Giuseppe Lippolis
cf2d107a19
test: fix test CompiledBinding Binding Command DependsOn
3 years ago
Nikita Tsukanov
5ec758d790
Fix TokenParser
3 years ago
Max Katz
0f3a4b313c
Uncomment test that should always fail
3 years ago
Max Katz
238a8ae58a
Add timeouts to the tests
3 years ago
Max Katz
6b51f00a4a
Minor adjustments to changes in master + fix failing test (need to tick the timer manually) + add some comments
3 years ago
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
Steven Kirk
4b46afef4a
Add failing focus unit tests.
3 years ago
Steven Kirk
570e7a979c
Added failing test for #11272 .
3 years ago
Max Katz
3f5a5e6bd8
Add test for #11172
3 years ago
Max Katz
0145dcc4b9
Fix nested ResourceDictionaries
3 years ago
Steven Kirk
5e3b94f88c
Added failing test for scrollbar thumb.
3 years ago
Steven Kirk
42bd366bc1
Added failing test for ScrollViewer jumpiness.
3 years ago
Steven Kirk
3a250c86f3
Added failing test for #7706 .
3 years ago
Nikita Tsukanov
015768c5bd
Make sure that Dispatcher.InvokeAsync unwraps tasks and that correct overload is being chosen
3 years ago
Steven Kirk
8bfe6b9645
Support heterogeneous item containers.
3 years ago
robloo
9d76cdd3dd
Rename incorrect `Color.ToUint32` to `ToUInt32`
3 years ago
Max Katz
810558140f
Introduce static AssetLoader
3 years ago
Julien Lebosquain
9a06290142
Correctly remove ContentPresenter's content from its parent host
When the content is updated while being detached from the visual tree.
3 years ago
Steven Kirk
c4a5567090
Added failing test for #11161 .
3 years ago
Max Katz
5a742ea2c4
Run jobs after headless input
3 years ago
Max Katz
bb893b189c
Make HeadlessUnitTestSession run individual frames per test
3 years ago
Max Katz
4aa6035ec3
Reuse text and geometry related headless mocks in Avalonia unit tests and benchmarks
3 years ago