【问题标题】:Slider in Windows Store AppWindows 应用商店应用程序中的滑块
【发布时间】:2013-11-01 17:49:56
【问题描述】:

我正在为 Windows 商店开发一个音乐播放器应用程序。但我无法处理这个问题。

我想如果用户按住滑块的重击,mediaElement 将暂停,当用户释放新闻时,媒体元素将播放。

我该怎么做?

注意:Slider 的按住事件是暂停媒体元素但我无法播放 持有后的音乐。

【问题讨论】:

    标签: c# visual-studio slider windows-store-apps


    【解决方案1】:

    尝试使用 ManipulationStarted 和 ManipulationCompleted,但首先需要设置 ManipulationMode="All"

    <Slider ManipulationMode="All" ManipulationStarted="Slider_ManipulationStarted"
    ManipulationCompleted="Slider_ManipulationCompleted" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-12-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-21
      • 1970-01-01
      相关资源
      最近更新 更多