Steven Kirk
4bdcb8eeea
Invalidate template control styles when Theme changes.
4 years ago
Steven Kirk
5cd9532012
Move tests to correct place.
4 years ago
Steven Kirk
8c61f25188
Promote theme to LocalValue if applied from style.
4 years ago
Steven Kirk
fc3c036b02
Move Theme to StyledElement.
The WPF equivalent (`Style`) is in `FrameworkElement` so it would make sense. Will also make stuff a lot easier and removes the need for an `IThemed` interface.
4 years ago
Steven Kirk
a6dc6b1c88
Prevent ControlTheme as a nested style.
4 years ago
Steven Kirk
dee353bb96
Support ControlTheme in XAML compiler.
4 years ago
Steven Kirk
088d8cfc5c
Initial implementation of control themes.
4 years ago
Steven Kirk
902703fbed
Allow nested styles inline in parent style XAML.
Removes the need to enclose nested styles in a `<Style.Children>` element in XAML.
4 years ago
Dan Walmsley
97cb3a68f0
Add unit test.
4 years ago
Max Katz
bc6d5ec87d
Add tests
4 years ago
Steven Kirk
33f6974df1
Added failing test for Viewbox layout.
4 years ago
Takoooooo
b0f7871eec
Don't allow bindings to private methods.
4 years ago
Max Katz
b567fcebf5
Rename TemplateDataTypeAttribute to DataTypeAttribute
4 years ago
Max Katz
f1a2716858
Inherit DataType from template without hardcoding on specific DataTemplate implementation
4 years ago
Steven Kirk
5aa7de52e7
Add cleanup step to leak tests.
Because previously failures could occur depending on the order that leak tests were run in.
4 years ago
Steven Kirk
61ee2d18e9
Move assert of initial item state into method.
So that we don't keep a reference to the item.
4 years ago
Benedikt Stebner
006aef2388
Rework hit testing to not rely on cluster values and instead use the currently covered TextSourceLength
4 years ago
Steven Kirk
0654d63693
Added failing tests for #8178 .
4 years ago
Steven Kirk
55b19b445f
Remove unused vars.
4 years ago
Steven Kirk
556adb4bc7
Use ^ as nesting selector.
`&` causes problems in xml files.
4 years ago
Steven Kirk
33679377f8
Validate presence of nesting selector.
4 years ago
Steven Kirk
e662a9fd43
Added test for window max width/height.
4 years ago
Steven Kirk
9f03a1f7be
Added additional test for visibility invalidation.
4 years ago
Dariusz Komosinski
220a8a8df9
Use cheaper transforms in Viewbox.
4 years ago
Wiesław Šoltés
f3e2d45e19
Fix tests
4 years ago
Dariusz Komosinski
646cefa8cc
Enable test that was skipped for two years.
4 years ago
Dariusz Komosinski
90b67c3b9f
Modify test setup so actual framework classes are used.
4 years ago
Steven Kirk
35db70c8d4
Don't expose viewbox container as logical child.
#7735 introduced an internal container control which hosts the child, but it exposed this child in the logical tree, breaking any styles which relied on the `Viewbox.Child` being the logical child of the `Viewbox`.
Fix this by introducing a simple internal `ViewboxContainer` control as the container.
4 years ago
Nikita Tsukanov
a5b2eb08d4
Added support for IReflectableType in InpcPropertyAccessorPlugin
4 years ago
Kaktusbot
5eca6cc83e
Add test to AvaloniaList.AddRange to notify Count property changed
4 years ago
Benedikt Stebner
17b9f246f3
Text hit testing fixes
4 years ago
Dariusz Komosinski
174b94f3b4
Replace ImageMagick with ImageSharp for render test comparisons.
4 years ago
Steven Kirk
c34b7f2d31
Remove generic methods from ILogSink.
Part of the push to remove generic virtual methods from Avalonia for performance reasons.
Generic methods were added to this interface in #3055 to prevent boxing before we added `Logger.TryGet` (#4135 ).
Given that since we added `Logger.TryGet`, only enabled logging levels will result in a call to the logger, we can move back to using `params object[]` and boxing; removing the generic interface methods.
4 years ago
Benedikt Stebner
bdadb6a351
Fix GetTextBounds for mixed runs
4 years ago
Benedikt Stebner
a34e0f50e2
Bump
4 years ago
Benedikt Stebner
005907a93b
More hit testing fixes for embedded content runs
4 years ago
Tako
7c63e1a60b
Fix ContextMenu freeze.
4 years ago
Benedikt Stebner
0cdbd53bc3
Rewrite TextBounds test
4 years ago
Steven Kirk
6b2cedfcd1
Fix failing test.
It was probably not a good idea to test the contents of the template explicitly in unit tests, but here we are...
4 years ago
Steven Kirk
d1956d18b4
Scale ComboBox popup according to RenderTransform.
4 years ago
Benedikt Stebner
3e6bc0b48d
Some more hit testing fixes
4 years ago
Dariusz Komosinski
066c81b1ac
Another fix for WeakHashList. Added basic unit tests.
4 years ago
Steven Kirk
82835ef957
Use nested styles in Button template.
And related fixes to make this work.
4 years ago
Steven Kirk
6df672e4c0
Remove IAvaloniaPropertyVisitor.
It was only used internally in creating `ISetterInstance`s so add a virtual method to `AvaloniaProperty` to do this explicitly without generic virtual methods.
4 years ago
Steven Kirk
f9dbbb3da1
Make UpdateDataValidation non-generic.
4 years ago
robloo
a389f7b0d8
Fix ColorPicker project references
4 years ago
robloo
cf654da43f
Add separate Avalonia.Controls.ColorPicker project
4 years ago
robloo
c7e0a68f27
Support RGB component percentages in CSS format parsing
4 years ago
Steven Kirk
646ce23bb4
Initial XAML implementation of nested styles.
4 years ago
Tako
fd5e2169c1
reimplementation and some tests
4 years ago