ProgressBarBubble.cs

(完整代码) 1009B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;

namespace WpfApplication1
{
	/// <summary>
	/// Author:xxh 
	/// CreateTime:2014-01-03 21:27:53 
	/// </summary>
	public class ProgressBarBubble : ProgressBar
	{
		public int ProcressCount
		{
			get { return (int)GetValue(ProcressCountProperty); }
			set { SetValue(ProcressCountProperty, value); }
		}
        // 下载于www.51aspx.com
		// Using a DependencyProperty as the backing store for ProcressCount.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty ProcressCountProperty =
			DependencyProperty.Register("ProcressCount", typeof(int), typeof(ProgressBarBubble), new UIPropertyMetadata(0));

		protected override void OnValueChanged(double oldValue, double newValue)
		{
			base.OnValueChanged(oldValue, newValue);
			ProcressCount = (int)(newValue / Maximum * 100);
		}
	}
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。