Steven Kirk
93b4d810b9
Moved scaling to per-window.
Always returning a scaling factor of 1 currently.
10 years ago
Steven Kirk
9a753140fd
Fix failing tests.
10 years ago
Steven Kirk
d8725286aa
Fix layout bug with ScrollViewer.
When calling Measure from Arrange, use previous measure constraint if
available.
10 years ago
Steven Kirk
f7f2fc65b7
Make Arrange call Measure if !IsMeasureValid.
To follow WPF. Also removed force parameter from Arrange and fixed
Decorator measure invalidation.
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
0e2cee8810
Overhauled layout system.
From lessons learnt from porting moonlight's Grid tests. Instead of
making a child invalidate its parents directly, send a message from the
child to the parent when its DesiredSize changes. LayoutManager also
needed rewriting to allow this.
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
e5f9b37b1f
Removed commented-out tests.
They have been moved to other files.
10 years ago
Steven Kirk
df7b5a4ac9
Test attached property validation.
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
89dc27f276
All tests now passing.
10 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
10 years ago
Steven Kirk
03e2ff8784
WIP: Splitting PerspexProperty up
10 years ago
Ivan Kochurkin
d8bec31dd8
Added tests data for Polyline and Polygon rendering.
10 years ago
Ivan Kochurkin
5b79178947
Added LineJoin parameter to geometric primitives.
Fixed Bounds for Line, Polygon, Polyline.
10 years ago
Nikita Tsukanov
a74e9b3ff7
Fixed `Path_Tick_Scaled`, `Path_Tick_Scaled_Stroke_8px` and `Path_Expander_With_Border` for Skia
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
Ivan Kochurkin
93e1f0d388
Removed PointPair.
10 years ago
Ivan Kochurkin
bf9d9e270b
Added PolygonTests with evenOdd fill.
Fixed errors after merge.
10 years ago
Ivan Kochurkin
5c969c40b8
Implemented Polygon, Polyline, PolylineGeometry.
Added unit-tests with data and demo code in TestApplication.
10 years ago
Ivan Kochurkin
e07d085ef5
Fixed Line rendering (PointPair instead of Rect) and added unit-tests.
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
e08b9e3e4b
Removed PerspexObject.BindTwoWay.
Instead use subjects and Bind.
10 years ago
Steven Kirk
bf30371721
Removed ITreeDataTemplate.IsExpanded.
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
Ivan Kochurkin
2cfa6f842e
Fixed @kekekeks notes.
Fixed test name (Line instead of Circle).
10 years ago
Ivan Kochurkin
b6c66c67e0
Added Line and LineGeometry for line drawing.
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
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
9e8fec942e
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