using System.Windows; using System.Windows.Controls; using HandyControl.Data; namespace HandyControl.Controls { /// /// 步骤条单元项 /// public class StepBarItem : ContentControl { /// /// 步骤编号 /// public static readonly DependencyProperty IndexProperty = DependencyProperty.Register( "Index", typeof(int), typeof(StepBarItem), new PropertyMetadata(-1)); /// /// 步骤编号 /// public int Index { get => (int) GetValue(IndexProperty); internal set => SetValue(IndexProperty, value); } /// /// 步骤状态 /// public static readonly DependencyProperty StatusProperty = DependencyProperty.Register( "Status", typeof(StepStatus), typeof(StepBarItem), new PropertyMetadata(StepStatus.Waiting)); /// /// 步骤状态 /// public StepStatus Status { get => (StepStatus) GetValue(StatusProperty); internal set => SetValue(StatusProperty, value); } } }