Steven Kirk
444ca577ca
Moved Bind method to IPerspexObject.
Allow IPerspexObject to be bound to an IBinding.
11 years ago
Steven Kirk
3e6402711c
Make TreeViewItem.IsExpanded bindings work.
11 years ago
Steven Kirk
ce997f6965
Refactor ActivatedSubject
Inherit from ActivatedObject.
11 years ago
Steven Kirk
36f2f3e1e0
More work on allowing bindings in setters.
Support activated ISubjects.
11 years ago
Steven Kirk
5e0dd8fcd3
Support Setters with Bindings.
However Styles with activators (e.g. "Foo.class") not yet supported.
11 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.
11 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
11 years ago
Steven Kirk
1eb0fbb385
Further simplify StyleActivator.
The clever stuff was causing styles to fail and probably isn't needed
anyhow. Fixes #371 .
11 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
8172d8214f
Use a naive implementation of StyleActivator.
As previous one was buggy and leaked.
11 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
11 years ago
Steven Kirk
da39751faf
Undo commented out code.
11 years ago
Steven Kirk
4d6572b74e
Added StyleActivator leak test.
Trying to locate source of StyleActivator leaks - this test doesn't find
it.
11 years ago
Steven Kirk
4fa3c98ca3
Detach styles when control removed from visual tree.
11 years ago
Steven Kirk
d004426b28
Allow styles to apply across popup contexts.
By defining a StylingParent property and tying it to InheritanceParent.
Fixes #312 .
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Steven Kirk
ca4c21256a
Fixed some warnings.
11 years ago
Steven Kirk
55d867ba54
Suppress XML doc comment warnings.
11 years ago
Steven Kirk
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
susloparov
702f3a4645
Fixed misprint in Selector xmldoc. '<' was written instead of '>'.
11 years ago
Steven Kirk
142eaa1c7c
More work on XAML styles.
- Added "Control[Property=Value]" selector handling
- Added hacks for ExpressionObserver not currently handing attached
properties
- Added ContentControl style
- Fixed ScrollBar and TextBox
11 years ago
Steven Kirk
1b17b037cf
Use ContentAttribute to identify content property.
11 years ago
Steven Kirk
ba226d47a6
Return TargetType from Selector.
11 years ago
Steven Kirk
00613b2d67
Use correct Contract exception.
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Steven Kirk
cc1c2c0313
Fixes #147 .
11 years ago
Steven Kirk
2c6e14b861
Fix style with no selector.
Make style with no selector only apply to the control that contains the
style.
11 years ago
Nikita Tsukanov
bec230211a
Now resolving xml namespaces via attributes
11 years ago
Steven Kirk
7e2a28c91f
Initial implementation of PerspexPropertyConverter.
11 years ago
Steven Kirk
eb220a9388
Started implementing Selector parser.
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
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
f071a3d06b
Removed GlobalSuppressions.
11 years ago
Steven Kirk
2e56c951d5
Removed StyleCop.Analysers.
11 years ago
Steven Kirk
7f6b198d02
Refactor Setter into Setter and ObservableSetter.
Both sharing a common ISetter interface.
11 years ago
Steven Kirk
ac24ccaebd
Allow setters to use observables for their value.
11 years ago
Steven Kirk
c68cd8a48b
Fix class selector string representation.
11 years ago
Steven Kirk
5dc0e604fb
Slyecoping.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago