123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 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); }
- }
- }
- }
|