简体   繁体   English

带有进度条的滑块

[英]Slider with Progress bar

I develop an Windows Phone that play audio from the web, and i have Slider(normal) that show the progress of the audio Position . 我开发了Windows Phone来播放来自网络的音频,并且我有显示音频Position进度的Slider(normal)。

And i want to add a something like progress of the audio buffer process . 而且我想添加一些类似于音频缓冲过程的进度。

Can i make the slider right(gray) to be invisible? 我可以使滑块右移(灰色)吗? There is any build control? 有任何构建控件吗?

You can use the ProgressBar class to add a progress bar to your application. 您可以使用ProgressBar类将进度条添加到您的应用程序。 However, if you plan on adding an indeterminate progress bar, using ProgressBar can decrease the performance of your application. 但是,如果计划添加不确定的进度条,则使用ProgressBar可能会降低应用程序的性能。 This is because the current implementation of ProgressBar runs an indeterminate progress bar on the UI thread, rather than the compositor thread. 这是因为ProgressBar的当前实现在UI线程而非合成器线程上运行不确定的进度条。 Instead, you can use the CustomIndeterminateProgressBar sample to add an indeterminate progress bar that runs on the compositor thread for better performance. 相反,您可以使用CustomIndeterminateProgressBar示例添加一个不确定的进度条,该进度条在合成器线程上运行以提高性能。 This topic describes how the sample works, and how you can use it to add an indeterminate progress bar to your application. 本主题描述了示例的工作方式,以及如何使用它向应用程序添加不确定的进度条。

Please see this artice Visible Collapsed 请参阅此文章可见折叠

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM