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