Max Katz
be22b361c8
Add theme variants specific tests
3 years ago
Steven Kirk
6f03f1c3d6
Removed ITemplatedControl.
4 years ago
Steven Kirk
d21e634ab3
Added support for implicit themes.
If no `Theme` property is provided, try to look up a resource keyed with the control's `StyleKey`.
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
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Steven Kirk
e9256a9e40
Initial implementation of add/remove styles.
Only currently works on top-level `Styles` collections, not working in `Application.Styles`.
6 years ago
Steven Kirk
dc55d65287
Refactored styling.
- Don't use Rx in the styling system. Instead introduces `IStyleActivator` which is like an `IObservable<bool>`-lite in order to cut down on allocations.
- #nullable enable on touched files
6 years ago
Nikita Tsukanov
76f9c8fdc5
Removed legacy XAML loader
7 years ago
Steven Kirk
5210926c03
Disallow setting unregistered properties.
8 years ago
Steven Kirk
b8f127fce7
Reimplemented TemplateBinding.
Rather than just use a standard `Binding`, make `TemplateBinding` a lightweight binding in the case where the binding is simply to a property on the templated parent.
8 years ago
Nikita Tsukanov
9134723eef
Dead code elimination
9 years ago
Nikita Tsukanov
880e850000
Fixed build
9 years ago
donandren
8b468c174c
fix AvaloniaPropertyConverter Tests, added attached property binding test, fixed some tests, simplified others
9 years ago
donandren
d59e5078d4
added tests for using type converters
9 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
fa9e7fbcd8
Don't use observables to detach styles.
Rather than adding a TakeUntil(control.StyleDetach) to each applied
style, keep track of the applied styles in a static list. This
dramatically reduces memory usage.
10 years ago
Steven Kirk
2234c6dba4
Updated OmniXAML.
10 years ago
Steven Kirk
079a6adb4e
Fix tests.
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
11 years ago
Steven Kirk
526ce1e0cc
Get the PerspexProperty type from the Style.
11 years ago
Steven Kirk
cc1c2c0313
Fixes #147 .
11 years ago
Steven Kirk
63e2870f3b
Use consistent naming for TypeConverters.
11 years ago
Steven Kirk
91dda4c2d0
Handle attached properties in PerspexPropertyConverter.
11 years ago