Hi,
you can use MultiBinding in combination with MultiValueConverter to achieve your goal.
<MultiBinding Converter="{StaticResource RangeConverter}">
<Binding Path="Value" RelativeSource="{RelativeSource Self}" />
<Binding Path="MaxRange" />
</MultiBinding>
public class RangeConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
object value = values[0];
object maxRange = values[1];
// ...
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
// ...
}
}
Best regards
Chris
Code Samples: Code Samples
Chrigas Blog: Chrigas Blog
No comments:
Post a Comment