Setting multiple enum flags in XAML
You can use the accepted answer code
<ns:SomeControl Flags="FlagA,FlagB" />
But you also need add a TypeConverter
attribute on the property to make it work
[TypeConverter(typeof(EnumConverter))] //yeah, this line
Public MyEnum Flags
{ ...
WPF does support this through a type converter. It can be done by using a comma in between enum values:
<ns:SomeControl Flags="FlagA,FlagB" />