I want bind to the Converter
property rather than use {StaticResource ResourceKey}
for its value.
Actually, I have a ListView with custom UserControl as ItemTemplate. Items use a ItemConverter : IValueConverter
for binding. When I declare my converter in UserControl.Resources, an instance of ItemConverter
gets created for every list item, which is absolutely unnecessary. I'd like to create a single converter instance and pass it to every item, so I can do the following inside my usercontrol:
<!-- not working -->
<TextBlock
Text="{Binding Converter={Binding something}}"
Foreground="Black"
FontSize="40"
/>
Is it possible to do that somehow in a Universal Store Application for Windows 8.1 and Windows Phone 8.1? Any ideas how to avoid doing this altogether?
I have found some outdated projects that are not compatible with universal apps:
Is there something like that for universal apps?
The feature in question is not available at the moment for Universal Store Projects for Windows 8.1 and Windows Phone 8.1.