JD2022-TU1/main/tools/modules/JD.DjRedo/Controls/DjredoStarterControl.cs

50 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using JetBrains.Annotations;
namespace DjRedo.Controls
{
/// <inheritdoc />
/// <summary>
/// Display all the infos of the start process
/// </summary>
public class DjredoStarterControl : Control, INotifyPropertyChanged
{
public IStepData[] Steps
{
get { return (IStepData[])GetValue(StepsProperty); }
set { SetValue(StepsProperty, value); }
}
// Using a DependencyProperty as the backing store for Steps. This enables animation, styling, binding, etc...
public static readonly DependencyProperty StepsProperty =
DependencyProperty.Register("Steps", typeof(IStepData[]), typeof(DjredoStarterControl));
static DjredoStarterControl()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(DjredoStarterControl), new FrameworkPropertyMetadata(typeof(DjredoStarterControl)));
}
public DjredoStarterControl()
{
}
public event PropertyChangedEventHandler PropertyChanged;
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}