Eventrigger为AppBarButton发布了事件?

时间:2015-06-08 01:11:40

标签: xaml windows-10

如何在Windows 10 uwp中点击这个故事板?我的应用程序只是在初始化组件时崩溃。

            <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>

0 个答案:

没有答案