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