Progress bar style in WPF is old fashioned. Increments in Bars. How to implement a progress bar with vista or windows-7 shady glow effect ?
Image http://quickshare.my3gb.com/download/2.JPG
Even checked out the properties of the Progressbar. But, there is no properties related to glowy effect.
Also, is there any animations or something different from normal progress bar/
Edit
The Code:
<ProgressBar Height="41" HorizontalAlignment="Left" Margin="372,215,0,0" Name="progressBar1" VerticalAlignment="Top" Width="150">
</ProgressBar>
Roll your own shouldn’t be too hard.
Create a usercontrol which has the properties of a standard progress bar
You can create a derived property which calculates the size of the bar by using the a formula:
Which changes when the Value, Maximum or Minimum is updated
Bind this to the Width of the ‘bar’ in your progress bar control template – this way when the Value property is updated, the progress bar will resize.
How your bar looks is up to you, but I guess you just want a load of fancy fills/gradients/glow effects – you can add these in Blend
Disclaimer: Formulas may be incorrect!
In case you want to try and roll your own, here’s one I just knocked up which seems to work ok
The XAML
The result:
Like I said, something like this is pretty easy but still consider redefining the template or using the original since it does support glowyness on the right OS
Here it is after I added a ‘Percent’ dependency property and bound to that in the control template:
Code for updating
PercentwasEdit 2:
I messed with the fills and added a white inner border so it looks more shiny. The only thing missing is the shiny animation
the top one is my control, the bottom one is the default WPF one
Bear in mind, all of this may be possible just by editing the progress bar control template
Here’s the updated XAML: