Currently i'm using integer as the ConverterParameter, and casting it to the Enum in the Converter. I find it very unreadable in the XAML.
I wonder if there is a way to declare the Enum in the resources section and pass its value as ConverterParameter?
The easiest way is to use x:Static.
{Binding ..., ConverterParameter={x:Static YourEnum.YourEnumValue}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With