Exemplo n.º 1
0
 /// <summary>
 /// Creates a new
 /// <see cref="T:ModernWpf.Controls.ITransition"/>
 /// for a
 /// <see cref="T:System.Windows.UIElement"/>.
 /// Saves and clears the existing
 /// <see cref="F:System.Windows.UIElement.RenderTransformProperty"/>
 /// value before the start of the transition, then restores it after it is stopped or completed.
 /// </summary>
 /// <param name="element">The <see cref="T:System.Windows.UIElement"/>.</param>
 /// <returns>The <see cref="T:ModernWpf.Controls.ITransition"/>.</returns>
 public override ITransition GetTransition(UIElement element)
 {
     return(Transitions.Slide(element, Mode));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new
 /// <see cref="T:ModernWpf.Controls.ITransition"/>
 /// for a
 /// <see cref="T:System.Windows.UIElement"/>.
 /// Saves and clears the existing
 /// <see cref="F:System.Windows.UIElement.RenderTransformProperty"/>
 /// value before the start of the transition, then restores it after it is stopped or completed.
 /// </summary>
 /// <param name="element">The <see cref="T:System.Windows.UIElement"/>.</param>
 /// <param name="containerSize">The size of the container.</param>
 /// <returns>The <see cref="T:ModernWpf.Controls.ITransition"/>.</returns>
 public override ITransition GetTransition(UIElement element, Size containerSize)
 {
     return(Transitions.Slide(element, containerSize, Mode));
 }