TUM.CMS.VplControl.Core.NodeCaptionLabel.NodeCaptionLabel C# (CSharp) Method

NodeCaptionLabel() public method

public NodeCaptionLabel ( VplElement hostElement ) : System.ComponentModel
hostElement VplElement
return System.ComponentModel
        public NodeCaptionLabel(VplElement hostElement)
        {
            HostElement = hostElement;
            //HostElement.HostCanvas.Children.Add(this);
            HostElement.HitTestGrid.Children.Add(this);
            Grid.SetColumn(this, 1);

            Style = FindResource("EditableLabelStyleGroup") as Style;


            var b = new Binding("Content")
            {
                Source = this,
                Mode = BindingMode.TwoWay
            };
            HostElement.SetBinding(VplElement.NameProperty, b);


            HostNodeGroup_PropertyChanged(null, null);
            HostElement.PropertyChanged += HostNodeGroup_PropertyChanged;
        }