Home > front end >  How to change the thickness of WinUI progress ring?
How to change the thickness of WinUI progress ring?

Time:04-05

I have a WinUI progress ring in my UWP C# XAML app like this

xmlns:winui="using:Microsoft.UI.Xaml.Controls"

<winui:ProgressRing
    Width="250"
    Height="250"
    Foreground="Green"
    IsIndeterminate="False"
    Maximum="60"
    Value="59" />

It looks like this

enter image description here

How do I make it thicker?

CodePudding user response:

As @mm8 said, WinUI ProgressRing is implemented with AnimatedVisualPlayer, and it will load play source in the code behind.

player.Source(winrt::make<AnimatedVisuals::ProgressRingIndeterminate>());

ProgressRingIndeterminate Lottie animation has not provide method to edit thickness. if you do want to this feature, please post your requirement in GitHub, and share link below, I will help to vote up.

  • Related