Articles in this section
Category / Section

How to restrict the cropping of circle progressbar while increasing the StrokeThickness?

2 mins read

StrokeThickness of ArcSegments in SolidCircular progress type can be increased using StrokeThickness and BackRimStrokeThickness properties of WinForms ProgressBar. If we only increase the thickness of the SolidCircular progressbar against its size, it may lead to alignment problem in SfProgressBar. To avoid this, we must increase the size of the control along with it. The following code demonstrate the same,

 

Mainwindow.xaml:

<notification:SfProgressBar
                x:Name="progressBar"                                         
                Value="100" Height="200" Width="200"
                StrokeThickness="10"
                BackRimStrokeThickness="10"
                />

 

Output:

The following output shows the alignment problem in ProgressBar if the StrokeThickness is modified against the size,

Output showing alignment problem in UWP ProgressBar

StrokeThickness and BackStrokeThickness is 10 and Size of the control is 150 (Default)

Above alignment can be restricted by changing the size of the control along with it.

Stroke Thickness and BackStroke Thickness in UWP ProgressBar

StrokeThickness and BackStrokeThickness is 10 and Size of the control is 200

 

Sample:

https://www.syncfusion.com/downloads/support/directtrac/general/ze/SfProgressBar_Thickness-1633372527.zip

Conclusion

 

Hope you enjoyed learning about how to restrict the cropping of circle progressbar while increasing the StrokeThickness.

You can refer to our WinForms ProgressBar’s feature tour page to know about its other groundbreaking feature representations. You can explore our WinForms ProgressBar documentation to understand how to present and manipulate data.

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms ProgressBar and other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied