Ejemplo n.º 1
0
 public void Detach()
 {
     if (FeedbackStoryboard != null)
     {
         FeedbackStoryboard.Stop();
         FeedbackStoryboard = null;
     }
     (AssociatedObject as FrameworkElement).Tapped -= AssociatedObject_Tap;
 }
Ejemplo n.º 2
0
        void AssociatedObject_Tap(object sender, TappedRoutedEventArgs e)
        {
            if (MethodAfterStoryboard != null)
            {
                FeedbackStoryboard.Completed -= FeedbackStoryboard_Completed;
                FeedbackStoryboard.Completed += FeedbackStoryboard_Completed;
            }

            FeedbackStoryboard.Begin();
        }