using System; 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 CyberX8_Themes.UserControls { /// /// ResistivityProbeControl.xaml 的交互逻辑 /// public partial class ResistivityProbeControl : UserControl { #region 属性 public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register( "ModuleName", typeof(string), typeof(ResistivityProbeControl),new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 模块名称 /// public string ModuleName { get { return (string)this.GetValue(ModuleNameProperty); } set { this.SetValue(ModuleNameProperty, value); } } public static readonly DependencyProperty ModuleTitleProperty = DependencyProperty.Register( "ModuleTitle", typeof(string), typeof(ResistivityProbeControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 标题 /// public string ModuleTitle { get { return (string)this.GetValue(ModuleTitleProperty); } set { this.SetValue(ModuleTitleProperty, value); } } public static readonly DependencyProperty IsConnectedProperty = DependencyProperty.Register( "IsConnected", typeof(bool), typeof(ResistivityProbeControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 连接状态 /// public bool IsConnected { get { return (bool)this.GetValue(IsConnectedProperty); } set { this.SetValue(IsConnectedProperty, value); } } public static readonly DependencyProperty ParentModuleProperty = DependencyProperty.Register( "ParentModule", typeof(string), typeof(ResistivityProbeControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 父级模块 /// public string ParentModule { get { return (string)this.GetValue(ParentModuleProperty); } set { this.SetValue(ParentModuleProperty, value); } } public static readonly DependencyProperty ResistivityValueProperty = DependencyProperty.Register( "ResistivityValue", typeof(string), typeof(ResistivityProbeControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Resistivity value /// public string ResistivityValue { get { return (string)this.GetValue(ResistivityValueProperty); } set { this.SetValue(ResistivityValueProperty, value); } } #endregion /// /// 构造函数 /// public ResistivityProbeControl() { InitializeComponent(); } } }