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
36543720ed
Added IPerspexObject.GetSubject extension method.
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
adee104ad9
DropDown shouldn't be an IContentControl.
10 years ago
Steven Kirk
14507beb41
Log invalid binding values in PriorityValue.
10 years ago
Steven Kirk
7adc902b99
Handle null content in TabControl.
10 years ago
Steven Kirk
c49201b8cb
Added SelectingItemsControl.SelectionChanged event.
10 years ago
Steven Kirk
4845dfd0fa
Added IContentPresenterHost.
Similarly to how we now have IItemsPresenterHost.
10 years ago
Steven Kirk
e85178e0c5
Unwrap TargetInvocationExceptions.
Calling Delegate.DynamicInvoke wraps any exception - we want to expose
the actual exception to callers.
11 years ago
Steven Kirk
c4ceebcfb3
Ensure Presenter template is applied...
...before updating ContentControl's logical children, as otherwise the
Presenter.Child may be null as UpdateChild has not yet been called.
11 years ago
Steven Kirk
567f0135ff
Make TemplatedParent inherit.
This means that we only need to set the TemplatedParent on the root of a
control's template, and on presenter children.
11 years ago
Steven Kirk
c810f95904
Don't ApplyTemplate on nested templated controls...
...during ApplyTemplate. This was so that ItemsControls could their find
ItemsPresenters nested in other templated controls. Instead use
IItemsPresenterHost to make the presenter register itself with its
TemplatedParent.
11 years ago
Steven Kirk
c6582d83c3
Merged the two separate TemplatedControlTests.
11 years ago
Steven Kirk
26f1124c75
Fixed failing test.
Also fixed spelling mistakes and formatting.
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
susloparov
ccf59b8690
GridSplitterTests
11 years ago
Steven Kirk
416eb1d7a5
Respect negative margins when culling.
And make ClipToBounds = true as default on TemplatedControl to allow us
to cull more.
11 years ago
Steven Kirk
8e2830ad05
Don't return negative size from Measure.
In the case of a negative margin larger than the available size.
11 years ago
Steven Kirk
c427ab49f6
Cull controls outside clip bounds.
11 years ago
Steven Kirk
3bfba9c8ce
Ensure TreeViewItems are removed from index.
When TreeViewItem is removed from TreeView.
11 years ago
Steven Kirk
8fe84fa1dc
Search logical tree for root TreeView.
11 years ago
Steven Kirk
78abef1551
Tidied up tree item container generators.
In doing so fixed a bug in DevTools where tree items would become
unselectable.
11 years ago
Steven Kirk
bfc010f757
Initial implementation of logical scrolling.
aka IScrollInfo in WPF.
11 years ago
Steven Kirk
db1e20acc8
Only allow pseudoclasses to be set by control.
Limit adding/removing pseudoclasses to IPseudoClasses interface.
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
23cc9a2ff4
Allow binding to element without path.
Closes #365 .
11 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
11 years ago
Steven Kirk
dc757851c1
Added failing Carousel leak test.
As found by @donandren .
11 years ago
Steven Kirk
d2bbe8e08e
Test event handling works as expected.
11 years ago
Steven Kirk
626aa9cd19
Fix SelectingItemsControl.SelectedItems bug.
Make sure unbound SelectedItems cleared when DataContext is cleared.
11 years ago
susloparov
ef7dc640c5
Skipped Path_With_PenLineCap render test for Cairo
11 years ago
susloparov
40c01b73fb
Renamed stroke Shape properties according to WPF naming
11 years ago
susloparov
42bddea9f2
Direct2D render test for the Path using DashLineCap, StartLineCap, EndLineCap.
11 years ago
susloparov
fe88eae319
Somehow PathTests.cs was treated as a binary file by git. Fixed that.
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
5f0a6c9d72
Use observable to signal update...
...in ExpressionObserver, instead of calling UpdateRoot. This should
avoid a leak.
11 years ago
Steven Kirk
318be5196d
Added some ExpressionObserver lifetime tests.
11 years ago
Steven Kirk
21bd841258
Made templated child leak test fail.
11 years ago
Steven Kirk
aa6b9045bc
Added new leak test.
11 years ago
Steven Kirk
8fb9c5c8e7
Fixed problem with binding DataContext.
Bindings such as <Foo DataContext="{Binding Bar}"/> were not working.
11 years ago
Steven Kirk
f20e26ea38
TextBox ScrollViewer doesn't get released
When TextBox.Template is cleared. This is showing up as a leak when a
TextBox is contained in a TabControl and tabs get changed.
11 years ago
Steven Kirk
260f2a4cc4
Added some more leak tests.
All passing.
11 years ago
Steven Kirk
2bcaef3c7e
Fixed failing TreeView tests.
11 years ago
Steven Kirk
4fa3c98ca3
Detach styles when control removed from visual tree.
11 years ago
Steven Kirk
b3e90d01ea
Updated LinearGradientBrush expected output on D2D.
11 years ago
Steven Kirk
9b8bff1ba4
Added leak test for named controls.
As previously they were leaking before recent name scope fixes.
11 years ago
Steven Kirk
4d13d1313c
Added some memory leak unit tests.
Using JetBrains' dotMemory Unit testing framework. Currently shows that
TreeView does not get freed.
11 years ago
Steven Kirk
9199bb48ce
Use invariant locale in tests.
Fixes #304 .
11 years ago