标签:
<ProgressBar Minimum="0"
Maximum="100"
Value="{Binding SuccessRate, Mode=OneWay}">
<ProgressBar.Template>
<ControlTemplate TargetType="ProgressBar">
<Border Background="{TemplateBinding Value, Converter={StaticResource ValueToProcessConverter}, ConverterParameter=200}"/>
</ControlTemplate>
</ProgressBar.Template>
</ProgressBar>
摘自:http://www.cnblogs.com/dipwater/p/4011553.html
----------------------------------------------------------------
if (!timer.Enabled || blink == BlinkCount)
drawProgress(canvasGraphic, value);
else
{
((SolidBrush)pieBrush).Color = Color.FromArgb(count, ForeColor.R, ForeColor.G, ForeColor.B);
canvasGraphic.FillEllipse(pieBrush, rect);
((SolidBrush)pieBrush).Color = ForeColor;
}
摘自: http://bbs.csdn.net/topics/390149552
标签:
原文地址:http://www.cnblogs.com/YunGy/p/4500846.html