Xaml Eventrigger为AppBarButton路由事件?

Xaml Eventrigger为AppBarButton路由事件?,xaml,windows-10,Xaml,Windows 10,在Windows10UWP中,我如何使这个故事板在点击时启动?我的应用程序在初始化组件时崩溃 <AppBarButton x:Name="nextButton" Label="next" Icon="Forward" Click="nextButton_Click"> <AppBarButton.Triggers> <EventTrigger RoutedEvent="Button.Cl

在Windows10UWP中,我如何使这个故事板在点击时启动?我的应用程序在初始化组件时崩溃

            <AppBarButton x:Name="nextButton" Label="next" Icon="Forward" Click="nextButton_Click">
            <AppBarButton.Triggers>
                <EventTrigger RoutedEvent="Button.Click">
                    <Storyboard>
                        <DoubleAnimation
                            Storyboard.TargetName="messageTextBlock" 
                            Storyboard.TargetProperty="(TextBlock.Opacity)"
                            To="0.0" From="1.0" Duration="0:0:01" />
                    </Storyboard>
                </EventTrigger>
            </AppBarButton.Triggers>
        </AppBarButton>