StateTitle.xaml.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. namespace CyberX8_Themes.UserControls
  16. {
  17. /// <summary>
  18. /// StateTitle.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class StateTitle : UserControl
  21. {
  22. public StateTitle()
  23. {
  24. InitializeComponent();
  25. }
  26. public static readonly DependencyProperty LabelColorProperty = DependencyProperty.Register(
  27. "LabelColor", typeof(SolidColorBrush), typeof(StateTitle), new PropertyMetadata(new SolidColorBrush((Color)ColorConverter.ConvertFromString("#838B83"))));
  28. public SolidColorBrush LabelColor
  29. {
  30. get { return (SolidColorBrush)this.GetValue(LabelColorProperty); }
  31. set { this.SetValue(LabelColorProperty, value); }
  32. }
  33. public static readonly DependencyProperty TextBoxColorProperty = DependencyProperty.Register(
  34. "TextBoxColor", typeof(SolidColorBrush), typeof(StateTitle));
  35. public SolidColorBrush TextBoxColor
  36. {
  37. get { return (SolidColorBrush)this.GetValue(TextBoxColorProperty); }
  38. set { this.SetValue(TextBoxColorProperty, value); }
  39. }
  40. public static readonly DependencyProperty TextBoxValueProperty = DependencyProperty.Register(
  41. "TextBoxValue", typeof(string), typeof(StateTitle));
  42. public string TextBoxValue
  43. {
  44. get { return (string)this.GetValue(TextBoxValueProperty); }
  45. set { this.SetValue(TextBoxValueProperty, value); }
  46. }
  47. public static readonly DependencyProperty TitleProperty = DependencyProperty.Register(
  48. "Title", typeof(string), typeof(StateTitle));
  49. public string Title
  50. {
  51. get { return (string)this.GetValue(TitleProperty); }
  52. set { this.SetValue(TitleProperty, value); }
  53. }
  54. }
  55. }