I want to do a UserControl which has enum dependency property.
Sample of enum
This dependency property should work if I define UserControl in XAML.
<local:MyUserControl x:Name="MUC1" MyEnum="A"></local:MyUserControl>
And should work if I want to define or change the user control in code behind.
MUC1.MyEnum = MyEnum.B;
How to do such enum dependency property