Steven Kirk
d0efd0c6d4
Clear TemplatedParent of ex-template children.
This prevents them still being bound to their ex-TemplatedParent. Fixes
#435 .
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
9a0df79ec5
Use UnitTestApplication in some more places.
Also removed service registration from some tests that now don't require
it.
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
c49201b8cb
Added SelectingItemsControl.SelectionChanged event.
10 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.
10 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.
10 years ago
Steven Kirk
c6582d83c3
Merged the two separate TemplatedControlTests.
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Steven Kirk
626aa9cd19
Fix SelectingItemsControl.SelectedItems bug.
Make sure unbound SelectedItems cleared when DataContext is cleared.
10 years ago
Steven Kirk
9eb54f59d2
Fixed name scopes.
Controls were being registered with the nearest name scope on the visual
tree, whereas they should be registered by traversing the logical tree.
10 years ago
Nikita Tsukanov
abd54620cd
Moved WindowingPlatformMock
10 years ago
Nikita Tsukanov
6e33686ff6
CreateDesignerFriendlyWindow -> CreateEmbeddableWindow
10 years ago
Nikita Tsukanov
27e1d4accb
Fix for FullLayoutTests
10 years ago
Nikita Tsukanov
3c78704f55
Fix for tests
10 years ago
Steven Kirk
1044154279
Bind to other controls with #control syntax.
Rather than specifying ElementName separately, allow binding using a "#control.Property" property path.
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
Steven Kirk
71cd3d965b
More work on XAML control theme.
11 years ago
Steven Kirk
b230c3b3f3
Renamed XamlBinding -> Binding
Had to also rename enclosing namespace from Binding to Data as classes
with same name as a namespace cause problems.
11 years ago
Steven Kirk
785238bdf1
Merged XamlBinding and XamlTemplateBinding.
11 years ago
Steven Kirk
25fa7ddc6a
Added Carousel and CheckBox XAML styles.
11 years ago
Steven Kirk
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
11 years ago
Steven Kirk
5b307f653d
Fix spurious selection changes.
In SelectingItemsControl. This was causing TabControls with transitions
to break.
11 years ago
Steven Kirk
e824458a00
Fix DataContext binding problem with SelectedItems.
This one has to be solved in SelectingItemsControl as the property is
not updated via a binding.
11 years ago
Nikita Tsukanov
a61fdc86b2
Removed IPlatformThreadingInterface mock since it's broken anyway
11 years ago
Steven Kirk
6401cec2ef
Make SelectedItems a plain IList
As IList<T> is not covariant.
11 years ago
Steven Kirk
c0dff57a78
Make SelectedItems bindable.
And to avoid confusion removed SelectedIndexes.
11 years ago
Steven Kirk
1ed1d0efb9
Added additional test.
11 years ago
Steven Kirk
7d73960ef6
Make selecting ranges work.
11 years ago
Steven Kirk
b2d40e77c3
Started implementing multiple selection.
11 years ago
Steven Kirk
271f47fb5b
Make SelectionMode flags.
So you can combine behaviours.
11 years ago
Steven Kirk
7b82df4369
Replaced AutoSelect with SelectionMode.
Added protected multiple selection properties to SelectingItemsControl.
11 years ago
Steven Kirk
cbfbc52803
Use direct PPs for SelectedIndex/Items.
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Steven Kirk
3693193246
Fix tests failing due to previous layout fix.
The test expectations were incorrect after stretch layout with absolute
size fix.
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