donandren
2fe35aacf9
Support for Size in xaml
10 years ago
donandren
1679041211
added Size.Parse
10 years ago
donandren
11f2b702de
Added support for path figures definition in xaml
10 years ago
Nikita Tsukanov
dd67d49960
Fixed Size::operator -
10 years ago
Steven Kirk
a40f0be1d9
Make SolidColorBrush properly immutable.
Previous its color was immutable but because it inherited from Brush, its Opacity was mutable. This wasn't good, as it meant that e.g. Brushes.Red could be changed. Make it properly immutable by using the IBrush interface everywhere and not inheriting from Brush.
10 years ago
Steven Kirk
85f1c3a5c7
Added Expander to ControlCatalog.
And fixed bug with CrossFade.
10 years ago
Steven Kirk
45b5ec5d8f
Added Control.Initialized.
10 years ago
Steven Kirk
50322aabf6
Use the same pattern for visual tree (de)attachment
As for logical tree.
10 years ago
Steven Kirk
3bf4182007
Log binding errors.
10 years ago
Steven Kirk
ea6b1d4cfd
Starting removing hard dependency on Serilog.
Instead log through a static Logger, and provide a Serilog consumer for
this.
10 years ago
Steven Kirk
ac0a78293f
Actually return visual root from IVisual.VisualRoot.
10 years ago
donandren
454d1b744c
ScaleTransform Added
10 years ago
donandren
b26573656a
HasInverse Property property of Matrix
10 years ago
Steven Kirk
e7556fbf39
Expose IVisual.VisualRoot.
10 years ago
Steven Kirk
7dbb9b4373
Added InvalidateVisual to IVisual.
10 years ago
Steven Kirk
2e3fb75ed6
Updated OmniXAML.
Added some missing namespace definition attributes as now OmniXaml uses them properly.
10 years ago
Steven Kirk
e5a439d82a
Added mutable SolidColorBrush.
As a hack for lack of immutability support in XAML.
10 years ago
Steven Kirk
663b1fe490
Moved Name to Control.
10 years ago
Steven Kirk
338b71b204
Moved IVisual to Perspex.VisualTree.
10 years ago
Steven Kirk
8ac14fd82a
Make Color immutable.
10 years ago
Steven Kirk
2283cfa486
Started refactoring unit tests.
Added a shared test project with a UnitTestApplication and use it in
LeakTests.
10 years ago
Steven Kirk
e096c849d9
Updated NuGet packages.
Closes #395 .
10 years ago
Steven Kirk
46a6d2917e
Expose Name as PerspexProperty.
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
06454a9101
Suppress doc warnings in Release mode.
10 years ago
Steven Kirk
1f71d941fb
Fix Image measure.
Should return a DesiredSize which fits in the constraint.
10 years ago
Steven Kirk
93b4d810b9
Moved scaling to per-window.
Always returning a scaling factor of 1 currently.
10 years ago
Steven Kirk
d460ec9fd0
Implemented basic layout scaling.
Maybe works... I don't have a high DPI monitor to test on...
10 years ago
Steven Kirk
a8c8903162
Moved IPlatformSettings to SceneGraph.
It's the lowest it can go in the stack as it depends on Size.
10 years ago
Steven Kirk
cce8b4725d
Fix formatting.
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
1d8800251c
Use GetWidenedBounds in D2D backend.
According to http://stackoverflow.com/questions/32611798 , "
Geometry.Bounds (in WPF) is equivalent to
ID2D1Geometry::GetWidenedBounds(0.0f)." so use that. This seems to fix
the problem with D2D reporting an invalid size for
Line/PolylineGeometry, so removed the workaround from there.
10 years ago
Steven Kirk
74ed826752
Prevent stack overflow.
Rect.Inflate(double) was calling itself instead of the Thickness
overload.
10 years ago
Steven Kirk
e91f551263
Added missing file headers.
And sorted usings.
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
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
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
Ivan Kochurkin
13d8263fa3
Added CubicBezierCurveRelative implementation option for path rendering.
Fixed ReadDouble (whitespaces processing).
10 years ago
Nikita Tsukanov
415c9c6e18
Implemented StreamGeometryContext.SetFillRule
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
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
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
10 years ago
Steven Kirk
d9f043b45d
Don't allow null logical or visual children.
And remove RedirectLogicalChildren which is no longer needed, or
desired.
10 years ago