Fabulous.Avalonia.DataGrid
2.0.0-pre18
See the version list below for details.
dotnet add package Fabulous.Avalonia.DataGrid --version 2.0.0-pre18
NuGet\Install-Package Fabulous.Avalonia.DataGrid -Version 2.0.0-pre18
<PackageReference Include="Fabulous.Avalonia.DataGrid" Version="2.0.0-pre18" />
paket add Fabulous.Avalonia.DataGrid --version 2.0.0-pre18
#r "nuget: Fabulous.Avalonia.DataGrid, 2.0.0-pre18"
// Install Fabulous.Avalonia.DataGrid as a Cake Addin #addin nuget:?package=Fabulous.Avalonia.DataGrid&version=2.0.0-pre18&prerelease // Install Fabulous.Avalonia.DataGrid as a Cake Tool #tool nuget:?package=Fabulous.Avalonia.DataGrid&version=2.0.0-pre18&prerelease
DataGrid for Fabulous.Avalonia
The DataGrid control is a cross-platform view that displays repeating data in a customizable grid. The control can be styled, templated and bound.
The data grid needs to be bound to an observable collection in a view model that can be found in a related data context. Based on AvaloniaUI DataGrid.
How to use
- Add the
Fabulous.Avalonia.DataGrid
package to your project. - Open
Fabulous.Avalonia
at the top of the file where you declare your Fabulous program (eg. Program.stateful).
open Fabulous.Aavalonia
open type Fabulous.Avalonia.View
Using the DataGrid
Widget
Now you can use the DataGrid
and AutoGeneratedDataGrid
widgets in your Fabulous app as follows:
VStack() {
DataGrid(model.People)
(CustomDataGrid(model.People) {
DataGridTextColumn("Name", Binding("Name"))
DataGridTextColumn(TextBlock("Age"), Binding("Age"))
DataGridCheckBoxColumn("IsMale", Binding("IsMale"))
})
.gridLinesVisibility(DataGridGridLinesVisibility.Horizontal)
.borderThickness(1.0)
.borderBrush(SolidColorBrush(Colors.Gray))
}
A full, working example is included in the DataGridPage sample
Other useful links:
Additionally, we have the Fabulous Discord server where you can ask any of your Fabulous related questions.
Product | Versions 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. |
-
net8.0
- Avalonia.Controls.DataGrid (>= 11.0.6)
- Fabulous.Avalonia (>= 2.0.0-pre18)
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 |
---|---|---|
3.0.0-pre7 | 36 | 11/27/2024 |
3.0.0-pre6 | 104 | 5/20/2024 |
3.0.0-pre5 | 96 | 5/17/2024 |
3.0.0-pre4 | 94 | 4/19/2024 |
3.0.0-pre3 | 119 | 4/13/2024 |
3.0.0-pre2 | 103 | 3/31/2024 |
3.0.0-pre1 | 113 | 3/23/2024 |
2.4.0-pre1 | 102 | 2/9/2024 |
2.3.0 | 191 | 1/17/2024 |
2.2.0 | 120 | 1/9/2024 |
2.1.0 | 131 | 1/8/2024 |
2.0.0 | 147 | 1/1/2024 |
2.0.0-pre18 | 145 | 12/7/2023 |
2.0.0-pre17 | 137 | 11/12/2023 |
2.0.0-pre16 | 120 | 11/1/2023 |
### Added
- Add support for Avalonia 11.0.6