ewerspej / epj.ProgressBar.Maui

A customizable Progress Bar featuring an Indeterminate state and Progress animation
MIT License
35 stars 4 forks source link

Rounded corners #5

Closed marosklempa closed 1 month ago

marosklempa commented 1 month ago

Could be possible to add property which will round the progress bar corners? Simillar like MAUI border do.

Thanks Maroš

ewerspej commented 1 month ago

If you just need rounded corners on the outside, you could wrap the control with a Border with rounded corners, e.g.:

<Border
    StrokeShape="RoundedRectangle 8"
    Stroke="Transparent"
    StrokeWidth="0">
    <epj:ProgressBar />
</Border>

I'm already considering adding this as a feature for the progress indicator bar.

marosklempa commented 1 month ago

Thanks, that workaround works well, solve my problem.

ewerspej commented 1 month ago

I added an option to have rounded caps, you can enable it by setting RoundCaps="True". It's currently available as a prerelease (https://www.nuget.org/packages/epj.ProgressBar.Maui/1.0.2-pre), so be sure to tick the "include prerelease" checkbox in the package manager.

marosklempa commented 1 month ago

Thanks, I will test it.