60 lines
1.9 KiB
C#
60 lines
1.9 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace MilUI {
|
|
/// <summary>
|
|
/// Interaction logic for PatternInfoView.xaml
|
|
/// </summary>
|
|
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;
|
|
}
|
|
}
|
|
}
|