How to define array values in a single line in XAML?
<Image Source="{ Binding ImageUrl }"
Opacity="{Binding Selected,
Converter={StaticResource BoolToDouble},
ConverterParameter={ Array Type={ Type system:Double }, Items=??? } }" >
Items are unique for this field so it seems bad to put it in ResouceDictionary
or BindingModel
I know I can use it like this, but it seems to be huge overkill for something like this
<Image Source="{ Binding ImageUrl }">
<Image.Opacity>
<Binding Path="Selected" Converter="{StaticResource BoolToDouble }">
<Binding.ConverterParameter>
<x:Array Type="{Type system:Double}">
<x:Double>0.65</x:Double>
<x:Double>0.95</x:Double>
</x:Array>
</Binding.ConverterParameter>
</Binding>
</Image.Opacity>
</Image>