Skip to content
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

Not Working Storyboard AutoReverse in Uno Platform #219

Open
seo6107 opened this issue May 17, 2021 · 1 comment
Open

Not Working Storyboard AutoReverse in Uno Platform #219

seo6107 opened this issue May 17, 2021 · 1 comment

Comments

@seo6107
Copy link

seo6107 commented May 17, 2021

i use Uno.Microsoft.Xaml.Behaviors.WinUI.Managed

Storyboard AutoReverse is working in WinUI3 UWP

but not working Uno platform

this is my code

`<Image ~~~
x:Name="img1"
Width="1280"
Height="720"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Source="ms-appx:///Resources/~~~~~~"
Stretch="Fill"
Visibility="{Binding IsImageData, RelativeSource={RelativeSource Mode=TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}">

                                    <Interactivity:Interaction.Behaviors>
                                        <Core:EventTriggerBehavior EventName="Loaded">
                                            <Media:ControlStoryboardAction>
                                                <Media:ControlStoryboardAction.Storyboard>
                                                    <Storyboard AutoReverse="True" RepeatBehavior="Forever">
                                                        <DoubleAnimation
                                                            Storyboard.TargetName="img1"
                                                            Storyboard.TargetProperty="Opacity"
                                                            From="1"
                                                            To="0"
                                                            Duration="0:0:2" />
                                                    </Storyboard>
                                                </Media:ControlStoryboardAction.Storyboard>
                                            </Media:ControlStoryboardAction>
                                        </Core:EventTriggerBehavior>
                                    </Interactivity:Interaction.Behaviors>
                                    <!--<Image.Triggers>
                                        <EventTrigger RoutedEvent="Image.Loaded">
                                            <BeginStoryboard>
                                                <Storyboard AutoReverse="True" RepeatBehavior="Forever">
                                                    <DoubleAnimation
                                                        Storyboard.TargetName="img1"
                                                        Storyboard.TargetProperty="Opacity"
                                                        From="1"
                                                        To="0"
                                                        Duration="0:0:2" />
                                                </Storyboard>
                                            </BeginStoryboard>
                                        </EventTrigger>
                                    </Image.Triggers>-->
                                </Image>`
@michael-hawker
Copy link
Contributor

@seo6107 you should test this against the latest Uno version. If it's still an issue, please report on their repository instead: https://github.com/unoplatform/uno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants