Skip to content

Commit b530faf

Browse files
committed
Applied XAML styles
1 parent efe51f9 commit b530faf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

components/Marquee/samples/Marquee.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ icon: Assets/Marquee.png
1515

1616
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.
1717

18+
> [!Sample MarqueeTextSample]
19+
1820
## Speed
1921

2022
The speed property determines how quickly the content moves in pixels per second. The speed can be adjusted mid-animation and handled continously.
@@ -51,8 +53,6 @@ The speed property determines how quickly the content moves in pixels-per-second
5153

5254
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.
5355

54-
> [!Sample MarqueeTextSample]
55-
5656
## Non-Text Content
5757

5858
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.

components/Marquee/samples/MarqueeBehaviorSample.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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. -->
22
<Page x:Class="MarqueeExperiment.Samples.MarqueeBehaviorSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -33,22 +33,22 @@
3333
FontWeight="Bold"
3434
Text="This Marquee contains hyperlinks and will pause while hovered." />
3535
<controls:Marquee x:Name="MarqueeControl"
36+
AutoPlay="True"
3637
Background="Transparent"
3738
Behavior="Looping"
3839
FontSize="18"
3940
RepeatBehavior="Forever"
40-
AutoPlay="True"
4141
Speed="96">
4242
<controls:Marquee.ContentTemplate>
4343
<DataTemplate>
4444
<StackPanel Spacing="4">
4545
<RichTextBlock>
4646
<Paragraph>
47-
<Run Text="Lorem ipsum dolor sit amet, "/>
47+
<Run Text="Lorem ipsum dolor sit amet, " />
4848
<Hyperlink>consectetur adipiscing elit</Hyperlink>
49-
<Run Text=", sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "/>
49+
<Run Text=", sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. " />
5050
<Hyperlink>Ut enim ad minim veniam</Hyperlink>
51-
<Run Text=", quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."/>
51+
<Run Text=", quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." />
5252
</Paragraph>
5353
</RichTextBlock>
5454
</StackPanel>

0 commit comments

Comments
 (0)