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 { /// /// MainTM.xaml 的交互逻辑 /// 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); } } } }