wpf propertyGrid

Asha picture Asha · Nov 2, 2009 · Viewed 17.4k times · Source

I need a propertyGrid for my WPF application . after lots of searches I have found this I have added the assembly (exe file) when I add the propertyGrid to my form and I run it I can't see it in the form . xaml code :

<Window x:Class="propertyGridTest.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wpg="clr-namespace:Deepforest.WPF.Controls;assembly=WPGDemo"
    Title="Window1" Height="300" Width="300">
    <Grid>
        <Button x:Name="btn" Click="btn_Click" Height="35.5" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="55"></Button>
        <wpg:PropertyGrid x:Name="property" Width="100" Height="100"> </wpg:PropertyGrid>
    </Grid>
</Window>

code behind :

private void btn_Click(object sender, RoutedEventArgs e)
        {
            property.Instance = btn;
        }

please help me to find out why it's not visible

Answer

user288295 picture user288295 · Oct 25, 2011

I know this is an old post, but there is a new PropertyGrid on the block and it is the most functional and feature rich one out there. Oh and it's FREE!

http://wpftoolkit.codeplex.com/

enter image description here