AwesomeProperties 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package AwesomeProperties --version 1.0.6                
NuGet\Install-Package AwesomeProperties -Version 1.0.6                
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="AwesomeProperties" Version="1.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AwesomeProperties --version 1.0.6                
#r "nuget: AwesomeProperties, 1.0.6"                
#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 AwesomeProperties as a Cake Addin
#addin nuget:?package=AwesomeProperties&version=1.0.6

// Install AwesomeProperties as a Cake Tool
#tool nuget:?package=AwesomeProperties&version=1.0.6                

AwesomeProperties

Setup

Install on nuget market place or at this link: https://www.nuget.org/packages/AwesomeProperties/

Sample

Example with a listview bind with a custom class ElectricCar and ThermalCar inherit from a class Car

alt text alt text

Awesome properties also support graphics library like WPF-UI:

alt text

Basic Usage

To show on the properties window you should mark with PropertyField attribute

Some property type are available:²

    public enum PropertyType
    {
        None,
        Text,
        Int,
        CheckBox,
        Dropdown
    }

Basic class declaration:

    public class Example
    {
        [PropertyField(PropertyType.Text, "Name")]
        public string Name { get; set; }

        [PropertyField(PropertyType.Text, "Model")]
        public string Model { get; set; }

        public Example()
        {

        }
    }

Create new instance of your custom class


    public class MainWindow
    {
        public Example MyCustomClass{ get; set;}

        public Example()
        {
            MyCustomClass = new Example();
        }
    }

To show the properties panel:


    public void ShowProperties(){
        //Put your data to bind in the constructor of PropertiesPanel
        PropertiesPanel panel = new PropertiesPanel(MyCustomClass);
        
        //Add the property panel to a container
        MyGrid.Children.Clear();
        MyGrid.Children.Add(panel);
    }

Advance Usage


    public class Example
    {
        [PropertyField(PropertyType.Text, "Name")]
        public string Name { get; set; }

        [PropertyField(PropertyType.Text, "Model")]
        public string Model { get; set; }

        public Example()
        {

        }
    }
Product Compatible and additional computed target framework versions.
.NET net5.0-windows7.0 is compatible.  net6.0-windows was computed.  net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
.NET Framework net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 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.0.9 267 3/6/2023
1.0.8 223 3/5/2023
1.0.7 234 2/25/2023
1.0.6 234 2/23/2023
1.0.5 247 2/23/2023
1.0.4 238 2/23/2023
1.0.3 235 2/20/2023
1.0.2 238 2/19/2023
1.0.1 234 2/18/2023
1.0.0 229 2/16/2023
0.1.1 244 2/15/2023
0.1.0 226 2/15/2023

First release