# Getting Started with WinUI PropertyGrid

This guide provides the information you need to start using the Telerik UI for WinUI PropertyGrid by adding the component to your project.

At the end, you will be able to achieve the following result.

![WinUI RadPropertyGrid ](https://www.telerik.com/winui/documentation/assets/c3eaad162fdc9100b82c0437afac6bee/propertygrid-getting-started-0.png)

## Prerequisites

Before adding the PropertyGrid, you need to:

1. [Set up your WinUI project](https://www.telerik.com/winui/documentation/installation-and-deployment/systemrequirements).

2. Create your Telerik UI for WinUI application and install the Telerik UI for WinUI components depending on the required installation approach:

   * [Getting Started with NuGet](https://www.telerik.com/winui/documentation/getting-started/first-steps-nuget#step-2-create-the-winui-application)

   * [Getting Started with the MSI file](https://www.telerik.com/winui/documentation/getting-started/first-steps-msi#step-2-create-the-winui-application)

   * [Getting Started with the ZIP file](https://www.telerik.com/winui/documentation/getting-started/first-steps-zip#step-2-create-the-winui-application)

   * [Getting Started with the Telerik UI Visual Studio Extension](https://www.telerik.com/winui/documentation/getting-started/first-steps-vsextension#step-2-create-the-winui-application)

## Add the Assembly References

To use the PropertyGrid component, add references to `Telerik.WinUI.Controls.dll` and `Telerik.Licensing.Runtime.dll`.

## Define the Component

To start using the PropertyGrid, you need to initialize it and assign its `Item` property. The following example shows how to bind the `Item` to an object.

#### **Define the Item Model**

```C#
public class DataInfo
{
	public int Id { get; set; }
	public string Name { get; set; }
	public bool IsChecked { get; set; }
	public DateTime Date { get; set; }
	public MyEnum EnumValue { get; set; }
	public ObservableCollection<string> Strings { get; set; }
}

public enum MyEnum
{
	ValueA,
	ValueB
}
```

#### **Define the PropertyGrid in XAML**

```XAML
<telerikControls:RadPropertyGrid x:Name="propertyGrid"/>
```

#### **Set the Source of the PropertyGrid**

```C#
public MainWindow()
{
	this.InitializeComponent();
	this.propertyGrid.Item = new DataInfo()
	{
		Id = 10,
		Name = "Item 2022",
		IsChecked = true,
		Date = DateTime.Today,
		EnumValue = MyEnum.ValueA,
		Strings = new ObservableCollection<string>() { "Item 1", "Item 2", "Item 3", "Item 4" }
	};
}
```

![WinUI RadPropertyGrid ](https://www.telerik.com/winui/documentation/assets/c3eaad162fdc9100b82c0437afac6bee/propertygrid-getting-started-0.png)

## Telerik UI for WinUI Learning Resources

* [Telerik UI for WinUI PropertyGrid Component](https://www.telerik.com/winui/propertygrid)
* [Getting Started with Telerik UI for WinUI Components](https://www.telerik.com/winui/documentation/getting-started/first-steps-nuget)
* [Telerik UI for WinUI Installation](https://www.telerik.com/winui/documentation/installation-and-deployment/installing-which-file-do-i-need)
* [Telerik UI for WinUI Examples](https://www.telerik.com/winui/documentation/examples/demos-app)
* [Telerik UI for WinUI Accessibility](https://www.telerik.com/winui/documentation/common/accessibility)
* [Telerik UI for WinUI License Agreement](https://www.telerik.com/purchase/license-agreement/winui)
