
If I have a PropertyGrid set to use display attributes like this:
<grids:PropertyGrid x:Name="xProp">
<grids:PropertyGrid.PropertyEditors>
<gridseditors:EnumPropertyEditor UseDisplayAttributes="True"/>
</grids:PropertyGrid.PropertyEditors>
</grids:PropertyGrid>
[TypeConverter(typeof(FileDoubleClickAction))]
public enum FileDoubleClickAction
{
[Description("View/Open")]
View,
Transfer,
None,
}
[Serializable]
public class MyClass
{
public FileDoubleClickAction DoubleClick { get; set; }
}
xProp.DataObject = new MyClass();
ThemeManager.CurrentTheme = "MetroDark";
If I have the theme set to a non default theme, I am getting this warning when the dialog is opened:
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='PropertyGridPropertyEditorsModifierKey'