码迷,mamicode.com
首页 > 其他好文 > 详细

进度条

时间:2015-05-13 19:22:04      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:

<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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!