user2455111 user2455111 - 1 year ago 215
C# Question

Transparent busy indicator

I'm using busy indicator from wpftoolkit library. This is my code:

<Window x:Class="BusyControl.MainWindow"
Title="MainWindow" Height="350" Width="525">
<xctk:BusyIndicator Name="ProgressIndicator" IsBusy="False" Background="Transparent" BorderBrush="Transparent" BorderThickness="0">
<Image gif:ImageBehavior.AnimatedSource="Resources/loading.gif" Width="150" Height="50" />
<TextBlock Text="{Binding ElementName=ProgressIndicator, Path=BusyContent}" HorizontalAlignment="Center" Margin="3"></TextBlock>
<Style TargetType="ProgressBar">
<Setter Property="Visibility" Value="Collapsed"/>
<Button Content="Click me" Click="ButtonBase_OnClick" Width="100" Height="50"></Button>

But my busy indicator looks like


but I need transparent busy indicator like this


How can I do that?

Answer Source

The answer will be either styling or changing the template. Here is a question with an answer that shows changing the Template and Styling of that control.

Of course the devil is in the detail... you'll need to do some research to find out specifically what the structure of the control is, to work out how you want to style it. And if you haven't done this kind of thing, I should manage your expectations that it may take a little time to work out what you need to do.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download