private void BeginAnimations()
 {
     UpdateDuration();
     UpdateRadius();
     RotationStoryboard.Begin();
     PulsingStoryboard.Begin();
 }
Example #2
0
        private void WindmillListBoxItem_MouseEnter(object sender, MouseEventArgs e)
        {
            //pause the animation
            RotationStoryboard.Pause();

            //set the details view to the selected item
            DetailsGrid.DataContext = ((FrameworkElement)sender).DataContext;
        }
Example #3
0
        public MainPage()
        {
            InitializeComponent();

            //start the animation
            RotationStoryboard.Begin();

            //set the details view to the first item in the collection
            DetailsGrid.DataContext = ((Executives)this.Resources["Executives"])[0];
        }
Example #4
0
 private void WindmillListBoxItem_MouseLeave(object sender, MouseEventArgs e)
 {
     //resume the animation
     RotationStoryboard.Resume();
 }
 private void StopAnimations()
 {
     RotationStoryboard.Stop();
     PulsingStoryboard.Stop();
 }
Example #6
0
 void RotatingContainer_Loaded(object sender, RoutedEventArgs e)
 {
     RotationStoryboard.Begin();
 }