如何以调出样式显示按钮弹出型按钮,windows 8 xaml c#?

如何以调出样式显示按钮弹出型按钮,windows 8 xaml c#?,c#,xaml,windows-8.1,C#,Xaml,Windows 8.1,我的windows 8应用程序中有一个信息按钮,当我点击该按钮时,我必须以调出方式显示信息。在silverlight控件中,我找到了调用控件,但如何在Windows8XAMLC#应用程序中实现呢 以下是我的xaml代码: <Button Style="{StaticResource infoButtonStyle}" > <Button.Flyout > <Flyout

我的windows 8应用程序中有一个信息按钮,当我点击该按钮时,我必须以调出方式显示信息。在silverlight控件中,我找到了调用控件,但如何在Windows8XAMLC#应用程序中实现呢

以下是我的xaml代码:

<Button Style="{StaticResource infoButtonStyle}"
                  >
            <Button.Flyout   >
                <Flyout Placement="Right" >
                    <StackPanel >
                        <TextBlock Width="280" Text="This is a detailed description" FontSize="16"
                       FontWeight="SemiLight" FontFamily="Segoe UI" TextWrapping="Wrap"
                       Margin="0,0,0,10"  />

                    </StackPanel>
                    <Flyout.FlyoutPresenterStyle>
                        <Style TargetType="FlyoutPresenter">
                            <Setter Property="ScrollViewer.ZoomMode" Value="Enabled"/>
                            <Setter Property="Background" Value="White"/>
                            <Setter Property="BorderBrush" Value="LightGray"/>
                            <Setter Property="BorderThickness" Value="2"/>
                            <Setter Property="MinHeight" Value="100"/>
                            <Setter Property="MinWidth" Value="300"/>

                        </Style>
                    </Flyout.FlyoutPresenterStyle>
                </Flyout>
            </Button.Flyout>
        </Button>

web上的一些库提供了一个可供使用的“弹出”控件。 winrt与当前代码之间的区别在于,您必须创建一个弹出控件,然后使用“单击”事件或命令绑定在要实现此目的的按钮上打开它

语法将略有不同,但您可以找到大量示例


查看一下Callisto Winrt控件,您将找到您要查找的内容。

您的Win8 xaml将与SL xaml非常相似(如果不完全相同的话)。你尝试了什么?我更新了问题,谢谢