using System.Windows;
using HandyControl.Data;
namespace HandyControl.Controls;
///
/// 步骤条单元项
///
public class StepBarItem : SelectableItem
{
///
/// 步骤编号
///
public static readonly DependencyProperty IndexProperty = DependencyProperty.Register(
nameof(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(
nameof(Status), typeof(StepStatus), typeof(StepBarItem), new PropertyMetadata(StepStatus.Waiting));
///
/// 步骤状态
///
public StepStatus Status
{
get => (StepStatus) GetValue(StatusProperty);
internal set => SetValue(StatusProperty, value);
}
}