| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- 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 ivf_tl_Manage.UserControls
- {
- /// <summary>
- /// TLStateInfoUserControl.xaml 的交互逻辑
- /// </summary>
- public partial class TLStateInfoUserControl : UserControl
- {
- public TLStateInfoUserControl()
- {
- InitializeComponent();
- //var aa = new SolidColorBrush((Color)ColorConverter.ConvertFromString(""));
- }
- /// <summary>
- /// 0离线 1在线 2解绑 3待初始化
- /// </summary>
- public int State
- {
- get { return (int)GetValue(StateProperty); }
- set { SetValue(StateProperty, value); }
- }
- // Using a DependencyProperty as the backing store for State. This enables animation, styling, binding, etc...
- public static readonly DependencyProperty StateProperty =
- DependencyProperty.Register("State", typeof(int), typeof(TLStateInfoUserControl), new PropertyMetadata(1));
- public string TlName
- {
- get { return (string)GetValue(TlNameProperty); }
- set { SetValue(TlNameProperty, value); }
- }
- // Using a DependencyProperty as the backing store for TlName. This enables animation, styling, binding, etc...
- public static readonly DependencyProperty TlNameProperty =
- DependencyProperty.Register("TlName", typeof(string), typeof(TLStateInfoUserControl), new PropertyMetadata("1号机"));
- public decimal Pre
- {
- get { return (decimal)GetValue(PreProperty); }
- set { SetValue(PreProperty, value); }
- }
- // Using a DependencyProperty as the backing store for Pre. This enables animation, styling, binding, etc...
- public static readonly DependencyProperty PreProperty =
- DependencyProperty.Register("Pre", typeof(decimal), typeof(TLStateInfoUserControl), new PropertyMetadata(0m));
- }
- }
|