An app I'm working on requires a ConverterParameter to be an enum. For this, the regular way to do would be:
{Binding whatever,      Converter={StaticResource converterName},      ConverterParameter={x:Static namespace:Enum.Value}}   However, the UWP platform x: namespace does not seem to have the Static extension.
Does anyone know if there's a solution that does not rely on x:Static for comparing an enum in binding?
This works for me in a UWP:
<Button Command="{Binding CheckWeatherCommand}">   <Button.CommandParameter>      <local:WeatherEnum>Cold</local:WeatherEnum>   <Button.CommandParameter> </Button> 
                        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