public void ShowEditorTour() { try { if (_activeEditorTour != null) { // We are already running, so leave } EditorWindowTourPanel tour = new EditorWindowTourPanel(); tour.SetValue(Grid.RowProperty, 1); tour.SetValue(Grid.RowSpanProperty, 2); tour.Completed += Tour_Completed; rootGrid.Children.Add(tour); _activeEditorTour = tour; tour.Start(); } catch (Exception ex) { // If anything goes wrong, restore the Ribbon //clipRibbon.IsHitTestVisible = true; Diagnostics.LogException(ex); } }
public bool StopEditorTour() { if (_activeEditorTour != null) { _activeEditorTour.Stop(); _activeEditorTour = null; return(true); } return(false); }
private void Tour_Completed(object sender, EventArgs e) { _activeEditorTour = null; }