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
92035ffdba
Don't CombineLatest if no need.
10 years ago
Steven Kirk
b46d91e71e
Removed unnecessary rx Select.
10 years ago
Steven Kirk
7045268acc
Cache selector strings.
10 years ago
Steven Kirk
072941837b
Refactored styles...
To try and make them more performant.
10 years ago
Steven Kirk
1ae6b929b3
Think I've fixed the leak...
But I think it's showing up bugs elsewhere that need to be fixed.
10 years ago
Steven Kirk
6b99bcf30b
Use LastOrDefaultAsync for completion.
10 years ago
Steven Kirk
cffc67e117
Correctly set binding priority from Setter.
10 years ago
Steven Kirk
c8dc3ff29b
Default theme now uses style resources.
10 years ago
Steven Kirk
8209a85193
Make IBinding return an InstancedBinding.
Instead of an ISubject<object> as this was wasteful when a OneTime or
OneWay binding was required.
10 years ago
Steven Kirk
81065f1d24
Added logical tree attachment events to ILogical.
10 years ago
Steven Kirk
a72c3e46bf
Moved ILogical to Perspex.LogicalTree.
10 years ago
Steven Kirk
19af37a6af
Started adding StyleResource markup extension.
OmniXAML issue #84 is now blocking us.
10 years ago
Steven Kirk
6b06d0ee4c
Started adding Style resources.
Added Style.Resources and confirmed that Color can be added to the
resources. However, SolidColorBrush doesn't work - needs a fix from
OmniXAML.
10 years ago
Steven Kirk
2384b13446
Added DependsOn attributes.
10 years ago
Steven Kirk
06454a9101
Suppress doc warnings in Release mode.
10 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
10 years ago
Steven Kirk
444ca577ca
Moved Bind method to IPerspexObject.
Allow IPerspexObject to be bound to an IBinding.
10 years ago
Steven Kirk
3e6402711c
Make TreeViewItem.IsExpanded bindings work.
10 years ago
Steven Kirk
ce997f6965
Refactor ActivatedSubject
Inherit from ActivatedObject.
10 years ago
Steven Kirk
36f2f3e1e0
More work on allowing bindings in setters.
Support activated ISubjects.
10 years ago
Steven Kirk
5e0dd8fcd3
Support Setters with Bindings.
However Styles with activators (e.g. "Foo.class") not yet supported.
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
1eb0fbb385
Further simplify StyleActivator.
The clever stuff was causing styles to fail and probably isn't needed
anyhow. Fixes #371 .
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Steven Kirk
8172d8214f
Use a naive implementation of StyleActivator.
As previous one was buggy and leaked.
10 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
10 years ago
Steven Kirk
da39751faf
Undo commented out code.
10 years ago
Steven Kirk
4d6572b74e
Added StyleActivator leak test.
Trying to locate source of StyleActivator leaks - this test doesn't find
it.
10 years ago
Steven Kirk
4fa3c98ca3
Detach styles when control removed from visual tree.
10 years ago
Steven Kirk
d004426b28
Allow styles to apply across popup contexts.
By defining a StylingParent property and tying it to InheritanceParent.
Fixes #312 .
10 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
10 years ago
Steven Kirk
ca4c21256a
Fixed some warnings.
10 years ago
Steven Kirk
55d867ba54
Suppress XML doc comment warnings.
10 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