Skip to content

Commit b39893f

Browse files
authored
Move old XAML animation articles to UWP (#6066)
1 parent 75ef433 commit b39893f

14 files changed

Lines changed: 222 additions & 240 deletions

.openpublishing.redirection.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10359,6 +10359,41 @@
1035910359
"source_path": "hub/apps/design/input/cortana-support-natural-language-voice-commands.md",
1036010360
"redirect_url": "/windows/uwp/ui-input/cortana-support-natural-language-voice-commands",
1036110361
"redirect_document_id": false
10362+
},
10363+
{
10364+
"source_path": "hub/apps/design/motion/motion-dragdrop.md",
10365+
"redirect_url": "/windows/uwp/ui-input/motion-dragdrop",
10366+
"redirect_document_id": false
10367+
},
10368+
{
10369+
"source_path": "hub/apps/design/motion/motion-edgebased.md",
10370+
"redirect_url": "/windows/uwp/ui-input/motion-edgebased",
10371+
"redirect_document_id": false
10372+
},
10373+
{
10374+
"source_path": "hub/apps/design/motion/motion-fade.md",
10375+
"redirect_url": "/windows/uwp/ui-input/motion-fade",
10376+
"redirect_document_id": false
10377+
},
10378+
{
10379+
"source_path": "hub/apps/design/motion/motion-list.md",
10380+
"redirect_url": "/windows/uwp/ui-input/motion-list",
10381+
"redirect_document_id": false
10382+
},
10383+
{
10384+
"source_path": "hub/apps/design/motion/motion-pointer.md",
10385+
"redirect_url": "/windows/uwp/ui-input/motion-pointer",
10386+
"redirect_document_id": false
10387+
},
10388+
{
10389+
"source_path": "hub/apps/design/motion/motion-popup-animations.md",
10390+
"redirect_url": "/windows/uwp/ui-input/motion-popup-animations",
10391+
"redirect_document_id": false
10392+
},
10393+
{
10394+
"source_path": "hub/apps/design/motion/motion-reposition.md",
10395+
"redirect_url": "/windows/uwp/ui-input/motion-reposition",
10396+
"redirect_document_id": false
1036210397
}
1036310398
]
1036410399
}

hub/apps/design/motion/motion-dragdrop.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

hub/apps/design/motion/motion-edgebased.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

hub/apps/design/motion/motion-fade.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

hub/apps/design/motion/motion-list.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

uwp/develop/toc.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,4 +1314,20 @@ items:
13141314
- name: Support natural-language voice commands
13151315
href: ../ui-input/cortana-support-natural-language-voice-commands.md
13161316
- name: Content links
1317-
href: ../ui-input/content-links.md
1317+
href: ../ui-input/content-links.md
1318+
- name: XAML animations
1319+
items:
1320+
- name: Drag and drop
1321+
href: ../ui-input/motion-dragdrop.md
1322+
- name: Edge based
1323+
href: ../ui-input/motion-edgebased.md
1324+
- name: Fade
1325+
href: ../ui-input/motion-fade.md
1326+
- name: List
1327+
href: ../ui-input/motion-list.md
1328+
- name: Pointer click
1329+
href: ../ui-input/motion-pointer.md
1330+
- name: Popup
1331+
href: ../ui-input/motion-popup-animations.md
1332+
- name: Reposition
1333+
href: ../ui-input/motion-reposition.md
File renamed without changes.

