H.DynamicColumns.WinUI 0.9.23

dotnet add package H.DynamicColumns.WinUI --version 0.9.23                
NuGet\Install-Package H.DynamicColumns.WinUI -Version 0.9.23                
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="H.DynamicColumns.WinUI" Version="0.9.23" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add H.DynamicColumns.WinUI --version 0.9.23                
#r "nuget: H.DynamicColumns.WinUI, 0.9.23"                
#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 H.DynamicColumns.WinUI as a Cake Addin
#addin nuget:?package=H.DynamicColumns.WinUI&version=0.9.23

// Install H.DynamicColumns.WinUI as a Cake Tool
#tool nuget:?package=H.DynamicColumns.WinUI&version=0.9.23                

H.DynamicColumns

Language License Requirements Requirements Requirements Build Status

Adds support for dynamic columns to DataGrid for WPF/UWP/Uno platforms.

NuGet

NuGet NuGet NuGet NuGet NuGet

Install-Package H.DynamicColumns.Core
Install-Package H.DynamicColumns.Wpf
Install-Package H.DynamicColumns.Uno
Install-Package H.DynamicColumns.Uno.WinUI
Install-Package H.DynamicColumns.Uwp

Usage

  1. Install H.DynamicColumns.Core to your core project that contains ViewModels.
  2. Add property like this public IReadOnlyCollection<DynamicColumn> DynamicColumns { get; } to your ViewModel contains DataGrid ItemsSource. Your DynamicColumns should contain:
new DynamicColumn
{
    Header = "Header",
    BindingPath = $"Values[{index}]",
}

where

public class ItemViewModel
{
    public ObservableCollection<string> Values { get; } = new();
}
  1. Bind in your platform project:
<DataGrid dynamicColumns:DataGridExtensions.DynamicColumns="{Binding DynamicColumns}">

where

xmlns:dynamicColumns="clr-namespace:H.DynamicColumns;assembly=H.DynamicColumns.Wpf"

Contacts

Product Compatible and additional computed target framework versions.
.NET net5.0-windows10.0.18362 is compatible.  net6.0-windows was computed.  net6.0-windows10.0.18362 is compatible.  net7.0-windows 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
0.9.23 986 8/11/2022
0.9.22 849 7/11/2022
0.9.21 784 6/23/2022
0.9.20 835 2/9/2022
0.9.18 405 11/12/2021

⭐ Last 10 features:
- feat: To latest DependencyPropertyGenerator. 2022-08-11
- feat: Updated NuGet packages. 2022-07-11
- feat: To DependencyPropertyGenerator. 2022-06-23
- feat: Updated NuGet packages. Released Uno.WinUI. 2022-02-08
- feat: Added ContinuousIntegrationBuild. 2021-11-13
- feat: Added CLSCompliantFalse. 2021-11-13
- feat: Changed UWP version to 16299. 2021-11-13
- feat: Added WinUI package. 2021-11-13
- feat: To C# 10. 2021-10-24
- feat: Added empty WPF example project. 2021-10-23

🐞 Last 10 bug fixes:
- fix: Fixed CI. 2022-02-09
- fix: Fixed UWP version to 18362. 2021-11-13
- fix: Fixed UWP version to 17763. 2021-11-13
- fix: Fixed Uwp project target. 2021-10-24
- fix: Fixed namespaces. 2021-10-23
- fix: Added null guards to Get/Set DynamicColumnsProperty. 2021-10-23
- fix: To C# 9. 2021-09-29
- fix: Added sdk to global.json. 2021-09-29
- fix: Fixed ci msbuild step. 2021-09-29
- fix: Fixed README missing issue. 2021-09-29