I want to hide the properties which has nested properties inside them. What is best approach to do them? Ihave tries following things
1. setting NestedPropertiesVisibility="Hidden" for radpropertygrid. But it not working.
2. setting visiblility of propertydefinition based on displayname.The code looks like
private void PropertyGrid1_AutoGeneratingPropertyDefinition(object sender, AutoGeneratingPropertyDefinitionEventArgs e)
{
if (e.PropertyDefinition.DisplayName == "Mypropertyname")
{
e.PropertyDefinition.Visibility = Visibility.Hidden;
}
}
second approach works but I dont want to do on the basis of Displayname.I need to be hidden if any propertydefinition under property has nested property
Would you please help me with the same.