OkoloIt.Avalonia.Controls.PropertyPanel 1.1.1

dotnet add package OkoloIt.Avalonia.Controls.PropertyPanel --version 1.1.1
                    
NuGet\Install-Package OkoloIt.Avalonia.Controls.PropertyPanel -Version 1.1.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="OkoloIt.Avalonia.Controls.PropertyPanel" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OkoloIt.Avalonia.Controls.PropertyPanel" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="OkoloIt.Avalonia.Controls.PropertyPanel" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OkoloIt.Avalonia.Controls.PropertyPanel --version 1.1.1
                    
#r "nuget: OkoloIt.Avalonia.Controls.PropertyPanel, 1.1.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.
#:package OkoloIt.Avalonia.Controls.PropertyPanel@1.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OkoloIt.Avalonia.Controls.PropertyPanel&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=OkoloIt.Avalonia.Controls.PropertyPanel&version=1.1.1
                    
Install as a Cake Tool

OkoloIt.Avalonia.Controls.PropertyPanel

This is a PropertyPanel implementation for Avalonia, you can use it in Avalonia Applications.

Supported attributes

You can use the following attributes listed below to edit properties in the PropertyPanel:

  • System.ComponentModel.BrowsableAttribute
  • System.ComponentModel.CategoryAttribut
  • System.ComponentModel.DisplayNameAttribute
  • System.ComponentModel.EditorAttribute
  • System.ComponentModel.ReadOnlyAttribute
  • System.ComponentModel.DataAnnotations.RangeAttribute

Supported types

PropertyPanel supports a small list of types, which is extended over time:

  • Numeric: int, uint, long, ulong, short, ushort, byte, sbyte, float, double, decimal
  • bool
  • string
  • Guid
  • Enum
  • Date and time: DateTime, DateOnly, TimeOnly, TimeSpan

How To Use

Install the Nuget package:

dotnet add package OkoloIt.Avalonia.Controls.PropertyPanel

Include PropertyPanel styles in your App.axaml:

<Application
    ...
    xmlns:okit="using:OkoloIt.Avalonia.Controls.Themes"
    >
    <Application.Styles>
        <okit:Fluent/>
    </Application.Styles>
</Application>

Implement inheritance from interface INotifyPropertyChanged for your model:

public class PropertyModel : INotifyPropertyChanged
{
    private string _name = string.Empty;

    public string Name {
        get => _name;
        set {
            _name = value;
            OnPropertyChanged();
        }
    }

    public event PropertyChangedEventHandler? PropertyChanged;

    protected virtual void OnPropertyChanged([CallerMemberName] string? propertyName = null)
    {
        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
    }
}

Add PropertyPanel to your view:

<Window
    ...
    xmlns:okit="using:OkoloIt.Avalonia.Controls"
    >

    <okit:PropertyPanel Content="{Binding PropertyModel}"/>
</Window>

Editors

Adding an editor via attribute

[Editor(typeof(PositionPropertyEditor), typeof(IPropertyEditor))]
public class Position : INotifyPropertyChanged
{
    public int X { get; set; }
    public int Y { get; set; }
}

Registering and overriding an editor

You can add your own editor or override an existing one using PropertyEditorFactory:

PropertyEditorFactory.Register<PositionPropertyEditor>(typeof(Position));

Read More

Product 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.1.1 97 9/14/2026
1.1.0 103 9/9/2026
1.0.2 152 5/27/2026
1.0.1 121 5/27/2026
1.0.0 146 3/5/2026
0.8.2-beta 113 3/5/2026
0.8.1-beta 193 2/10/2026
0.8.0-beta 373 6/10/2025
0.7.0-beta 240 6/8/2025
0.6.0-alpha 172 6/6/2025
0.5.0-alpha 199 6/5/2025
0.4.0-alpha 205 6/5/2025
0.3.1-alpha 201 6/5/2025
0.3.0-alpha 210 6/4/2025
0.2.0 334 6/3/2025
0.1.0 276 6/3/2025 0.1.0 is deprecated because it is no longer maintained.