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; }
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; }
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; }