diff --git a/components/Marquee/samples/Dependencies.props b/components/Marquee/samples/Dependencies.props index e622e1df4..b0471fc89 100644 --- a/components/Marquee/samples/Dependencies.props +++ b/components/Marquee/samples/Dependencies.props @@ -11,21 +11,21 @@ - + - + - + - + diff --git a/components/Marquee/samples/Marquee.md b/components/Marquee/samples/Marquee.md index 69f8e9a96..ecb85181d 100644 --- a/components/Marquee/samples/Marquee.md +++ b/components/Marquee/samples/Marquee.md @@ -50,3 +50,9 @@ The default direction is left, meaning the content will move leftwards, but this 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. > [!Sample MarqueeSample] + +# Level Up with Behaviors + +Use behaviors to triggers the Marquee on events + +> [!Sample MarqueeBehaviorSample] diff --git a/components/Marquee/samples/MarqueeBehaviorSample.xaml b/components/Marquee/samples/MarqueeBehaviorSample.xaml new file mode 100644 index 000000000..e9f3b53be --- /dev/null +++ b/components/Marquee/samples/MarqueeBehaviorSample.xaml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/components/Marquee/samples/MarqueeBehaviorSample.xaml.cs b/components/Marquee/samples/MarqueeBehaviorSample.xaml.cs new file mode 100644 index 000000000..e4bc7a8bf --- /dev/null +++ b/components/Marquee/samples/MarqueeBehaviorSample.xaml.cs @@ -0,0 +1,14 @@ +// 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. + +namespace MarqueeExperiment.Samples; + +[ToolkitSample(id: nameof(MarqueeBehaviorSample), "Marquee", description: "A control for scrolling content in a marquee fashion.")] +public sealed partial class MarqueeBehaviorSample : Page +{ + public MarqueeBehaviorSample() + { + this.InitializeComponent(); + } +} diff --git a/components/Marquee/samples/MarqueeSample.xaml b/components/Marquee/samples/MarqueeSample.xaml index 5a37d7777..ad9325679 100644 --- a/components/Marquee/samples/MarqueeSample.xaml +++ b/components/Marquee/samples/MarqueeSample.xaml @@ -1,4 +1,4 @@ - + - - - - MarqueeTextSample.xaml - - - - - MarqueeSample.xaml - - diff --git a/components/Marquee/samples/MarqueeTextSample.xaml b/components/Marquee/samples/MarqueeTextSample.xaml index 3912726e9..7d5d25bd6 100644 --- a/components/Marquee/samples/MarqueeTextSample.xaml +++ b/components/Marquee/samples/MarqueeTextSample.xaml @@ -1,4 +1,4 @@ - + - - + + +