TextBlockWithLabel.xaml.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. namespace Venus_Themes.UserControls
  5. {
  6. /// <summary>
  7. /// TextBlockWithLabel.xaml 的交互逻辑
  8. /// </summary>
  9. public partial class TextBlockWithLabel : UserControl
  10. {
  11. public TextBlockWithLabel()
  12. {
  13. InitializeComponent();
  14. }
  15. public static readonly DependencyProperty LabelValueProperty = DependencyProperty.Register(
  16. "LabelValue", typeof(string), typeof(TextBlockWithLabel));
  17. public string LabelValue
  18. {
  19. get { return (string)this.GetValue(LabelValueProperty); }
  20. set { this.SetValue(LabelValueProperty, value); }
  21. }
  22. public static readonly DependencyProperty TextBoxValueProperty = DependencyProperty.Register(
  23. "TextBoxValue", typeof(string), typeof(TextBlockWithLabel));
  24. public string TextBoxValue
  25. {
  26. get { return (string)this.GetValue(TextBoxValueProperty); }
  27. set { this.SetValue(TextBoxValueProperty, value); }
  28. }
  29. }
  30. }