StateTitle.xaml.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Windows;
  2. using System.Windows.Controls;
  3. using System.Windows.Media;
  4. namespace athosThemes.UserControls
  5. {
  6. public partial class StateTitle : UserControl
  7. {
  8. public StateTitle()
  9. {
  10. InitializeComponent();
  11. }
  12. public static readonly DependencyProperty LabelColorProperty = DependencyProperty.Register(
  13. "LabelColor", typeof(SolidColorBrush), typeof(StateTitle), new PropertyMetadata(new SolidColorBrush((Color)ColorConverter.ConvertFromString("#838B83"))));
  14. public SolidColorBrush LabelColor
  15. {
  16. get { return (SolidColorBrush)this.GetValue(LabelColorProperty); }
  17. set { this.SetValue(LabelColorProperty, value); }
  18. }
  19. public static readonly DependencyProperty TextBoxColorProperty = DependencyProperty.Register(
  20. "TextBoxColor", typeof(SolidColorBrush), typeof(StateTitle));
  21. public SolidColorBrush TextBoxColor
  22. {
  23. get { return (SolidColorBrush)this.GetValue(TextBoxColorProperty); }
  24. set { this.SetValue(TextBoxColorProperty, value); }
  25. }
  26. public static readonly DependencyProperty TextBoxValueProperty = DependencyProperty.Register(
  27. "TextBoxValue", typeof(string), typeof(StateTitle));
  28. public string TextBoxValue
  29. {
  30. get { return (string)this.GetValue(TextBoxValueProperty); }
  31. set { this.SetValue(TextBoxValueProperty, value); }
  32. }
  33. public static readonly DependencyProperty TitleProperty = DependencyProperty.Register(
  34. "Title", typeof(string), typeof(StateTitle));
  35. public string Title
  36. {
  37. get { return (string)this.GetValue(TitleProperty); }
  38. set { this.SetValue(TitleProperty, value); }
  39. }
  40. }
  41. }