Steven Kirk
004103a925
Reimplement DisplayMemberBinding.
Use a slightly different approach to the one that was previously there: create an item template that contains `DisplayMemberBinding`. This is the approach that WPF broadly uses too.
4 years ago
Steven Kirk
7e1068f441
Fix test.
4 years ago
Steven Kirk
c1ee26c05a
Fixed SelectingItemsControlTests.
`ListBox` now needs a root as it uses a `VirtualizingStackPanel`.
4 years ago
Steven Kirk
fab8f15213
Make a few more tests pass.
4 years ago
Steven Kirk
1101f28dd7
Refactored ItemContainerGenerator.
A bunch of tests still failing, and some code commented out, but outlines the new API shape.
4 years ago
Steven Kirk
5d1f9f4a0f
Removed VirtualizationMode.
If you want a different virtualization mode, use a different panel.
4 years ago
Steven Kirk
c20e3c29e6
Initial (re)impl of VirtualizingStackPanel.
Currently only supports smooth scrolling.
4 years ago
Steven Kirk
692c0c155d
Begin refactoring ItemsPresenter.
A lot still broken, in particular virtualization is completely removed.`ItemsPresenter` now no longer has an `Items` or `ItemTemplate` property; it detects when it's hosted in an `ItemsControl`. `IItemsPresenter` interface removed.
4 years ago
daniel mayost
aa31daecde
Move FlowDirectionTests to Avalonia.Base.Tests
4 years ago
daniel mayost
4fae1b6e7a
Move FlewDirection to Visual and fix tests
4 years ago
Max Katz
526d9d052b
Avalonia.Base and controls related project trimming attributes
4 years ago
Steven Kirk
6f03f1c3d6
Removed ITemplatedControl.
4 years ago
Steven Kirk
8347093f90
Removed IInteractive.
4 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
4 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.
4 years ago
Steven Kirk
086c2c7e70
Don't apply styling in TopLevel ctor.
Applying styling in the constructor isn't a good idea as demonstrated by #8549..
Instead apply styling when showing a window, or if it's needed call `ApplyStyling` manually, e.g. in unit tests.
Fixes #8549
4 years ago
Steven Kirk
1a338ac087
Remove IStyler and make style apply internal.
- Removes the `IStyler` service and the `Styler` implementation
- Moves the logic for applying styles and control themes into `StyledElement`
- Removes the style `TryAttach` method from the public API
- Removes style caching for now - this will need to be added back
4 years ago
amwx
3f1a342e6f
Add some tests
4 years ago
Emmanuel Hansen
588001d3e7
revert tests
4 years ago
Benedikt Stebner
0d889da820
Remove redundant member
4 years ago
Benedikt Stebner
2f5c5494b4
Add failing test
4 years ago
Emmanuel Hansen
6384c49cdb
update tests
4 years ago
Steven Kirk
fd46119d74
Add failing test for Viewbox DataContext binding.
4 years ago
Benedikt Stebner
93b77b1b6a
Move inlines support to TextBlock and rename RichTextBlock to SelectableTextBlock
4 years ago
Giuseppe Lippolis
a763255f3f
fix: revert test changes
4 years ago
Giuseppe Lippolis
6213676115
fix: Address CA1822 rule
4 years ago
Giuseppe Lippolis
de4b55f8ee
feat(tests): Address rule CA1822
4 years ago
Giuseppe Lippolis
36cfc43a59
feat: Address CA1820 Rule
4 years ago
Emmanuel Hansen
89f031574b
Add tests
4 years ago
Benedikt Stebner
75b3abbdd8
Properly arrange Embedded controls during ArrangeOverride
4 years ago
Tim
ab4bb208f5
Add Unit Test
4 years ago
rabbitism
79cc37e372
feat: add :dropdownopen and :pressed pseudoclass for combobox.
simplify fluent theme combobox default template.
update unit test.
4 years ago
Steven Kirk
ac27138120
Add failing tests for #8866 .
4 years ago
Steven Kirk
cc4b8e3ea0
Fix typo.
4 years ago
robloo
13b67defef
Update DatePicker and TimePicker unit tests
4 years ago
Stanislav Silin
93019b8da0
Fix stretched relative panel test.
4 years ago
Stanislav Silin
5033e8a6f1
Add test for stretched relative panel.
4 years ago
Max Katz
18128a59de
Fix window Loaded and Unloaded events
4 years ago
rabbitism
928f03a404
fix to remove GridLength.ToString() culture dependency.
4 years ago
Andrey Kunchev
d4840a55bc
add failing test for #8669
4 years ago
Takoooooo
a30d73eb5e
Fix tests.
4 years ago
Takoooooo
fe79cee672
Fix Tests.
4 years ago
Benedikt Stebner
81b0dce302
Fix RichTextBlock Inlines update handling
4 years ago
Luis von der Eltz
25b19931e8
Add timeout to "hang" UT
4 years ago
Luis von der Eltz
e64a4430a0
Apply async hack to make timeout work
4 years ago
Luis von der Eltz
107fc7162e
Fix infinite loop when all items are disabled
4 years ago
Luis von der Eltz
d9ce64e1b0
Skip disabled controls when moving to first/last item
4 years ago
Steven Kirk
76274f80b3
Added SafeEnumerableList and use in Classes.
Adds a simple copy-on-write list and uses it to store the listeners to `Classes` to prevent problems with re-entrancy.
Fixes #8480
4 years ago
Steven Kirk
9e4a597225
Added failing tests for #8480 .
4 years ago
Dan Walmsley
0aacec3fae
fix mockwindowplatform and test.
4 years ago