private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     if (DrawingCanvas.IsVisible)
     {
         DrawingCanvas.SetValue(VisibilityProperty, System.Windows.Visibility.Hidden);
         MainCanvas.SetValue(VisibilityProperty, System.Windows.Visibility.Visible);
     }
     else
     {
         ScopeViewer Page = new ScopeViewer();
         this.NavigationService.Navigate(Page);
     }
 }
        private void ScopeEntryButton(object sender, RoutedEventArgs e)
        {
            ScopeViewer page = new ScopeViewer();

            this.NavigationService.Navigate(page);
        }