Skip to content

Add support for EventTrigger #9955

@vynxc

Description

@vynxc

Current behavior

<Page.Triggers>
            <EventTrigger RoutedEvent="Page.Loaded">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation
                            Storyboard.TargetName="MyPage"
                            Storyboard.TargetProperty="Opacity"
                            From="0.0"
                            To="1.0"
                            Duration="0:0:1" />
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Page.Triggers>  

Throwing code rejection for Android But working on uwp. If deleted works fine on Android.
No storyboard animation are working on android.

Expected behavior

Fades page in on loaded .

How to reproduce it (as minimally and precisely as possible)

<Page.Triggers>
            <EventTrigger RoutedEvent="Page.Loaded">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation
                            Storyboard.TargetName="MyPage"
                            Storyboard.TargetProperty="Opacity"
                            From="0.0"
                            To="1.0"
                            Duration="0:0:1" />
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Page.Triggers> 

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

Last Uno & Material Ui packages

Affected platforms

Android

IDE

No response

IDE version

Visual studio 2022

Relevant plugins

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIdifficulty/starter 🚀Categorizes an issue for which the difficulty level is reachable by newcomersgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions