예제 #1
0
        public NodeBinButton(VplElement hostNodeGroup)
        {
            HostElement = hostNodeGroup;
            //HostElement.HostCanvas.Children.Add(this);
            HostElement.HitTestGrid.Children.Add(this);
            Grid.SetColumn(this, 4);

            Style = FindResource("BinButton20") as Style;

            HostNodeGroup_PropertyChanged(null, null);
            HostElement.PropertyChanged += HostNodeGroup_PropertyChanged;
        }
예제 #2
0
        public NodeAutoCheckBox(VplElement hostNodeGroup)
        {
            HostElement = hostNodeGroup;
            //HostElement.HostCanvas.Children.Add(this);
            HostElement.HitTestGrid.Children.Add(this);
            Grid.SetColumn(this, 2);

            Margin = new Thickness(5);

            IsChecked   = true;
            BorderBrush = Application.Current.Resources["BrushBlue"] as Brush;
            Foreground  = Application.Current.Resources["BrushBlue"] as Brush;

            HostNodeGroup_PropertyChanged(null, null);
            HostElement.PropertyChanged += HostNodeGroup_PropertyChanged;
        }
예제 #3
0
        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;
        }