-
Notifications
You must be signed in to change notification settings - Fork 80
Marquee State Transition Updates #735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Avid29
wants to merge
17
commits into
CommunityToolkit:main
Choose a base branch
from
Avid29:marquee/pausing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0d8b18f
Added pausing to Marquee and improved state transition logic
Avid29 6052375
Updated Marquee samples
Avid29 cc67ddd
Adjusted event bindings flow in Marquee control
Avid29 d275944
Merge branch 'CommunityToolkit:main' into marquee/pausing
Avid29 4b2ef29
Fixed bugs on Marquee loaded and in updating a marquee animation on t…
Avid29 f847934
Merge branch 'CommunityToolkit:main' into marquee/pausing
Avid29 61ca149
Fixed dependencies for Uno
Avid29 ba43326
Merge branch 'marquee/pausing' of https://github.com/Avid29/Labs-Wind…
Avid29 4244212
Applied xaml styling
Avid29 e34e9eb
Fixed Marquee for UWP
Avid29 5c61043
Fixed container height for vertical Marquee
Avid29 c81a9e9
Fixed discarded storyboards still playing
Avid29 d2a1ff1
Fixed resuming animations
Avid29 cfe7db2
Fixed clipping when an unloaded Marquee's size changes
Avid29 efe51f9
Updated sample to include AutoPlay and speed. Also inverted hovering …
Avid29 b530faf
Applied XAML styles
Avid29 c2047a2
Added default property values to Marquee docs
Avid29 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| <!-- 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. --> | ||
| <Page x:Class="MarqueeExperiment.Samples.MarqueeBehaviorSample" | ||
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
| xmlns:controls="using:CommunityToolkit.WinUI.Controls" | ||
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
| xmlns:interactivity="using:Microsoft.Xaml.Interactivity" | ||
| xmlns:local="MarqueeExperiment.Samples" | ||
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
| xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
| mc:Ignorable="d"> | ||
|
|
||
| <win:StackPanel Padding="16"> | ||
| <TextBlock FontWeight="Bold" | ||
| Text="This Marquee will loop once when hovered." /> | ||
| <controls:Marquee x:Name="Loop1Marquee" | ||
| Background="Transparent" | ||
| Behavior="Ticker" | ||
| Content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." | ||
| FontSize="18" | ||
| RepeatBehavior="1x" | ||
| Speed="256"> | ||
| <interactivity:Interaction.Behaviors> | ||
| <interactivity:EventTriggerBehavior EventName="PointerEntered" | ||
| SourceObject="{Binding ElementName=Loop1Marquee}"> | ||
| <interactivity:CallMethodAction MethodName="StartMarquee" | ||
| TargetObject="{Binding ElementName=Loop1Marquee}" /> | ||
| </interactivity:EventTriggerBehavior> | ||
| </interactivity:Interaction.Behaviors> | ||
| </controls:Marquee> | ||
|
|
||
| <TextBlock Margin="0,16,0,0" | ||
| FontWeight="Bold" | ||
| Text="This Marquee contains hyperlinks and will pause while hovered." /> | ||
| <controls:Marquee x:Name="MarqueeControl" | ||
| AutoPlay="True" | ||
| Background="Transparent" | ||
| Behavior="Looping" | ||
| FontSize="18" | ||
| RepeatBehavior="Forever" | ||
| Speed="96"> | ||
| <controls:Marquee.ContentTemplate> | ||
| <DataTemplate> | ||
| <StackPanel Spacing="4"> | ||
| <RichTextBlock> | ||
| <Paragraph> | ||
| <Run Text="Lorem ipsum dolor sit amet, " /> | ||
| <Hyperlink>consectetur adipiscing elit</Hyperlink> | ||
| <Run Text=", sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. " /> | ||
| <Hyperlink>Ut enim ad minim veniam</Hyperlink> | ||
| <Run Text=", quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." /> | ||
| </Paragraph> | ||
| </RichTextBlock> | ||
| </StackPanel> | ||
| </DataTemplate> | ||
| </controls:Marquee.ContentTemplate> | ||
| <interactivity:Interaction.Behaviors> | ||
| <interactivity:EventTriggerBehavior EventName="PointerEntered" | ||
| SourceObject="{Binding ElementName=MarqueeControl}"> | ||
| <interactivity:CallMethodAction MethodName="PauseMarquee" | ||
| TargetObject="{Binding ElementName=MarqueeControl}" /> | ||
| </interactivity:EventTriggerBehavior> | ||
| <interactivity:EventTriggerBehavior EventName="PointerExited" | ||
| SourceObject="{Binding ElementName=MarqueeControl}"> | ||
| <interactivity:CallMethodAction MethodName="StartMarquee" | ||
| TargetObject="{Binding ElementName=MarqueeControl}" /> | ||
| </interactivity:EventTriggerBehavior> | ||
| </interactivity:Interaction.Behaviors> | ||
| </controls:Marquee> | ||
| </win:StackPanel> | ||
| </Page> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.