Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 更改进度点指示器的颜色Windows Phone Silverlight 8.1_C#_Silverlight_Windows Phone 8.1_Foreground_Progress Indicator - Fatal编程技术网

C# 更改进度点指示器的颜色Windows Phone Silverlight 8.1

C# 更改进度点指示器的颜色Windows Phone Silverlight 8.1,c#,silverlight,windows-phone-8.1,foreground,progress-indicator,C#,Silverlight,Windows Phone 8.1,Foreground,Progress Indicator,是否可以为Windows Phone 8.1 Silverlight应用程序更改ProgressIndicator中点的颜色?我已经将我的ProgressIndicator的Foreground设置为白色,它是白色的,但点仍然保持蓝色 我注意到Facebook的进度指示器中有白点,所以有可能吗?您可以通过设置以下资源来更改不确定进度条的前景色: <x:String x:Key="ProgressBarIndeterminateForegroundThemeBrush">#EF920

是否可以为Windows Phone 8.1 Silverlight应用程序更改
ProgressIndicator
中点的颜色?我已经将我的
ProgressIndicator
Foreground
设置为白色,它是白色的,但点仍然保持蓝色


我注意到Facebook的
进度指示器中有白点,所以有可能吗?

您可以通过设置以下资源来更改不确定进度条的前景色:

<x:String x:Key="ProgressBarIndeterminateForegroundThemeBrush">#EF9200</x:String>

必须在应用程序ResourceDictionnary中定义“ProgressBarIndeeterminateForGroundTheMebrush”资源。如果您没有,请将其添加到app.xaml文件中如何添加ResourceDictionnary,您有什么好的示例吗@在应用程序的app.xaml文件的顶部,只需添加以下内容
StatusBarProgressIndicator progressbar = StatusBar.GetForCurrentView().ProgressIndicator;
        progressbar.ShowAsync();