Files
HandyControl/Net40/HandyControl_Net40/Controls/StepBar/StepBarItem.cs
T
2019-01-21 11:12:38 +08:00

42 lines
1.2 KiB
C#

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