wpf controls - What's the easiest way to create a WPF progress bar without the dashed style? -


I am looking to create a progress bar that does not use WPF default style, which is a dashed display Uses. I want all to have a simple, "smooth style" progress bar in other words, I do not want to progress to being repeatedly dashed. I want to use it with a solid color palette.

What is the easiest way to do this?

I assumed that it would be a part of the default API but I am not successful with it yet, among other things, I have tried to set the foreground brush, which only gives me color , Not the pull bar style is a way to do this, which is not included in overriding the default template (I find the simplest solution).

Defualt styles for each OS in XAM files which are part of the framework. You can use this code to apply Vista styles to the full application even in XP:

  & lt; window. Resources & gt; & Lt; Resource source source = "/ presentation framework arrow arrow, version = 3.0.0.0, culture = neutral, public keycon = 31bf3856ad364e35, processor architecture = MSIL; component / theme / aero normal color .xml" /> & Lt; /Window.Resources>  

This will however change the flaws of buttons and all other UI elements.

This is based on code from


Comments