uwp/ui-input/motion-dragdrop.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
description: Use drag-and-drop animations when users move objects, such as moving an item within a list, or dropping an item on top of another.
3+
title: Drag animations
4+
ms.assetid: 6064755F-6E24-4901-A4FF-263F05F0DFD6
5+
label: Motion--Drag and drop
6+
template: detail.hbs
7+
ms.date: 09/24/2020
8+
ms.topic: article
9+
keywords: windows 10, uwp
10+
ms.localizationpriority: medium
11+
---
12+
# Drag animations
13+
14+
Use drag-and-drop animations when users move objects, such as moving an item within a list, or dropping an item on top of another.
15+
16+
> **Important APIs**: [**DragItemThemeAnimation class**](/uwp/api/windows.ui.xaml.media.animation.dragitemthemeanimation)
17+
18+
## Do's and don'ts
19+
20+
### Drag start animation
21+
22+
- Use the drag start animation when the user begins to move an object.
23+
- Include affected objects in the animation if and only if there are other objects that can be affected by the drag-and-drop operation.
24+
- Use the drag end animation to complete any animation sequence that began with the drag start animation. This reverses the size change in the dragged object that was caused by the drag start animation.
25+
26+
### Drag end animation
27+
28+
- Use the drag end animation when the user drops a dragged object.
29+
- Use the drag end animation in combination with add and delete animations for lists.
30+
- Include affected objects in the drag end animation if and only if you included those same affected objects in the drag start animation.
31+
- Don't use the drag end animation if you have not first used the drag start animation. You need to use both animations to return objects to their original sizes after the drag sequence is complete.
32+
33+
### Drag between enter animation
34+
35+
- Use the drag between enter animation when the user drags the drag source into a drop area where it can be dropped between two other objects.
36+
- Choose a reasonable drop target area. This area should not be so small that it is difficult for the user to position the drag source for the drop.
37+
- The recommended direction to move affected objects to show the drop area is directly apart from each other. Whether they move vertically or horizontally depends on the orientation of the affected objects to each other.
38+
- Don't use the drag between enter animation if the drag source cannot be dropped in an area. The drag between enter animation tells the user that the drag source can be dropped between the affected objects.
39+
40+
### Drag between leave animation
41+
42+
- Use the drag between leave animation when the user drags an object away from an area where it could have been dropped between two other objects.
43+
- Don't use the drag between leave animation if you have not first used the drag between enter animation.
44+
45+
## Related articles
46+
47+
- [Animating drag-and-drop sequences](/previous-versions/windows/apps/jj649427(v=win.10))
48+
- [Quickstart: Animating your UI using library animations](/previous-versions/windows/apps/hh452703(v=win.10))
49+
- [**DragItemThemeAnimation class**](/uwp/api/windows.ui.xaml.media.animation.dragitemthemeanimation)
50+
- [**DropTargetItemThemeAnimation class**](/uwp/api/windows.ui.xaml.media.animation.droptargetitemthemeanimation)
51+
- [**DragOverThemeAnimation class**](/uwp/api/windows.ui.xaml.media.animation.dragoverthemeanimation)

uwp/ui-input/motion-edgebased.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
description: Edge-based animations show or hide UI that originates from the edge of the screen.
3+
title: Edge-based UI animations
4+
ms.assetid: 5A8F73B1-F4F6-424b-9EDF-A9766C5DEAE8
5+
label: Motion--edge-based UI
6+
template: detail.hbs
7+
ms.date: 09/24/2020
8+
ms.topic: article
9+
keywords: windows 10, uwp
10+
ms.localizationpriority: medium
11+
---
12+
# Edge-based UI animations
13+
14+
Edge-based animations show or hide UI that originates from the edge of the screen. The show and hide actions can be initiated either by the user or by the app. The UI can either overlay the app or be part of the main app surface. If the UI is part of the app surface, the rest of the app might need to be resized to accommodate it.
15+
16+
> **Important APIs**: [**EdgeUIThemeTransition class**](/uwp/api/Windows.UI.Xaml.Media.Animation.EdgeUIThemeTransition)
17+
18+
## Do's and don'ts
19+
20+
- Use edge UI animations to show or hide a custom message or error bar that does not extend far into the screen.
21+
- Use panel animations to show UI that slides a significant distance into the screen, such as a task pane or a custom soft keyboard.
22+
- Slide the UI in from the same edge it will be attached to.
23+
- Slide the UI out to the same edge it came from.
24+
- If the contents of the app need to resize in response to the UI sliding in or out, use fade animations for the resize.
25+
- If the UI is sliding in, use a fade animation after the edge UI or panel animation.
26+
- If the UI is sliding out, use a fade animation at the same time as the edge UI or panel animation.
27+
- Don't apply these animations to notifications. Notifications should not be housed within edge-based UI.
28+
- Don't apply the edge UI or panel animations to any UI container or control that is not at the edge of the screen. These animations are used only for showing, resizing, and dismissing UI at the edges of the screen. To move other types of UI, use reposition animations.
29+
30+
![illustrates when to use edge ui or panel animations and when to use reposition.](images/edgevsreposition.png)
31+
32+
## Related articles
33+
34+
- [Animating edge-based UI](/previous-versions/windows/apps/jj649428(v=win.10))
35+
- [Quickstart: Animating your UI using library animations](/previous-versions/windows/apps/hh452703(v=win.10))
36+
- [**EdgeUIThemeTransition class**](/uwp/api/Windows.UI.Xaml.Media.Animation.EdgeUIThemeTransition)
37+
- [**PaneThemeTransition class**](/uwp/api/Windows.UI.Xaml.Media.Animation.PaneThemeTransition)
38+
- [Animating fades](/previous-versions/windows/apps/jj649429(v=win.10))
39+
- [Animating repositions](/previous-versions/windows/apps/jj649434(v=win.10))

0 commit comments

Comments
 (0)