Eğitim
Öğrenme yolu
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization
Bu tarayıcı artık desteklenmiyor.
En son özelliklerden, güvenlik güncelleştirmelerinden ve teknik destekten faydalanmak için Microsoft Edge’e yükseltin.
Timing, easing, directionality, and gravity work together to form the foundation of Fluent motion. Each has to be considered in the context of the others, and applied appropriately in the context of your app.
Here are 3 ways to apply Fluent motion fundamentals in your app.
Transition example
Direction Forward Out:
Fade out: 150m; Easing: Default Accelerate
Direction Forward In:
Slide up 150px: 300ms; Easing: Default Decelerate
Direction Backward Out:
Slide down 150px: 150ms; Easing: Default Accelerate
Direction Backward In:
Fade in: 300ms; Easing: Default Decelerate
Object example
Direction Expand:
Grow: 300ms; Easing: Standard
Direction Contract:
Grow: 150ms; Easing: Default Accelerate
The WinUI 3 Gallery app includes interactive examples of most WinUI 3 controls, features, and functionality. Get the app from the Microsoft Store or get the source code on GitHub
Implicit animations are a simple way to achieve Fluent motion by automatically interpolating between the old and new values during a parameter change.
You can implicitly animate changes to the following properties:
Border, ContentPresenter, or Panel
Each property that can have changes implicitly animated has a corresponding transition property. To animate the property, you assign a transition type to the corresponding transition property. This table shows the transition properties and the transition type to use for each one.
This example shows how to use the Opacity property and transition to make a button fade in when the control is enabled and fade out when it's disabled.
<Button x:Name="SubmitButton"
Content="Submit"
Opacity="{x:Bind OpaqueIfEnabled(SubmitButton.IsEnabled), Mode=OneWay}">
<Button.OpacityTransition>
<ScalarTransition />
</Button.OpacityTransition>
</Button>
public double OpaqueIfEnabled(bool IsEnabled)
{
return IsEnabled ? 1.0 : 0.2;
}
Önemli
The information and examples in this article are optimized for apps that use the Windows App SDK and WinUI 3, but are generally applicable to UWP apps that use WinUI 2. See the UWP API reference for platform specific information and examples.
This section contains information you need to use the control in a UWP or WinUI 2 app.
Implicit animations require Windows 10, version 1809 (SDK 17763) or later.
Windows developer geri bildirimi
Windows developer, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin:
Eğitim
Öğrenme yolu
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization
Belgeler
Timing and easing - Windows apps
Learn the importance of timing and easing in making motion feel natural for objects entering, exiting, or moving within the UI.
Directionality and gravity - animation in Windows apps - Windows apps
Learn about using direction of movement, direction of navigation, and gravity in animated scenes by viewing examples.
Page transitions - Windows apps
Learn how to use Universal Windows Platform (UWP) page transitions to give users feedback about the relationship between pages in your app.