public void CustomizeView(Watch nodeModel, NodeView nodeView) { this.dynamoViewModel = nodeView.ViewModel.DynamoViewModel; this.watch = nodeModel; this.syncContext = new DispatcherSynchronizationContext(nodeView.Dispatcher); var watchTree = new WatchTree(); watchTree.BorderThickness = new Thickness(1, 1, 1, 1); watchTree.BorderBrush = new SolidColorBrush(Color.FromRgb(220, 220, 220)); watchTree.SetWatchNodeProperties(); // make empty watchViewModel rootWatchViewModel = new WatchViewModel(dynamoViewModel.BackgroundPreviewViewModel.AddLabelForPath); nodeView.PresentationGrid.Children.Add(watchTree); nodeView.PresentationGrid.Visibility = Visibility.Visible; // disable preview control nodeView.TogglePreviewControlAllowance(); Bind(watchTree, nodeView); Subscribe(); ResetWatch(); }