23 lines
834 B
C#
Raw Normal View History

2024-08-21 16:50:14 +08:00
using System.Windows;
using System.Windows.Controls;
namespace Yunda.SOMS.DataMonitoringServer.Viewport.Domain.Helper
{
public class ProcessStatusCtrl : Control
{
static ProcessStatusCtrl()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(ProcessStatusCtrl), new FrameworkPropertyMetadata(typeof(ProcessStatusCtrl)));
}
public bool Open
{
get { return (bool)GetValue(OpenProperty); }
set { SetValue(OpenProperty, value); }
}
// Using a DependencyProperty as the backing store for Open. This enables animation, styling, binding, etc...
public static readonly DependencyProperty OpenProperty =
DependencyProperty.Register("Open", typeof(bool), typeof(ProcessStatusCtrl), new PropertyMetadata(false));
}
}