Represents the preconfigured opacity animation that applies to controls when they are removed from the UI or hidden.
Inheritance
- Object
- DependencyObject
- Timeline
- FadeOutThemeAnimation
Syntax
<FadeOutThemeAnimation ... />
Attributes
- ActivatableAttribute(NTDDI_WIN8)
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.UI.Xaml.Media.Animation.IFadeOutThemeAnimationStatics, NTDDI_WIN8)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The FadeOutThemeAnimation class has these types of members:
Constructors
The FadeOutThemeAnimation class has these constructors.
| Constructor | Description |
|---|---|
| FadeOutThemeAnimation | Initializes a new instance of the FadeOutThemeAnimation class. |
Events
The FadeOutThemeAnimation class has these events.
| Event | Description |
|---|---|
| Completed | Occurs when the Storyboard object has completed playing. (Inherited from Timeline) |
Methods
The FadeOutThemeAnimation class has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| ClearValue | Clears the local value of a dependency property. (Inherited from DependencyObject) |
| GetAnimationBaseValue | Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject) |
| GetValue | Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject) |
| ReadLocalValue | Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject) |
| SetValue | Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject) |
Properties
The FadeOutThemeAnimation class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read/write | Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration. (Inherited from Timeline) | |
| Read/write | Gets or sets the time at which this Timeline should begin. (Inherited from Timeline) | |
| Read-only | Gets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject) | |
| Read/write | Gets or sets the length of time for which this timeline plays, not counting repetitions. (Inherited from Timeline) | |
| Read/write | Gets or sets a value that specifies how the animation behaves after it reaches the end of its active period. (Inherited from Timeline) | |
| Read/write | Gets or sets the repeating behavior of this timeline. (Inherited from Timeline) | |
| Read/write | Gets or sets the rate, relative to its parent, at which time progresses for this Timeline. (Inherited from Timeline) | |
| Read/write | Gets or sets the reference name of the control element being targeted. | |
| Read-only | Identifies the TargetName dependency property. |
Examples
The following example applies a FadeInThemeAnimation and FadeOutThemeAnimation to a rectangle.
<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(); }
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012