You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/Marquee/samples/Marquee.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ icon: Assets/Marquee.png
15
15
16
16
The Marquee control allows text or other content to scroll in a marquee fashion. The control is heavily templated and many changes can be made by modifying the style. The control can also be adjusted using the Speed, Behavior, RepeatBehavior, and Direction properties.
17
17
18
+
> [!Sample MarqueeTextSample]
19
+
18
20
## Speed
19
21
20
22
The speed property determines how quickly the content moves in pixels per second. The speed can be adjusted mid-animation and handled continously.
@@ -23,6 +25,8 @@ The speed property determines how quickly the content moves in pixels per second
23
25
24
26
The Marquee control has 3 behaviors
25
27
28
+
Default: `Ticker`
29
+
26
30
### Ticker
27
31
28
32
Ticker mode starts with all content off the screen then scrolls the content across across the screen. When the animation finishes in the mode no content will be on screen.
@@ -39,14 +43,34 @@ Looping mode will begin with the start of the content fully in frame then scroll
39
43
40
44
The repeat behavior determines how many times the marquee will loop before the animation finishes. It can be a number of iteration, a duration, or forever.
41
45
46
+
Default: `1x`
47
+
42
48
## Direction
43
49
44
50
The default direction is left, meaning the content will move leftwards, but this can be changed to right, up, or down. Direction changed between left and right or up and down are handled continously, meaning that the animation will resume from its current position if changed between these directions.
45
51
46
-
> [!Sample MarqueeTextSample]
52
+
Default: `Left`
53
+
54
+
## Speed
55
+
56
+
The speed property determines how quickly the content moves in pixels-per-second. The speed can be adjusted mid-animation and handled continously. Because the speed is in pixels per second the actual time it takes to scroll will depend on the size of the content. The content can also change size dynamically and the speed will remain constant.
57
+
58
+
Default: `32`
59
+
60
+
## AutoPlay
61
+
62
+
The AutoPlay property determines if the marquee will start animating when it is loaded, upon on size changes, or when the content changes. If set to false the marquee can be started manually by calling the `StartMarquee` method.
63
+
64
+
Default: `false`
47
65
48
66
## Non-Text Content
49
67
50
68
It is possible to use non-text content in the Marquee control. However templating must be used because the control will need to be duplicated for the looping animation.
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
Copy file name to clipboardExpand all lines: components/Marquee/samples/MarqueeSample.xaml
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1
+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1
+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
0 commit comments