I have the following XAML Code:
<Silder
...
Value="{Binding aValue, Converter = {StaticResource myConverter}, Mode=TwoWay}"
.../>
<Label
...
Text="{Binding aValue, Mode=OneWay, Converter={StaticResource myConverter}}"
.../>
<Label
...
Text="{Binding aCorrespondingValue, Mode=OneWay, Converter={StaticResource myConverter}}"
.../>
The idea is that when the slider is changing one label should show the numeric value of the slider. The other label should show some additional information which could change when the slider is moved (e.g. a unit). But this value cannot be retrieved from the current value of the slider so it has to be updated when the slider value changes.
My idea was to use an IValueConverter but I think I can't use one converter for multiple fields. Other ideas would be to implement the converter logic into the setted method of the properties in the view model or give the converter the viewmodel as parameter and change the corresponding values.
Do you know what is the best practise for my problem? Thank you!