public void ShowDropFilesPanel(bool visibility) { shellView.DropFilesPanel.Visibility = visibility ? Visibility.Visible : Visibility.Collapsed; if (visibility) { if (dropFilesPanelDashAnimation == null) { dropFilesPanelDashAnimation = new Storyboard(); double animTime = 5; DoubleAnimation offsetAnimation = new DoubleAnimation { From = 0, To = 50, Duration = TimeSpan.FromSeconds(animTime) }; Storyboard.SetTarget(offsetAnimation, shellView.DropFilesRect); Storyboard.SetTargetProperty(offsetAnimation, new PropertyPath("StrokeDashOffset")); dropFilesPanelDashAnimation.Children.Add(offsetAnimation); dropFilesPanelDashAnimation.RepeatBehavior = RepeatBehavior.Forever; dropFilesPanelDashAnimation.Begin(shellView.DropFilesRect, true); LoggerManager.Info("Begin storyboard"); } else { if (dropFilesPanelDashAnimation.GetCurrentState(shellView.DropFilesRect) == ClockState.Stopped) { LoggerManager.Info("Begin storyboard again"); dropFilesPanelDashAnimation.Begin(shellView.DropFilesRect, true); } } } else { if (dropFilesPanelDashAnimation != null) { dropFilesPanelDashAnimation.Stop(shellView.DropFilesRect); LoggerManager.Info("Stop storyboard"); } } }
public void DisableTabPress(object sender, object e) { LoggerManager.Info("tabstop"); }