using System; using System.Windows; using System.Windows.Controls; namespace VisionCommonUI { /// /// Interaction logic for PatternInfoView.xaml /// public partial class PatternInfoView : UserControl { public static Type _classType = typeof(PatternInfoView); public static readonly DependencyProperty IsActivatedProperty = DependencyProperty.Register( nameof(IsActivated), typeof(bool), _classType, new FrameworkPropertyMetadata( false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault )); public bool IsActivated { get { return (bool)GetValue(IsActivatedProperty); } set { SetValue(IsActivatedProperty, value); } } public static readonly DependencyProperty DescriptionProperty = DependencyProperty.Register( nameof(Description), typeof(string), _classType, new FrameworkPropertyMetadata( string.Empty, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault )); public string Description { get { return (string)GetValue(DescriptionProperty); } set { SetValue(DescriptionProperty, value); } } public PatternInfoView() { InitializeComponent(); DataContext = this; } } }