ONEO.Avalonia.GridPanel 1.2024.0-preview.1

This is a prerelease version of ONEO.Avalonia.GridPanel.
dotnet add package ONEO.Avalonia.GridPanel --version 1.2024.0-preview.1                
NuGet\Install-Package ONEO.Avalonia.GridPanel -Version 1.2024.0-preview.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ONEO.Avalonia.GridPanel" Version="1.2024.0-preview.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ONEO.Avalonia.GridPanel --version 1.2024.0-preview.1                
#r "nuget: ONEO.Avalonia.GridPanel, 1.2024.0-preview.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ONEO.Avalonia.GridPanel as a Cake Addin
#addin nuget:?package=ONEO.Avalonia.GridPanel&version=1.2024.0-preview.1&prerelease

// Install ONEO.Avalonia.GridPanel as a Cake Tool
#tool nuget:?package=ONEO.Avalonia.GridPanel&version=1.2024.0-preview.1&prerelease                

Avalonia.GridPanel

一个支持网格虚拟化布局的控件

注意:目前仅仅达到凑合能用的地步,不建议用于正式项目,如果不需要支持 ListBox.SelectedItem 之类的功能,可以使用 Avalonia.Controls.ItemsRepeater 实现。

核心需求

  • 支持在 ListBox 等具有选择项的控件中使用
  • 支持网格布局
  • 支持虚拟化布局
  • 支持自定义大小
  • 支持自定义间距
  • 支持键盘导航

一些问题

  • 与 Avalonia 标准的实现方式有区别:不会缓存控件
  • 无发支持动态高度的布局:应该需要 IScrollSnapPointsInfo 相关代码,没有集体研究
  • 目前实例化控件数量存在问题,导致键盘导航时可能无发执行
  • VirtualizingPanel 开发几乎没有文档

截图

截图

LICENSE

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.2024.0-preview.1 72 9/13/2024