FadeOutThemeAnimation Class

Representa la animación de opacidad preconfigurada que se aplica a los controles cuando se quitan de la interfaz de usuario o se ocultan.

Herencia

Object
  DependencyObject
    Timeline
      FadeOutThemeAnimation

Sintaxis


public ref class FadeOutThemeAnimation sealed : Timeline


<FadeOutThemeAnimation ... />

Atributos

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

A continuación se indican los tipos de miembros de FadeOutThemeAnimation (Clase):

Constructores

A continuación se indican los constructores de FadeOutThemeAnimation (Clase).

ConstructorDescripción
FadeOutThemeAnimation Initializes a new instance of the FadeOutThemeAnimation class.

 

Eventos

A continuación se indican los eventos de FadeOutThemeAnimation (Clase).

EventoDescripción
Completed Occurs when the Storyboard object has completed playing. (Se hereda de Timeline)

 

Métodos

The FadeOutThemeAnimation Clase tiene estos métodos. También hereda métodos de Object Clase.

MétodoDescripción
ClearValue Clears the local value of a dependency property. (Se hereda de DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Se hereda de DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Se hereda de DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Se hereda de DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Se hereda de DependencyObject)

 

Propiedades

FadeOutThemeAnimationClase tiene estas propiedades.

PropiedadTipo de accesoDescripción

AutoReverse

Lectura/escrituraGets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration. (Se hereda de Timeline)

BeginTime

Lectura/escrituraGets or sets the time at which this Timeline should begin. (Se hereda de Timeline)

Dispatcher

De sólo lecturaGets the CoreDispatcher that this object is associated with. (Se hereda de DependencyObject)

Duration

Lectura/escrituraGets or sets the length of time for which this timeline plays, not counting repetitions. (Se hereda de Timeline)

FillBehavior

Lectura/escrituraGets or sets a value that specifies how the animation behaves after it reaches the end of its active period. (Se hereda de Timeline)

RepeatBehavior

Lectura/escrituraGets or sets the repeating behavior of this timeline. (Se hereda de Timeline)

SpeedRatio

Lectura/escrituraGets or sets the rate, relative to its parent, at which time progresses for this Timeline. (Se hereda de Timeline)

TargetName

Lectura/escrituraGets or sets the reference name of the control element being targeted.

TargetNameProperty

De sólo lecturaIdentifies the TargetName dependency property.

 

Ejemplos

El siguiente ejemplo aplica FadeInThemeAnimation y FadeOutThemeAnimation a un rectángulo.


<StackPanel>
    <StackPanel.Resources>

        <!-- Theme animations like this can use the default behavior like
             this example or you could use properties like BeginTime and 
             Duration to tweak when and how quickly the animation occures. 
             If you want more control over a fade animation (e.g. just partial
             fade), you will need to use DoubleAnimation to animate the Opacity 
             property of the element you want to fade in or out. -->
        <Storyboard x:Name="EnterStoryboard">
            <FadeOutThemeAnimation Storyboard.TargetName="myRectangle" />
        </Storyboard>
        <Storyboard x:Name="ExitStoryboard">
            <FadeInThemeAnimation Storyboard.TargetName="myRectangle" />
        </Storyboard>
    </StackPanel.Resources>
    <Rectangle x:Name="myRectangle" 
               PointerEntered="Rectangle_PointerEntered" 
               PointerExited="Rectangle_PointerExited"   
               Fill="Blue" Width="200" Height="300" />
</StackPanel>



// When the pointer enters the rectangle space, the animation begins.
private void Rectangle_PointerEntered(object sender, PointerRoutedEventArgs e)
{
    EnterStoryboard.Begin();
}

private void Rectangle_PointerExited(object sender, PointerRoutedEventArgs e)
{
    ExitStoryboard.Begin();
}


Requisitos

Cliente mínimo admitido

Windows 8 [Solo aplicaciones de la Tienda Windows]

Servidor mínimo admitido

Windows Server 2012 [Solo aplicaciones de la Tienda Windows]

Espacio de nombres

Windows.UI.Xaml.Media.Animation
Windows::UI::Xaml::Media::Animation [C++]

Metadatos

Windows.winmd

Vea también

Timeline
Animar fundidos
Instrucciones y lista de comprobación para animaciones de atenuación

 

 

Mostrar:
© 2015 Microsoft