In Silverlight, I need the message box of a BusyIndicator to be transparent. I found a question asking the same but without any solution:
Silverlight BusyIndicator Background Colour
Part of the code I have is as follows:
<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>
Is there a way to make all the content background transparent, including the box containing the message, not in grey gradient as it comes as default?
I tried to set the property Background to transparent like that:
<toolkit:BusyIndicator x:Name="WorkingLayout" Height="80" Background="Transparent">
But it didn't work.
You can get what you want, you just have to edit the template to suit your needs. In expression blend,
If you want to remove the gray box, move the Content presenter up to a higher grid, and delete the border objects here is one sample busyindicator i made,
Change the stackpanel background to transparent.