private void BeginAnimations() { UpdateDuration(); UpdateRadius(); RotationStoryboard.Begin(); PulsingStoryboard.Begin(); }
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; }
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]; }
private void WindmillListBoxItem_MouseLeave(object sender, MouseEventArgs e) { //resume the animation RotationStoryboard.Resume(); }
private void StopAnimations() { RotationStoryboard.Stop(); PulsingStoryboard.Stop(); }
void RotatingContainer_Loaded(object sender, RoutedEventArgs e) { RotationStoryboard.Begin(); }