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
robloo
a0f70f4b02
Standardize CaptionButtons to Minimize/Maximize spelling
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
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
Max Katz
629900d6d8
Instead of creating a fake test command, try to iterate over existing commands structure and replace only what's needed
3 years ago
Steven Kirk
5391361d45
Failing test for selection w/ virtualization.
3 years ago
Max Katz
321bf26a0a
Support SetUp and TearDown methods by NUnit
3 years ago
Max Katz
ae04033c76
Use ExecutionQueue in test frameworks
3 years ago
Max Katz
8e4b76cb19
Reuse same tests for XUnit and NUnit
3 years ago
Steven Kirk
2c9f286db0
Added failing tests for #11119 .
3 years ago
Steven Kirk
c77276d00a
Don't clear ItemIsOwnContainer in PanelContainerGenerator.
One shouldn't call `ClearContainer` on a container that is an item. Adjusted `SelectingItemsControlTests` because selection is actually maintained on move with containers hold their own `IsSelected` state.
Fixes #11128
3 years ago
Steven Kirk
582248fb04
Added failing test for #11128 .
3 years ago
Max Katz
89e1680501
Fix DefinitionList parsing
3 years ago
Steven Kirk
06b7515b48
Added failing test for #11076 .
3 years ago
Max Katz
b8ecad2cbc
Restore resource include validation
3 years ago
Max Katz
a507e92b31
Fix theme-dependend markup extensions not knowing current theme context
3 years ago
Steven Kirk
981dfd29d7
Added WindowBase.Resized event.
Which exposes the resize reason and new client size. Required renaming `PlatformResizeReason` to `WindowResizeReason`. Made `TopLevel.HandleResized` method internal.
3 years ago
Max Katz
862d07fcaf
Support special case for points collection
3 years ago
Benedikt Stebner
8df3b34032
Add TextEndOfLine runs to TextBounds.TextRunBounds
3 years ago
Benedikt Stebner
0442c3b337
Introduce advanced render options
3 years ago
Steven Kirk
afc55cb985
Fix tests on macOS.
`MoveByOffset` caused Appium to hang, but `MoveToElement` with an offset seems to work fine.
3 years ago
Steven Kirk
3882bc0217
Remove ControlTemplateResult.
Use `TempateResult<Control>` instead as described in #6666 .
Fixes #10525 .
3 years ago
Steven Kirk
fe8f349047
Added failing test for #11015 .
Problem is in layout manager.
3 years ago
Steven Kirk
576014db05
Improve slider integration tests.
They are now failing due to #11015 .
3 years ago