using SHJX.Service.Model.MvvmCommon; using System.Windows.Media; namespace SHJX.Service.Model.Forms { public class RingBarArg : PropertyImp { /// /// 红色进度条是否可见 /// private bool roundVisiable; public bool RoundVisiable { get => roundVisiable; set { roundVisiable = value; RaisePropertyChanged(nameof(RoundVisiable)); } } /// /// 中间部分要显示的值 /// private string currentText; public string CurrentText { get => currentText; set { currentText = value; RaisePropertyChanged(nameof(CurrentText)); } } /// /// 红色圆环的值大小 /// private double currentCycleValue; public double CurrentCycleValue { get => currentCycleValue; set { currentCycleValue = value; RaisePropertyChanged(nameof(CurrentCycleValue)); } } /// /// 中间部分的颜色值 /// private SolidColorBrush centerColor; public SolidColorBrush CenterColor { get => centerColor; set { centerColor = value; centerColor.Freeze(); RaisePropertyChanged(nameof(CenterColor)); } } public RingBarArg() { RoundVisiable = false; CurrentText = string.Empty; CurrentCycleValue = 0.01; } } }