23 lines
834 B
C#
23 lines
834 B
C#
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));
|
|
}
|
|
} |