Example #1
0
 void HidePreview()
 {
     if (previewNodeView != null)
     {
         previewNodeView.ClearValue(SharpTreeNodeView.TextBackgroundProperty);
         previewNodeView.ClearValue(SharpTreeNodeView.ForegroundProperty);
         if (insertMarker != null)
         {
             insertMarker.Visibility = Visibility.Collapsed;
         }
         previewNodeView = null;
     }
 }
 void HidePreview()
 {
     if (previewNodeView != null)
     {
         previewNodeView.ClearValue(SharpTreeNodeView.TextBackgroundProperty);
         //previewNodeView.ClearValue(SharpTreeNodeView.ForegroundProperty);
         if (insertMarker != null)
         {
             insertMarker.IsVisible = false;
         }
         previewNodeView = null;
     }
 }