void UpdateBindingsToOutput() { var binding = new Binding("OutputName") { UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = OperatorPart, Path = new PropertyPath("Name"), }; NameLabel.SetBinding(TextBlock.TextProperty, binding); }
private void UpdateBindingsToOutput(object sender, System.EventArgs e) { var binding = new Binding("OutputName") { UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = OperatorPart, Path = new PropertyPath("Name"), }; NameLabel.SetBinding(TextBlock.TextProperty, binding); }