本文介绍了滑块控件不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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.

推荐答案


这篇关于滑块控件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 09:26