因此,我想做的是提示用户是否要更改为其他视频,以进行二次确认。所以我添加了弹出按钮。但是,弹出窗口出现在SecondaryCommands AppBarButton的后面。有没有办法摆在前面?
这是我的代码:
<CommandBar.SecondaryCommands>
<AppBarButton Name="AddImage" Label="Add Image" Click="AddImage_Click" />
<AppBarButton Name="AddVideo" Label="Add Video" Click="AddVideo_Click"/>
<AppBarButton Name="Browse" Label="Browse Videos" >
<Button.Flyout>
<Flyout>
<StackPanel>
<TextBlock Text="You want to change to another video?"/>
<Button Content="Browse video" Click="Browse_Click"/>
</StackPanel>
</Flyout>
</Button.Flyout>
</AppBarButton>
</CommandBar.SecondaryCommands>
<CommandBar.Content>
<TextBlock Name="Status" Text="Video: HoloLens.mp4" Margin="15"/>
</CommandBar.Content>
</CommandBar>
</Page.BottomAppBar>
这就是发生的事情: