| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using SHJX.Service.Model.MvvmCommon;
- using System.Windows.Media;
- namespace SHJX.Service.Model.Forms
- {
- public class RingBarArg : PropertyImp
- {
- /// <summary>
- /// 红色进度条是否可见
- /// </summary>
- private bool roundVisiable;
- public bool RoundVisiable
- {
- get => roundVisiable;
- set
- {
- roundVisiable = value;
- RaisePropertyChanged(nameof(RoundVisiable));
- }
- }
- /// <summary>
- /// 中间部分要显示的值
- /// </summary>
- private string currentText;
- public string CurrentText
- {
- get => currentText;
- set
- {
- currentText = value;
- RaisePropertyChanged(nameof(CurrentText));
- }
- }
-
- /// <summary>
- /// 红色圆环的值大小
- /// </summary>
- private double currentCycleValue;
- public double CurrentCycleValue
- {
- get => currentCycleValue;
- set
- {
- currentCycleValue = value;
- RaisePropertyChanged(nameof(CurrentCycleValue));
- }
- }
- /// <summary>
- /// 中间部分的颜色值
- /// </summary>
- 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;
- }
- }
- }
|