private void Animation_AnimationFinished(object sender, AnimationStatusEventArgs e) { this.currentAnimation.Stop((RadObject)this); this.IsAnimating = false; this.UpdateElementsMouseOver(); this.OnAnimationFinished(e); }
private void AnimatedCollapse_Finished(object sender, AnimationStatusEventArgs e) { TreeAnimatedPropertySetting animatedPropertySetting = sender as TreeAnimatedPropertySetting; animatedPropertySetting.AnimationFinished -= new AnimationFinishedEventHandler(this.AnimatedCollapse_Finished); this.UpdateViewOnExpandChanged(animatedPropertySetting.Node); }
private void AnimatedCollapse_Finished(object sender, AnimationStatusEventArgs e) { TreeAnimatedPropertySetting setting = sender as TreeAnimatedPropertySetting; setting.AnimationFinished -= AnimatedCollapse_Finished; this.UpdateViewOnExpandChanged(setting.Node); }
private void CurrentAnimation_AnimationStarted(object sender, AnimationStatusEventArgs e) { if (this.currentlyRunningAnimations.Count == 0) { this.Owner.OnAnimationStarted(); } this.currentlyRunningAnimations.Add(new CarouselItemsContainer.AnimationEntry((AnimatedPropertySetting)sender, e.Element)); }
protected virtual void OnAnimationFinished(AnimationStatusEventArgs e) { if (this.AnimationFinished == null) { return; } this.AnimationFinished((object)this, e); }
private void outAnimation_AnimationFinished(object sender, AnimationStatusEventArgs e) { (sender as AnimatedPropertySetting).AnimationFinished -= new AnimationFinishedEventHandler(this.outAnimation_AnimationFinished); if (e.Element == null || !this.Children.Contains(e.Element)) { return; } this.Children.Remove(e.Element); }
private void OnAnimationFinished(object sender, AnimationStatusEventArgs e) { this.isAnimating = false; this.AutoSize = true; if (this.Calendar != null) { this.Calendar.Invalidate(); } }
private void zoomInOffset_AnimationFinished(object sender, AnimationStatusEventArgs e) { this.ContinueAnimatedTiles(); AnimatedPropertySetting animatedPropertySetting = sender as AnimatedPropertySetting; if (animatedPropertySetting == null) { return; } this.ScrollView((int)((SizeF)animatedPropertySetting.EndValue).Width); }
/// <summary> /// At the end of the animation, all child controls of the panel are shown. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void loadAnimation_AnimationFinished(object sender, AnimationStatusEventArgs e) { foreach (Control currentControl in this.radPanelDemoHolder.Controls) { RadControl radControl = currentControl as RadControl; if (radControl != null) { radControl.Visible = true; } } }
private void OnForwardAnimationFinished(object sender, AnimationStatusEventArgs e) { this.isAnimating = false; if (this.Calendar == null) { return; } if (this.Bounds.Size == this.ProposedBounds.Size) { this.Bounds = new Rectangle(Point.Empty, this.Bounds.Size); this.Font = this.oldFont; this.Invalidate(); } this.Calendar.Invalidate(); }
private void CollapseSetting_AnimationFinished(object sender, AnimationStatusEventArgs e) { this.OnUpdateViewNeeded(EventArgs.Empty); IList <GridRowElement> visualRows = this.TableElement.VisualRows; GridExpandAnimationFade.FadeAnimatedPropertySetting animatedPropertySetting1 = sender as GridExpandAnimationFade.FadeAnimatedPropertySetting; int rowIndex = animatedPropertySetting1.RowIndex; animatedPropertySetting1.AnimationFinished -= new AnimationFinishedEventHandler(this.CollapseSetting_AnimationFinished); for (int index = rowIndex; index < visualRows.Count; ++index) { GridRowElement gridRowElement = visualRows[index]; if (gridRowElement.Visibility != ElementVisibility.Hidden) { GridExpandAnimationFade.FadeAnimatedPropertySetting animatedPropertySetting2 = new GridExpandAnimationFade.FadeAnimatedPropertySetting(VisualElement.OpacityProperty, (object)0.0, (object)1.0, 9, 30); animatedPropertySetting2.RemoveAfterApply = true; animatedPropertySetting2.ApplyValue((RadObject)gridRowElement); } } }
private void CurrentAnimation_AnimationFinished(object sender, AnimationStatusEventArgs e) { int index = this.currentlyRunningAnimations.IndexOf(new CarouselItemsContainer.AnimationEntry((AnimatedPropertySetting)sender, e.Element)); if (index > -1) { this.currentlyRunningAnimations.RemoveAt(index); } else { int count = this.currentlyRunningAnimations.Count; if (count > 0) { this.currentlyRunningAnimations.RemoveAt(count - 1); } } if (this.currentlyRunningAnimations.Count != 0) { return; } this.Owner.OnAnimationFinished(); }
private void CurrentAnimation_AnimationFinished(object sender, AnimationStatusEventArgs e) { AnimationEntry animationEntry = new AnimationEntry((AnimatedPropertySetting)sender, e.Element); int index = this.currentlyRunningAnimations.IndexOf(animationEntry); if (index > -1) { this.currentlyRunningAnimations.RemoveAt(index); } else { int count = this.currentlyRunningAnimations.Count; if (count > 0) { this.currentlyRunningAnimations.RemoveAt(count - 1); } } if (this.currentlyRunningAnimations.Count == 0) { this.Owner.OnAnimationFinished(); } }
private void CollapseSetting_AnimationFinished(object sender, AnimationStatusEventArgs e) { this.TableElement.Invalidate(); (sender as AnimatedPropertySetting).AnimationFinished -= new AnimationFinishedEventHandler(this.CollapseSetting_AnimationFinished); }
private void ExpandSetting_AnimationFinished(object sender, AnimationStatusEventArgs e) { this.OnUpdateViewNeeded(EventArgs.Empty); (sender as AnimatedPropertySetting).AnimationFinished -= new AnimationFinishedEventHandler(this.ExpandSetting_AnimationFinished); }
private void OnExampleOpened(object sender, AnimationStatusEventArgs e) { UserControl ctrl = this.GetCurrentExampleControl(); if (ctrl != null) { this.Controls.Add(ctrl); ctrl.BringToFront(); this.UpdateExampleControlPosition(); } }
private void OnExampleClosed(object sender, AnimationStatusEventArgs e) { ((AnimatedPropertySetting)sender).AnimationFinished -= OnExampleClosed; this.examplePage.Visibility = ElementVisibility.Collapsed; this.currentExample = string.Empty; }
private void Animation_AnimationStarted(object sender, AnimationStatusEventArgs e) { this.OnAnimationStarted(e); }