| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | 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>    /// StateTitle.xaml 的交互逻辑    /// </summary>    public partial class StateTitle : UserControl    {        public StateTitle()        {            InitializeComponent();        }        public static readonly DependencyProperty LabelColorProperty = DependencyProperty.Register(     "LabelColor", typeof(SolidColorBrush), typeof(StateTitle), new PropertyMetadata(new SolidColorBrush((Color)ColorConverter.ConvertFromString("#838B83"))));        public SolidColorBrush LabelColor        {            get { return (SolidColorBrush)this.GetValue(LabelColorProperty); }            set { this.SetValue(LabelColorProperty, value); }        }        public static readonly DependencyProperty TextBoxColorProperty = DependencyProperty.Register(     "TextBoxColor", typeof(SolidColorBrush), typeof(StateTitle));        public SolidColorBrush TextBoxColor        {            get { return (SolidColorBrush)this.GetValue(TextBoxColorProperty); }            set { this.SetValue(TextBoxColorProperty, value); }        }        public static readonly DependencyProperty TextBoxValueProperty = DependencyProperty.Register(    "TextBoxValue", typeof(string), typeof(StateTitle));        public string TextBoxValue        {            get { return (string)this.GetValue(TextBoxValueProperty); }            set { this.SetValue(TextBoxValueProperty, value); }        }        public static readonly DependencyProperty TitleProperty = DependencyProperty.Register(   "Title", typeof(string), typeof(StateTitle));        public string Title        {            get { return (string)this.GetValue(TitleProperty); }            set { this.SetValue(TitleProperty, value); }        }    }}
 |