Steven Kirk
7ac3556983
Fixed StackPanel arrange pass.
Now follow's WPF's behavior better. In order to get the desired outcome, the `.Constrain(availableSize)` call in `Layoutable.Measure` had to be removed. Controls that relied on that (`Image` and `ViewBox`) have to now call `Constrain` themselves.
Fixes #2350
7 years ago
Andrey Kunchev
a4132890bf
add unit tests for layout queue
7 years ago
Andrey Kunchev
6d7d051f3e
extract layoutqueue to separate file
7 years ago
Andrey Kunchev
b97b3c5935
make internal stored Info a strcut to optimize memory (pr note)
7 years ago
Andrey Kunchev
8c07461323
LayoutManager InfinityLoop protection and safety improvements
7 years ago
Nikita Tsukanov
d532223a5a
Switched to post-processing nuget packages from AggregatePackage SDK
8 years ago
Andrey Kunchev
c083af062d
add Avalonia.Layout to https://github.com/avaloniaui
8 years ago
Jeremy Koritzinsky
5a9e41364b
Convert project references to reference aggregate Avalonia.csproj
8 years ago
Steven Kirk
f39e38545d
Use inner methods for invalidation.
8 years ago
Steven Kirk
c7b42d1326
Add the old overloads back in.
And mark them as `[Obsolete]`.
8 years ago
Steven Kirk
fad2e317ba
Make AffectsMeasure/Arrange/Render typed.
8 years ago
Miha Markič
0a38876590
Spellchecks all projects except for Base, Controls, Samples and Testing
8 years ago
Jumar Macato
b161593994
Moved version and xaml props to build directory.
added Directory.Build.Props to src & samples directory.
cleaned up Avalonia.Markup.csproj. Will do more test to do the same on
Avalonia.Markup.Xaml.
8 years ago
Jumar Macato
7ae90eb7c5
Cleanup all the csproj's that can be cleaned. Ported RenderTest and VirtualizationTest samples to .NET Core.
8 years ago
Benedikt Schroeder
da25b2f61f
LayoutHelper for controls with single content
BorderRenderHelper refactoring
8 years ago
Steven Kirk
64ed0761c7
Rename Dispatcher invoke methods.
`InvokeAsync` -> `Post`
`InvokeTaskAsync` -> `InvokeAsync`
8 years ago
Unknown
ea65626a46
use lower case extensions for avalonia documentation files.
9 years ago
Nikita Tsukanov
70c24908a9
Various fixes for GTK and DeferredRenderer support
9 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Nikita Tsukanov
6b91850579
Switched to netstandard1.3
9 years ago
Dan Walmsley
71dff48a7a
add fix for null reference exception when arranging.
added comments explaining the conditions that the bug occurs in.
(cherry picked from commit fa1f5bc8f9 )
9 years ago
Nikita Tsukanov
35f353c2db
Use OnMeasureInvalidated instead of virtual InvalidateMeasure
9 years ago
Nikita Tsukanov
abf866cf61
Fixes to get it working again after merge
9 years ago
Steven Kirk
ab30fd343b
Handle no previous measure/arrange.
This shouldn't happen, but if it does, don't crash.
9 years ago
Steven Kirk
5a34acac2d
Don't need to do this.
We don't need to invalidate newly added controls with the layout manager - this is already handed by the parent control.
9 years ago
Steven Kirk
40c342989b
Assert control invalidation behavior.
Controls not attached to the visual tree should not notify the `LayoutManager` that they have had their layout invalidated. Similarly when added to the visual tree their parents and themselves should have their layout invalidated.
9 years ago
Steven Kirk
18f9e2840d
Explain the algoithm a bit.
9 years ago
Steven Kirk
a1d46a7784
Use a stack instead of HashSet.
Controls that are already invalid will not invalidate themselves again to with the `LayoutManager`, so we don't need to worry about duplicates.
9 years ago
Steven Kirk
f97ebe961b
Fixed some stupid mistakes in algorithm.
9 years ago
Steven Kirk
ac3ca7ca29
Make LayoutManager pass new tests.
9 years ago
Nikita Tsukanov
09c9d7b7d5
Layout integration seems to be working now
9 years ago
Nikita Tsukanov
317b0f7034
testtesttest
9 years ago
Nikita Tsukanov
3126901721
WPF embedding improvements
9 years ago
Nikita Tsukanov
00fbc5cea7
Use (0, 0) as default for non-existing PreviousMeasure
9 years ago
Nikita Tsukanov
eb6bfd3de8
Moved layout manager from service locator to ILayoutRoot
9 years ago
Steven Kirk
4730ee1c41
Fix spelling of descendant.
While "descendent" is an acceptable English spelling, "descendant" is the common spelling.
9 years ago
Steven Kirk
16a47dac61
Apply margin before width/height.
Fixes #993 .
9 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
9 years ago
Steven Kirk
96d9cfa2fc
Use the default compile items in core libs.
Now we're using the new project system, we don't have to have a
`<Compile Include="..."/>` element for each file.
9 years ago
Nikita Tsukanov
6cf037ad7c
One liners
9 years ago
Nikita Tsukanov
66ac05b2c2
Removed <Name> elements from new projects
9 years ago
Nikita Tsukanov
d1caaaca3e
Removed <Project>
9 years ago
Nikita Tsukanov
25c7be5b7a
Removed packages.config from csproj.files
9 years ago
Nikita Tsukanov
e35b2af5b2
Don't use multitargeting (we are using only one target anyway)
9 years ago
Nikita Tsukanov
e780c4201a
Switched to .NETStandard (mostly 1.1)
9 years ago
Nikita Tsukanov
b0a063838f
Migrated to PackageReference
9 years ago
Steven Kirk
71c6c572ac
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
9 years ago
Steven Kirk
6036bd5998
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
9 years ago
Nikita Tsukanov
a7bd6ff192
AppDerpor
9 years ago
Steven Kirk
cfd2be07ec
Added LayoutUpdated event.
Fixes #825 .
9 years ago