| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | 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 Venus_Themes.UserControls{    /// <summary>    /// MainTM.xaml 的交互逻辑    /// </summary>    public partial class MainTM : UserControl    {        public MainTM()        {            InitializeComponent();        }        public static readonly DependencyProperty PressureValueProperty = DependencyProperty.Register(       "PressureValue", typeof(int), typeof(MainTM));        public int PressureValue        {            get { return (int)this.GetValue(PressureValueProperty); }            set { this.SetValue(PressureValueProperty, value); }        }        public static readonly DependencyProperty IsShowPressureValueProperty = DependencyProperty.Register(         "IsShowPressureValue", typeof(bool), typeof(MainTM),         new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        public bool IsShowPressureValue        {            get { return (bool)this.GetValue(IsShowPressureValueProperty); }            set { this.SetValue(IsShowPressureValueProperty, value); }        }        public static readonly DependencyProperty UnitProperty = DependencyProperty.Register(      "Unit", typeof(string), typeof(MainTM), new PropertyMetadata("mTorr"));        public string Unit        {            get { return (string)this.GetValue(UnitProperty); }            set            {                this.SetValue(UnitProperty, value);            }        }    }}
 |