Esempio n. 1
0
        void UpdateBindingsToOutput()
        {
            var binding = new Binding("OutputName")
            {
                UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged,
                Source = OperatorPart,
                Path   = new PropertyPath("Name"),
            };

            NameLabel.SetBinding(TextBlock.TextProperty, binding);
        }
Esempio n. 2
0
        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);
        }