不确定这是否可行,但您可以使用MultiBinding
虚拟转换器作弊。
就像是:
xml:
<Window.Resources>
<local:DummyConverter x:Key="Dummyconverter" />
</Window.Resources>
<Grid>
<Slider >
<Slider.Value>
<MultiBinding Converter="{StaticResource Dummyconverter}" >
<Binding Path="Value1" />
<Binding Path="Value2" Delay="500" />
</MultiBinding>
</Slider.Value>
</Slider>
</Grid>
虚拟转换器
public class DummyConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return values == null ? null : values[0];
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
return new object[] { value, value };
}
}