Steven Kirk
46c93b70bf
Fix layout error.
11 years ago
Steven Kirk
75e13dc02b
Fix arrange size with margins.
Fixes #432 .
11 years ago
Steven Kirk
ea6b1d4cfd
Starting removing hard dependency on Serilog.
Instead log through a static Logger, and provide a Serilog consumer for
this.
11 years ago
Steven Kirk
5802040d3e
Optimize ContentPresenter.
Make ContentPresenter have many of Border's properties so that every
instance of a ContentPresenter doesn't need to be wrapped in a Border.
Idea stolen from UWP.
11 years ago
Michael Mayfield
645d76c725
Improve rendering when resizing
11 years ago
Steven Kirk
a70c5aaa44
Invalidate visual on invalidate measure/arrange.
11 years ago
Steven Kirk
338b71b204
Moved IVisual to Perspex.VisualTree.
11 years ago
Steven Kirk
e096c849d9
Updated NuGet packages.
Closes #395 .
11 years ago
Steven Kirk
06454a9101
Suppress doc warnings in Release mode.
11 years ago
Steven Kirk
93b4d810b9
Moved scaling to per-window.
Always returning a scaling factor of 1 currently.
11 years ago
Steven Kirk
d460ec9fd0
Implemented basic layout scaling.
Maybe works... I don't have a high DPI monitor to test on...
11 years ago
Steven Kirk
d8725286aa
Fix layout bug with ScrollViewer.
When calling Measure from Arrange, use previous measure constraint if
available.
11 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.
11 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
11 years ago
Steven Kirk
72baba2f0e
Removed 'force' parameter from Measure.
11 years ago
Steven Kirk
b310ead6a1
Removed 'distance' argument to LayoutManager.
No longer needed.
11 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.
11 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
11 years ago
Steven Kirk
928e159aba
Added DesiredSize as a readonly PP.
11 years ago
Steven Kirk
7925fa8c65
Cache Margin in MeasureCore.
11 years ago
Steven Kirk
4ef9639f3e
Removed LINQ from MeasureOverride.
And removed empty MeasureOverride methods.
11 years ago
Steven Kirk
9ad94743c0
Fix small layout bug with UseLayoutRounding.
11 years ago
Steven Kirk
8e2830ad05
Don't return negative size from Measure.
In the case of a negative margin larger than the available size.
11 years ago
Steven Kirk
4fa3c98ca3
Detach styles when control removed from visual tree.
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Steven Kirk
01a5b5a345
Fix clipping with UseLayoutRounding.
11 years ago
Steven Kirk
b72f08354a
Handle detached controls in layout pass.
Controls can still be queued for layout after they've been removed from
the visual tree.
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Steven Kirk
1b745ab62c
Removed NGenerics.
Closes #7 .
11 years ago
José Manuel Nieto Sánchez
b3b2b0db60
Fixed issue https://github.com/Perspex/Perspex/issues/169
11 years ago
Steven Kirk
cc1c2c0313
Fixes #147 .
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
11 years ago
Nikita Tsukanov
21a3554260
Change property getter to expression properties
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
f071a3d06b
Removed GlobalSuppressions.
11 years ago
Steven Kirk
2e56c951d5
Removed StyleCop.Analysers.
11 years ago
Steven Kirk
5dc0e604fb
Slyecoping.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago