Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/athari/alba.avalonia.flexpanel
Panel implementing CSS-like flexbox for Avalonia [MIT]
https://github.com/athari/alba.avalonia.flexpanel
avalonia avaloniaui c-sharp c-sharp-library dotnet flexbox flexbox-layout xaml
Last synced: 10 days ago
JSON representation
Panel implementing CSS-like flexbox for Avalonia [MIT]
- Host: GitHub
- URL: https://github.com/athari/alba.avalonia.flexpanel
- Owner: Athari
- License: mit
- Created: 2023-11-08T00:45:10.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-19T19:43:22.000Z (12 months ago)
- Last Synced: 2024-10-29T09:05:04.998Z (17 days ago)
- Topics: avalonia, avaloniaui, c-sharp, c-sharp-library, dotnet, flexbox, flexbox-layout, xaml
- Language: C#
- Homepage:
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: License.md
Awesome Lists containing this project
README
# Alba.Avalonia.FlexPanel
[![NuGet release version](https://img.shields.io/nuget/v/Alba.Avalonia.FlexPanel.svg?label=release&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMpJREFUeNqUkbENwjAQRY8ovZkgG5AJYALS0GaDMAGeACYIE7ABtFSZgEyAy3TegG/pR7IuToCTXuHTvTufvTo8h42InIAFTn6MDARxCwr5I3JOuYAuyhdsqCPU%2BFHslHQD9cKwI7jmKtlSsrz%2BPiGGGhOLBjSgAg/m3jO7nzMlSrSbiXLJV510A3dOi0X/TRTuNko9KMGaayyKcVSUhbtbLfoZ0SX%2BciL2CbFR5/DPXl91l5jcsjg0eHH3UouecqfyNRsIH8p9BBgAANInlRmoOxQAAAAASUVORK5CYII=)](https://www.nuget.org/packages/Alba.Avalonia.FlexPanel)
[![AppVeyor build master](https://img.shields.io/appveyor/ci/athari/alba-avalonia-flexpanel/master.svg?logo=appveyor)](https://ci.appveyor.com/project/Athari/alba-avalonia-flexpanel/branch/master)
[![GitHub release version](https://img.shields.io/github/release/Athari/Alba.Avalonia.FlexPanel.svg?logo=github)](https://github.com/Athari/Alba.Avalonia.FlexPanel/releases)Panel implementing CSS-like flexbox for Avalonia 11.
* [**GitHub repository**](https://github.com/Athari/Alba.Avalonia.FlexPanel)
* [**NuGet package**](https://www.nuget.org/packages/Alba.Avalonia.FlexPanel)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](https://github.com/AvaloniaUI/Avalonia) or [AvaloniaUI Labs](https://github.com/AvaloniaUI/Avalonia.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)](https://github.com/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
* Disadvantages:
* No NuGet package* [AvaloniaUI/Avalonia.Labs](https://github.com/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.* [jp2masa/Avalonia.Flexbox](https://github.com/jp2masa/Avalonia.Flexbox) (alternative implementation):
* Advantages:
* Supports: FlexLayout for ItemsRepeater
* Disadvantages:
* Doesn't support: flex-grow, flex-shrink, flex-basis* [dotNevereverlie/Avalonia.FlexPanel](https://github.com/dotNevereverlie/Avalonia.FlexPanel) (alternative port):
* Disadvantages:
* Doesn't support: Avalonia 11, row-gap, column-gap, space-evenly
* Severe bugs## Acknowledgements
Based on:
* [HandyOrg/HandyControl](https://github.com/HandyOrg/HandyControl)
* [jp2masa/Avalonia.Flexbox](https://github.com/jp2masa/Avalonia.Flexbox)