ScreenToGif/Controls/CircularProgressBar.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
namespace ScreenToGif.Controls
{
class CircularProgressBar : ProgressBar
{
#region Variables
private Path _pathRoot;
private PathFigure _pathFigure;
private ArcSegment _arcSegment;
public static readonly DependencyProperty PercentageProperty;
public static readonly DependencyProperty StrokeThicknessProperty;
public static readonly DependencyProperty SegmentColorProperty;
public static readonly DependencyProperty RadiusProperty;
public static readonly DependencyProperty AngleProperty;
public static readonly DependencyProperty IsInvertedProperty;
#endregion
#region Properties
public double Radius
{
get { return (double)GetValue(RadiusProperty); }
set { SetValue(RadiusProperty, value); }
}
public Brush SegmentColor
{
get { return (Brush)GetValue(SegmentColorProperty); }
set { SetValue(SegmentColorProperty, value); }
}
public double StrokeThickness
{
get { return (double)GetValue(StrokeThicknessProperty); }
set { SetValue(StrokeThicknessProperty, value); }
}
public double Percentage
{
get { return (double)GetValue(PercentageProperty); }
set { SetValue(PercentageProperty, value); }
}
public double Angle
{
get { return (double)GetValue(AngleProperty); }
set { SetValue(AngleProperty, value); }
}
public bool IsInverted
{
get { return (bool)GetValue(IsInvertedProperty); }
后面还有 115 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
