Steven Kirk
ca17c50bf4
Treat warnings as errors.
In Release build in main Avalonia assemblies (couldn't do it in
Avalonia.Markup.Xaml due to warnings in OmniXaml). To do this, fixed a
number of warnings.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Jeremy Koritzinsky
da5fd06fcd
Moved validation filtering into ExpressionObserver and out of InstancedBinding, PerspexObject, and the Priority* system. Renamed some methods in this system to be more descriptive.
10 years ago
Jeremy Koritzinsky
774c6e6fa4
Made validation enable-able during binding construction, similar to WPF. Now validation events are only raised when the validation type is enabled on the property.
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
1841e7ad7a
Start allowing Setters to contain bindings.
This is needed so that things like the following can be done:
<TreeView>
<TreeView.Styles>
<Style Selector="TreeViewItem">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"/>
</Style>
</TreeView.Styles>
<TreeView>
(At the moment we have TreeDataTemplate.IsExpanded but this isn't good
enough: it only supports setting IsExpanded on creation of the item with
no binding.)
With this commit, setters can now contain bindings, but they aren't yet
applied correctly. As part of this commit, classes related to binding
have been moved to the Perspex.Data namespace.
10 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
10 years ago
Steven Kirk
43a66901fc
Remove ExpressionValue.
Use PerspexProperty.UnsetValue instead.
10 years ago
Steven Kirk
4f09de4dfe
Started adding XamlBinding unit tests.
11 years ago
Nikita Tsukanov
21a3554260
Change property getter to expression properties
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
d11d779414
Trying to fix capitalization of tests and docs AGAIN.
11 years ago
Steven Kirk
1a2fba4798
Revert "Fixed casing of Docs and Tests directories."
This reverts commit 845b28a2c2 .
11 years ago
Steven Kirk
845b28a2c2
Fixed casing of Docs and Tests directories.
11 years ago
Steven Kirk
e3620c3139
Use interfaces in page transitions.
11 years ago
Steven Kirk
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
eabf674027
Move more stuff from Control to IControl.
To do this, added the PropertyBag interfaces from ideas branch.
11 years ago
Steven Kirk
16aa4f66cc
Merge branch 'propertyequals-selector' into menu
Conflicts:
Perspex.Styling/Selectors.cs
11 years ago
Steven Kirk
768718e43f
Started optimizing selectors.
11 years ago
Steven Kirk
ba8552cb81
Renamed Id to Name.
No reason to be different for the sake of it.
11 years ago
Steven Kirk
9b59a954b2
Added IStyleable.StyleKey.
Most controls want to be styled based on their type, however windows
derived from Window will usually want to be styled as Window. Added an
IStyleable.StyleKey property to select the type that a control is styled
on.
11 years ago
Steven Kirk
a4bf79b7cc
Moved tests to Tests subdir.
11 years ago
Steven Kirk
bfadaac5d9
Non-building checkpoint in MAJOR refactor.
12 years ago
Steven Kirk
797cbb433b
Added TemplateBinding syntactic sugar.
12 years ago
Steven Kirk
d1491d9ceb
Started revamping binding system.
To allow prioritized bindings.
12 years ago
Steven Kirk
0ec3641fb7
More template/descendent selector tests.
12 years ago
Steven Kirk
39bbe8464f
Descendent selector WIP.
12 years ago
grokys
9bad6b1b91
Selectors return linked list of matches again.
12 years ago
grokys
4080c18f59
Added IVisual interface.
12 years ago
grokys
6fd6f186ec
Added ITemplatedControl interface.
12 years ago
grokys
ac659701b8
Style away the hours.
12 years ago
grokys
52bf8b0b1f
Defer style changes when changing classes.
Because we don't know which style to apply until all selectors have
received notification of a class change.
12 years ago
grokys
581a037cb8
Style council.
12 years ago