The PropertyGrid control, part of the .NET Framework, allows you to browse, view, and edit the properties of one or more objects. It uses reflection to retrieve and display properties of any object or type.
If you are using WinForm, you will be able to use the PropertyGrid control easily from the control toolbar. But, unfortunately, this control is not available in WPF. To use this inside a WPF application, you will need to use the interoperability of WPF and WinForm. For this to work, we need to use the WindowsFormsHost class.
The WindowsFormsHost class allows you to host a Windows Forms control on a WPF page. It is part of the System.Windows.Forms.Integration namespace and it is available inside the WindowsFormsIntegration.dll assembly. That's the reason why we had to reference the System.Windows.Forms and WindowsFormsIntegration assemblies inside the project.