I want to change the height of the ProgressBarTrackHeight of the progressbar in WinUI-3. I dont know how to do it please help me with a code example.
<ProgressBar Width="130" Value="30" />
I want to change the height of the ProgressBarTrackHeight of the progressbar in WinUI-3. I dont know how to do it please help me with a code example.
<ProgressBar Width="130" Value="30" />
There's an issue about this in the GitHub repo.
As a workaround, until the issue gets fixed, you can create a custom
ProgressBar
:Now the
Height
property should just work:Note that
FindDescendants
is from the CommunityToolkit.WinUI.Extensions NuGet package.UPDATE
In the GitHub repo, a better option was suggested for the case that you won't change the
Height
dynamically. Instead of creating a customProgressBar
, you just need to set theMinHeight
: