Steven Kirk
338b71b204
Moved IVisual to Perspex.VisualTree.
10 years ago
Steven Kirk
a72c3e46bf
Moved ILogical to Perspex.LogicalTree.
10 years ago
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
03c7cb5456
Handle inserts into ItemsControl items.
Fixes #431 .
10 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
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
a7647298e6
Removed test
It wasn't right.
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
b1f0ac8c97
Revert "Added InputRoot to all raw input events."
This reverts commit ae747c6dc7 .
10 years ago
Steven Kirk
1cd7f46315
Revert "Added InputRoot to all raw input events."
This reverts commit ae747c6dc7 .
10 years ago
Steven Kirk
ae747c6dc7
Added InputRoot to all raw input events.
10 years ago
Steven Kirk
1f71d941fb
Fix Image measure.
Should return a DesiredSize which fits in the constraint.
10 years ago
Steven Kirk
9a753140fd
Fix failing tests.
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
5b2906a01d
Missed change from last commit.
10 years ago
Steven Kirk
bb759a8785
We can now override the default binding mode.
So make TextBlock and TextBox have different default binding modes.
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
3beea47bf7
Replace DockPanel implementation.
The old one was broken - replaced by the implementation from
WinRTXamlToolkit which is both simpler and works correctly. Also added
some tests. This closes #397 , closes #348 , closes #74 .
10 years ago
Michael Mayfield
3ed14edf12
Fix Grid sizing being broken when using Grid.ColumnSpan.
Caused by CreateMatrices not clearing the existing matrices. This means previous measures alter the results of a measure.
10 years ago
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.
10 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.
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
26f1124c75
Fixed failing test.
Also fixed spelling mistakes and formatting.
10 years ago
susloparov
ccf59b8690
GridSplitterTests
10 years ago
Steven Kirk
3bfba9c8ce
Ensure TreeViewItems are removed from index.
When TreeViewItem is removed from TreeView.
10 years ago
Steven Kirk
8fe84fa1dc
Search logical tree for root TreeView.
10 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.
10 years ago
Steven Kirk
bfc010f757
Initial implementation of logical scrolling.
aka IScrollInfo in WPF.
10 years ago
Steven Kirk
db1e20acc8
Only allow pseudoclasses to be set by control.
Limit adding/removing pseudoclasses to IPseudoClasses interface.
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
2bcaef3c7e
Fixed failing TreeView tests.
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
1ac814e534
Make ScrollViewer handle child margin.
10 years ago