【发布时间】:2013-09-29 19:58:20
【问题描述】:
在 Silverlight 中,我需要 BusyIndicator 的消息框是透明的。 我发现了一个同样的问题,但没有任何解决方案:
Silverlight BusyIndicator Background Colour
我的部分代码如下:
<toolkit:BusyIndicator x:Name="WorkingLayout" Height="80">
<toolkit:BusyIndicator.BusyContent>
<StackPanel>
<TextBlock Text="Wait please..." HorizontalAlignment="Center"></TextBlock>
<Button x:Name="CancelButton" HorizontalAlignment="Center" Content="Cancel" Width="100" Click="CancelButton_Click" />
</StackPanel>
</toolkit:BusyIndicator.BusyContent>
<!-- Rest of component code -->
</toolkit:BusyIndicator>
有没有办法让所有内容背景透明,包括包含消息的框,而不是默认的灰色渐变?
我尝试像这样将属性背景设置为透明:
<toolkit:BusyIndicator x:Name="WorkingLayout" Height="80" Background="Transparent">
但它没有用。
【问题讨论】:
标签: silverlight xaml silverlight-toolkit busyindicator