Steven Kirk
be8e650184
Fix non-compiling tests.
10 years ago
Steven Kirk
338b71b204
Moved IVisual to Perspex.VisualTree.
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
a03dad9bab
Removed a bunch of unused members/classes.
10 years ago
Steven Kirk
eec9a1f44a
Added shared TestRoot class.
And use it in every unit test project except SceneGraph as that one is
different.
10 years ago
Steven Kirk
e096c849d9
Updated NuGet packages.
Closes #395 .
10 years ago
Steven Kirk
3fde7f979c
Added VisualExtensions.PointToClient.
In addition moved PointToScreen to VisualExtensions, and renamed
IRenderRoot.TranslatePointToScreen to IRenderRoot.PointToScreen.
10 years ago
Steven Kirk
5489487131
Make LayoutManager global.
Also made a few other changes along the way:
- Add MaxClientSize to ILayoutRoot
- Store IRenderRoot in Visual and use that to calculate
IsAttachedToVisualTree
- Make Affects* methods take multiple properties
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
3e6402711c
Make TreeViewItem.IsExpanded bindings work.
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
4fa3c98ca3
Detach styles when control removed from visual tree.
10 years ago
Steven Kirk
ba226d47a6
Return TargetType from Selector.
11 years ago
Steven Kirk
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
11 years ago
Steven Kirk
43a66901fc
Remove ExpressionValue.
Use PerspexProperty.UnsetValue instead.
11 years ago
Steven Kirk
4f09de4dfe
Started adding XamlBinding unit tests.
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
Steven Kirk
15954d1dc5
Fix intermittent Style unit test failures.
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
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