Should share storyboard is paused between all ControlStoryboardAction instances.#107
Open
h82258652 wants to merge 7 commits into
Open
Should share storyboard is paused between all ControlStoryboardAction instances.#107h82258652 wants to merge 7 commits into
h82258652 wants to merge 7 commits into
Conversation
merge the origin source
…rdAction instances." This reverts commit c7f91cc.
…olStoryboardAction instances.
Collaborator
|
Is there an issue for this PR? Do you have a use case for this PR? |
Author
<CommandBar>
<CommandBar.Resources>
<Storyboard x:Key="RefreshingStoryboard">
<DoubleAnimation RepeatBehavior="Forever"
Storyboard.TargetName="RefreshIcon"
Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)"
From="0"
To="360"
Duration="0:0:1" />
</Storyboard>
</CommandBar.Resources>
<AppBarButton Label="Refresh">
<interactivity:Interaction.Behaviors>
<core:DataTriggerBehavior Binding="{Binding Path=IsBusy}"
Value="True">
<media:ControlStoryboardAction ControlStoryboardOption="TogglePlayPause"
Storyboard="{StaticResource RefreshingStoryboard}" />
</core:DataTriggerBehavior>
<core:DataTriggerBehavior Binding="{Binding Path=IsBusy}"
Value="False">
<media:ControlStoryboardAction ControlStoryboardOption="Pause"
Storyboard="{StaticResource RefreshingStoryboard}" />
</core:DataTriggerBehavior>
</interactivity:Interaction.Behaviors>
<AppBarButton.Icon>
<SymbolIcon x:Name="RefreshIcon"
RenderTransformOrigin="0.5,0.5"
Symbol="Refresh">
<SymbolIcon.RenderTransform>
<RotateTransform />
</SymbolIcon.RenderTransform>
</SymbolIcon>
</AppBarButton.Icon>
</AppBarButton>
</CommandBar>When IsBusy is true, the storyboard should be continue to play. But in fact, it don't work for me. By the way, is this project still alive? The nuget package had 6 months no update. |
Member
|
It sure is alive. We listen to you guys when it is time to produce another NuGet update. We have heard request recently and put it on our backlog. Due to higher priority issues though we haven't been able to do so yet. |
Author
|
Link this to microsoft/microsoft-ui-xaml#3103 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
if two or more ControlStoryboardAction instances use the same storyboard, is paused will be wrong.