To increase support DLL
Use WindowsFormsHost to load Forms controls
Namespace references
xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
-
<WindowsFormsHost Grid.Column=
"1">
-
<forms:PropertyGrid x:Name=
"Property">
-
-
</forms:PropertyGrid>
-
</WindowsFormsHost>
effect
Code
-
<Grid>
-
<Grid.ColumnDefinitions>
-
<ColumnDefinition Width=
"322*"/>
-
<ColumnDefinition Width=
"195*"/>
-
</Grid.ColumnDefinitions>
-
<TextBlock x:Name=
"TextBlock" TextWrapping=
"Wrap" Text=
"TextBlock" />
-
<WindowsFormsHost Grid.Column=
"1">
-
<forms:PropertyGrid x:Name=
"Property">
-
-
</forms:PropertyGrid>
-
</WindowsFormsHost>
-
</Grid>
-
public MainWindow()
-
{
-
InitializeComponent();
-
Property.SelectedObject = TextBlock;
-
}