问题描述
我在Silverlight中创建了一个视频,并添加了一个像这样的滑块控件..
I created a video in silverlight and added a slider control like this..
<Slider x:Name="timelineSlider" Margin="0,1.5,0,0" HorizontalAlignment="Stretch"
Maximum="1" Grid.Column="0"
ValueChanged="TimelineSlider_ValueChanged"
Value="0"/>
xaml.cs
................
私有void TimelineSlider_ValueChanged(对象发送者,RoutedPropertyChangedEventArgs< double> e)
{
如果(duringTickEvent)
返回;
寻求(timelineSlider.Value);
}
问题是,此滑块不随视频一起移动,我们必须手动移动它,我该如何解决?请帮助我.
xaml.cs
................
private void TimelineSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
if (duringTickEvent)
return;
Seek(timelineSlider.Value);
}
The problem is , this slider is not moving along with the video.We have to move it manually.How can I solve it? Plz help me.
推荐答案
这篇关于滑块控件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!