Steven Kirk
c052d389a9
Fix ScrollViewer.
Make various properties Direct properties, which gives them the correct
binding behavior.
10 years ago
Steven Kirk
bfb334ca5e
Ensure TreeViewItem.IsSelected is set.
When TreeView.SelectedItem changes.
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
adee104ad9
DropDown shouldn't be an IContentControl.
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
susloparov
ccf59b8690
GridSplitterTests
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
626aa9cd19
Fix SelectingItemsControl.SelectedItems bug.
Make sure unbound SelectedItems cleared when DataContext is cleared.
11 years ago
Steven Kirk
2bcaef3c7e
Fixed failing TreeView tests.
11 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.
11 years ago
Nikita Tsukanov
abd54620cd
Moved WindowingPlatformMock
11 years ago
Nikita Tsukanov
6e33686ff6
CreateDesignerFriendlyWindow -> CreateEmbeddableWindow
11 years ago
Nikita Tsukanov
27e1d4accb
Fix for FullLayoutTests
11 years ago
Nikita Tsukanov
3c78704f55
Fix for tests
11 years ago
Steven Kirk
1ac814e534
Make ScrollViewer handle child margin.
11 years ago
Steven Kirk
bd6b6bad67
Added test for SCV.BringDescendentIntoView
11 years ago
Steven Kirk
fa872389c3
Make ScrollContentViewer.Offset get coerced.
Use the same logic as for ScrollViewer.
11 years ago
Steven Kirk
14cf0319bd
Added ScrollViewer offset coercion unit test.
11 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
3307ef8712
Register templated controls with name scope.
Usually controls are only registered with their name scope when they get
added to a rooted visual tree, but this causes problems for tests, and
would mean the templated control wouldn't work if the client called
ApplyTemplate themselves before the control is added to the visual tree.
Work around this by explicitly registering template controls with the
name scope when the template is applied.
To allow this, we need to allow controls to be registered with a name
scope multiple times.
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
d1150d2879
Fixed typos.
11 years ago
susloparov
fd12667d4b
Added wrap panel
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
42ea736be2
Reset ItemsPresenter on Move for now.
Need to implement this in a more efficient manner.
11 years ago
Steven Kirk
0617aa23a5
Support Replace and Reset in ItemsPresenter.
11 years ago
Steven Kirk
71973cabb1
Fix removing items from ItemsControl.
11 years ago
Steven Kirk
6a005d35c8
Make TreeView selection work etc.
Unfortunately stuff is still broken - I think ItemContainerGenerator
needs a refactor.
11 years ago
Steven Kirk
2615c5373c
Started adding TreeView tests.
11 years ago
Steven Kirk
53926a47bf
Refactored ItemContainerGenerator<T>.
To allow TreeItemContainerGenerator to inherit from it.
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
5bfa93b747
Renamed Deck -> Carousel.
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