-
Notifications
You must be signed in to change notification settings - Fork 114
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
Should share storyboard is paused between all ControlStoryboardAction instances. #107
base: main
Are you sure you want to change the base?
Should share storyboard is paused between all ControlStoryboardAction instances. #107
Conversation
merge the origin source
…rdAction instances." This reverts commit c7f91cc.
…olStoryboardAction instances.
Is there an issue for this PR? Do you have a use case for this PR? |
<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. |
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. |
Link this to microsoft/microsoft-ui-xaml#3103 |
if two or more ControlStoryboardAction instances use the same storyboard, is paused will be wrong.