Silverlight BusyIndicator Background Colour

折月煮酒 提交于 2019-12-11 18:30:03

问题


Is there a simple way of changing the background colour of the default busy indicator from the default grey to white gradient to another colour?

Example image of the default busy indicator can be found here

Thanks


回答1:


Well, its simple.

to use the toolkit you must declare it namespace in your xaml class(i think you've done that ok ?)

Like this :

    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"

After this you must declare your toolkit :

<toolkit:BusyIndicator BackGround="White" >
  <elements that need a busy indicator>
</toolkit:BusyIndicator>

You can do what you want just by changing the property BackGround.

Hope it Helps



来源:https://stackoverflow.com/questions/9889832/silverlight-busyindicator-background-colour

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!