public dynWatch() { InPortData.Add(new PortData("", "Node to evaluate.", typeof(object))); OutPortData.Add(new PortData("", "Watch contents.", typeof(string))); NodeUI.RegisterAllPorts(); //take out the left and right margins //and make this so it's not so wide NodeUI.inputGrid.Margin = new Thickness(10, 5, 10, 5); NodeUI.topControl.Width = 300; //set a default height //oldPreferredHeight = NodeUI.PreferredHeight; NodeUI.Height = 200; wt = new WatchTree(); //wt.TreeExpanded += new EventHandler(wt_TreeExpanded); //wt.TreeCollapsed += new EventHandler(wt_TreeCollapsed); NodeUI.inputGrid.Children.Add(wt); wtb = wt.FindResource("Tree") as WatchTreeBranch; foreach (dynPort p in NodeUI.InPorts) { p.PortDisconnected += new PortConnectedHandler(p_PortDisconnected); } }
public override void SetupCustomUIElements(dynNodeView nodeUI) { watchTree = new WatchTree(); //nodeUI.inputGrid.Children.Add(watchTree); nodeUI.grid.Children.Add(watchTree); watchTree.SetValue(Grid.RowProperty, 2); watchTree.SetValue(Grid.ColumnSpanProperty, 3); watchTree.Margin = new Thickness(5, 0, 5, 5); watchTreeBranch = watchTree.FindResource("Tree") as WatchTreeBranch; }
public dynWatch() { InPortData.Add(new PortData("", "Node to evaluate.", typeof(object))); OutPortData = new PortData("", "Watch contents, passed through", typeof(object)); base.RegisterInputsAndOutputs(); //take out the left and right margins //and make this so it's not so wide this.inputGrid.Margin = new Thickness(10, 5, 10, 5); this.topControl.Width = 300; this.topControl.Height = 200; wt = new WatchTree(); this.inputGrid.Children.Add(wt); wtb = wt.FindResource("Tree") as WatchTreeBranch; foreach (dynPort p in this.InPorts) { p.PortDisconnected += new PortConnectedHandler(p_PortDisconnected); } }
public override void SetupCustomUIElements(dynNodeView NodeUI) { watchTree = new WatchTree(); NodeUI.inputGrid.Children.Add(watchTree); watchTreeBranch = watchTree.FindResource("Tree") as WatchTreeBranch; }
public override void SetupCustomUIElements(dynNodeView nodeUI) { watchTree = new WatchTree(); //nodeUI.inputGrid.Children.Add(watchTree); nodeUI.grid.Children.Add(watchTree); watchTree.SetValue(Grid.RowProperty,2); watchTree.SetValue(Grid.ColumnSpanProperty,3); watchTree.Margin = new Thickness(5,0,5,5); watchTreeBranch = watchTree.FindResource("Tree") as WatchTreeBranch; }