I am currently using an integer as ConverterParameter and casting it in Enum to Converter . I find this very unreadable in XAML .
ConverterParameter
Enum
Converter
XAML
I wonder if there is a way to declare Enum in the resource section and pass its value as ConverterParameter ?
The easiest way is to use x:Static .
x:Static
{Binding ..., ConverterParameter={x:Static YourEnum.YourEnumValue}}