using System; using System.Windows; using System.Windows.Controls; namespace Venus_Themes.UserControls { /// /// TextBlockWithLabel.xaml 的交互逻辑 /// public partial class TextBlockWithLabel : UserControl { public TextBlockWithLabel() { InitializeComponent(); } public static readonly DependencyProperty LabelValueProperty = DependencyProperty.Register( "LabelValue", typeof(string), typeof(TextBlockWithLabel)); public string LabelValue { get { return (string)this.GetValue(LabelValueProperty); } set { this.SetValue(LabelValueProperty, value); } } public static readonly DependencyProperty TextBoxValueProperty = DependencyProperty.Register( "TextBoxValue", typeof(string), typeof(TextBlockWithLabel)); public string TextBoxValue { get { return (string)this.GetValue(TextBoxValueProperty); } set { this.SetValue(TextBoxValueProperty, value); } } } }