Geeth
Geeth

Reputation: 5343

Remove the "blockiness" in Progress Bar in WPF

I want to remove the spaces between the blocks showing the progress. I need it to be solid.

Code:

<ProgressBar Name="probar"  Minimum="0" Height="40"  BorderThickness="0"/>

Geetha

Upvotes: 1

Views: 438

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292465

You need to redefine the template of the ProgressBar. Fortunately, it's not very complex... The simplest way is to extract the template with a tool like Style Snooper, the BAML Viewer Reflector Add-in, or Show Me The Template, and change the part that defines the background.

Upvotes: 2

Related Questions