显示忙碌指示后,文本颜色不会恢复正常

时间:2011-11-18 23:07:39

标签: wpf busyindicator

我正在使用Extended WPF工具包中的BusyIndi​​cator。功能上,它工作正常。它显示我将IsBusy设置为true时,并在我将其设置为false时消失。

然而,在它消失后,标签上的文字是一种灰色的,看起来残疾的颜色。我不喜欢任何风格的东西......

另外,在我的同事的电脑上,它工作正常。忙碌指示灯隐藏后,文本返回黑色。

有谁知道可能导致这种情况的原因?

XAML:

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" >
  <Grid x:Name="LayoutRoot" DataContext="{Binding {StaticResource MyDataClass}}" Cursor="{Binding Instance.IsBusy, Converter={StaticResource isBusyToCursorConverter}}" >
    <toolkit:BusyIndicator x:Name="BusyIndicator" IsBusy="{Binding Instance.IsBusy}" BusyContent="{Binding Instance.BusyMessage, TargetNullValue='Please wait...'}" >
      <Grid x:Name="ScreenGrid" />
    </toolkit:BusyIndicator>
  </Grid>
</Window>

0 个答案:

没有答案