FadeOutThemeAnimation
FadeOutThemeAnimation
FadeOutThemeAnimation
FadeOutThemeAnimation
Class
Definition
Represents the preconfigured opacity animation that applies to controls when they are removed from the UI or hidden.
public : sealed class FadeOutThemeAnimation : Timeline
struct winrt::Windows::UI::Xaml::Media::Animation::FadeOutThemeAnimation : Timeline
public sealed class FadeOutThemeAnimation : Timeline
Public NotInheritable Class FadeOutThemeAnimation Inherits Timeline
<FadeOutThemeAnimation ... />
- Inheritance
-
FadeOutThemeAnimationFadeOutThemeAnimationFadeOutThemeAnimationFadeOutThemeAnimation
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced v10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
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();
}
Constructors
FadeOutThemeAnimation() FadeOutThemeAnimation() FadeOutThemeAnimation() FadeOutThemeAnimation() |
Initializes a new instance of the FadeOutThemeAnimation class. |
Properties
AllowDependentAnimations AllowDependentAnimations AllowDependentAnimations AllowDependentAnimations |
Gets or sets a value that determines whether dependent animations should be permitted to run, throughout the app. (Inherited from Timeline) |
AutoReverse AutoReverse AutoReverse AutoReverse |
Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration. (Inherited from Timeline) |
AutoReverseProperty AutoReverseProperty AutoReverseProperty AutoReverseProperty |
Identifies the AutoReverse dependency property. (Inherited from Timeline) |
BeginTime BeginTime BeginTime BeginTime |
Gets or sets the time at which this Timeline should begin. (Inherited from Timeline) |
BeginTimeProperty BeginTimeProperty BeginTimeProperty BeginTimeProperty |
Identifies the BeginTime dependency property. (Inherited from Timeline) |
Dispatcher Dispatcher Dispatcher Dispatcher |
Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread. (Inherited from DependencyObject) |
Duration Duration Duration Duration |
Gets or sets the length of time for which this timeline plays, not counting repetitions. (Inherited from Timeline) |
DurationProperty DurationProperty DurationProperty DurationProperty |
Identifies the Duration dependency property. (Inherited from Timeline) |
FillBehavior FillBehavior FillBehavior FillBehavior |
Gets or sets a value that specifies how the animation behaves after it reaches the end of its active period. (Inherited from Timeline) |
FillBehaviorProperty FillBehaviorProperty FillBehaviorProperty FillBehaviorProperty |
Identifies the FillBehavior dependency property. (Inherited from Timeline) |
RepeatBehavior RepeatBehavior RepeatBehavior RepeatBehavior |
Gets or sets the repeating behavior of this timeline. (Inherited from Timeline) |
RepeatBehaviorProperty RepeatBehaviorProperty RepeatBehaviorProperty RepeatBehaviorProperty |
Identifies the RepeatBehavior dependency property. (Inherited from Timeline) |
SpeedRatio SpeedRatio SpeedRatio SpeedRatio |
Gets or sets the rate, relative to its parent, at which time progresses for this Timeline. (Inherited from Timeline) |
SpeedRatioProperty SpeedRatioProperty SpeedRatioProperty SpeedRatioProperty |
Identifies for the SpeedRatio dependency property. (Inherited from Timeline) |
TargetName TargetName TargetName TargetName |
Gets or sets the reference name of the control element being targeted. |
TargetNameProperty TargetNameProperty TargetNameProperty TargetNameProperty |
Identifies the TargetName dependency property. |
Methods
Events
Completed Completed Completed Completed |
Occurs when the Storyboard object has completed playing. (Inherited from Timeline) |
See also
Feedback
Loading feedback...