How to use TwoWay binding from within a UserControl?
问题 I have my own UserControl, a LabeledTextBox which is the combination of a Label and a..well, TextBox . This Control has two properties: Caption which will be bound to the caption of the Label , and Value which will be bound to the Text of the TextBox . Code: public class LabeledTextBox : Control { static LabeledTextBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(LabeledTextBox), new FrameworkPropertyMetadata(typeof(LabeledTextBox))); } public string Caption { get { return (string