StateTitle.xaml.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 Venus_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 TextBoxColorProperty = DependencyProperty.Register(
  27. "TextBoxColor", typeof(SolidColorBrush), typeof(StateTitle));
  28. public SolidColorBrush TextBoxColor
  29. {
  30. get { return (SolidColorBrush)this.GetValue(TextBoxColorProperty); }
  31. set { this.SetValue(TextBoxColorProperty, value); }
  32. }
  33. public static readonly DependencyProperty TextBoxValueProperty = DependencyProperty.Register(
  34. "TextBoxValue", typeof(string), typeof(StateTitle));
  35. public string TextBoxValue
  36. {
  37. get { return (string)this.GetValue(TextBoxValueProperty); }
  38. set { this.SetValue(TextBoxValueProperty, value); }
  39. }
  40. public static readonly DependencyProperty TitleProperty = DependencyProperty.Register(
  41. "Title", typeof(string), typeof(StateTitle));
  42. public string Title
  43. {
  44. get { return (string)this.GetValue(TitleProperty); }
  45. set { this.SetValue(TitleProperty, value); }
  46. }
  47. }
  48. }