I have:

enter image description here

but I want to do this:

enter image description here

How can this be implemented?

<controls:MetroProgressBar EllipseDiameter="7" IsIndeterminate="True" Foreground="#3F85C4" />

  • Can I see the code for MetroProgressBar? - Monomax
  • @Monomax It is from the Mahaps.metro library - Nikita
  • You understand that it is not possible to do this by changing the Foreground ? Here it is necessary to redefine the styles of the control itself as a minimum ... - EvgeniyZ
  • @EvgeniyZ Yes, of course, that's why I ask - Nikita
  • You can make an element in an element ... a bicycle, of course, but you might be approached. The first element is almost invisible, and it will seem that it is an acante of the inner element. - Vitaliy Shebanits

1 answer 1

The problem is solved very simply, as it turned out. Here is a sample code that helped me solve this problem.

 <controls:MetroProgressBar EllipseDiameter="7" IsIndeterminate="True" Foreground="#3F85C4" > <controls:MetroProgressBar.OpacityMask> <LinearGradientBrush StartPoint="1,0" EndPoint="0,0"> <GradientStop Offset="0" Color="Black"></GradientStop> <GradientStop Offset="1" Color="Transparent"></GradientStop> </LinearGradientBrush> </controls:MetroProgressBar.OpacityMask> </controls:MetroProgressBar>