Alba.Avalonia.FlexPanel
0.5.3
dotnet add package Alba.Avalonia.FlexPanel --version 0.5.3
NuGet\Install-Package Alba.Avalonia.FlexPanel -Version 0.5.3
<PackageReference Include="Alba.Avalonia.FlexPanel" Version="0.5.3" />
paket add Alba.Avalonia.FlexPanel --version 0.5.3
#r "nuget: Alba.Avalonia.FlexPanel, 0.5.3"
// Install Alba.Avalonia.FlexPanel as a Cake Addin #addin nuget:?package=Alba.Avalonia.FlexPanel&version=0.5.3 // Install Alba.Avalonia.FlexPanel as a Cake Tool #tool nuget:?package=Alba.Avalonia.FlexPanel&version=0.5.3
Alba.Avalonia.FlexPanel
Panel implementing CSS-like flexbox for Avalonia 11.
-
PM> dotnet add package Alba.Avalonia.FlexPanel
Features
Flexbox features:
- direction: row, column, row reverse, column reverse
- flex-wrap: nowrap, wrap, wrap-reverse
- align-items, align-self: flex-start, flex-end, center, stretch
- align-content, justify-content: flex-start, flex-end, center, space-between, space-around, space-evenly
- flex-basis: content, length
- flex-grow, flex-shrink, order
- row-gap, column-gap
Important
Before using this library, make sure AvaloniaUI or AvaloniaUI Labs don't include a more fully-featured implementation of FlexPanel yet. Currently they don't, but this ReadMe isn't guaranteed to be up to date. Refer to the list below for a comparison of the currently implemented features.
Alternatives
AvaloniaUI/Avalonia.Labs (pull 45) (modification of jp2masa's implementation):
- Advantages:
- Supports:
- flex-basis: percent
- margin:auto behavior on non-stretch alignment
- partial main axis free space distribution
- Fork of offical AvaloniaUI labs
- Less bugs, better compatibility with the Flexbox standard
- Supports:
- Disadvantages:
- No NuGet package
- Advantages:
AvaloniaUI/Avalonia.Labs (migrated jp2masa's implementation):
- Advantages:
- Offical AvaloniaUI labs
- Disadvantages:
- Doesn't support: flex-grow, flex-shrink, flex-basis
- Non-standard calculation of gaps, alignment etc.
- Advantages:
jp2masa/Avalonia.Flexbox (alternative implementation):
- Advantages:
- Supports: FlexLayout for ItemsRepeater
- Disadvantages:
- Doesn't support: flex-grow, flex-shrink, flex-basis
- Advantages:
dotNevereverlie/Avalonia.FlexPanel (alternative port):
- Disadvantages:
- Doesn't support: Avalonia 11, row-gap, column-gap, space-evenly
- Severe bugs
- Disadvantages:
Acknowledgements
Based on:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Avalonia (>= 11.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.5.3 | 493 | 11/19/2023 |
0.5.2 | 140 | 11/9/2023 |
0.5.1 | 133 | 11/8/2023 |
0.5.0 | 127 | 11/8/2023 |
0.5.0-alpha.1 | 68 | 11/8/2023 |