private void Popup_KeyDown(object sender, KeyEventArgs e) { switch (e.Key) { case Key.Left: GuideFlowEvents.OnGuidedTourPrev(); break; case Key.Right: GuideFlowEvents.OnGuidedTourNext(); break; } }
/// <summary> /// Call this method to create a new node in Dynamo canvas. /// </summary> public void CloseNodeTooltip(bool closeImmediately) { dynamoWindow.Dispatcher.BeginInvoke(new Action(() => { CloseTooltip(closeImmediately); //The packages installed are shown at this moment then we need to update the Popup location and the interactions with the Library if (GuideFlowEvents.IsAnyGuideActive) { GuideFlowEvents.OnUpdatePopupLocation(); GuideFlowEvents.OnUpdateLibraryInteractions(); } })); }
private void CloseButton_Click(object sender, System.Windows.RoutedEventArgs e) { IsOpen = false; if (popupViewModel.Step.GuideName.ToLower() == packagesTourName) { GuideFlowEvents.OnGuidedTourFinish(popupViewModel.Step.GuideName); } else { isClosingTour = true; popupViewModel.Step.OnStepClosed(popupViewModel.Step.Name, popupViewModel.Step.StepType); } }
private void BackButton_Click(object sender, RoutedEventArgs e) { GuideFlowEvents.OnGuidedTourPrev(); }
private void NextButton_Click(object sender, RoutedEventArgs e) { GuideFlowEvents.OnGuidedTourNext(); }
private void StartTourButton_Click(object sender, System.Windows.RoutedEventArgs e) { GuideFlowEvents.OnGuidedTourNext(); }
private void StartTourButton_Click(object sender, System.Windows.RoutedEventArgs e) { GuideFlowEvents.OnGuidedTourNext(popupViewModel.Step.Sequence); }
private void BackButton_Click(object sender, RoutedEventArgs e) { GuideFlowEvents.OnGuidedTourPrev(popupViewModel.Step.Sequence); }
//This method will be called when the Library was resized and the current Popup location needs to be updated internal void UpdatePopupLocation() { GuideFlowEvents.OnUpdatePopupLocation(); }
/// <summary> /// This method will execute the action of moving the Guide to the next Step (it is triggered when a specific html div that contains the package is clicked). /// </summary> internal void MoveToNextStep() { GuideFlowEvents.OnGuidedTourNext(); }