[1809] [XAML] [UWP] ContextFlyout>开发机器升级到1809后,MenuFlyout不起作用 [英] [1809][XAML][UWP] ContextFlyout > MenuFlyout Does Not Work After Development Machine Upgraded to 1809

查看:90
本文介绍了[1809] [XAML] [UWP] ContextFlyout>开发机器升级到1809后,MenuFlyout不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个具有ContextFlyouts的UWP应用程序,其中MenuFlyOuts附加到TextBlocks。 昨天,我的开发机器运行1803并且Flyout按预期工作。

I am working on a UWP app that has ContextFlyouts with MenuFlyOuts attached to TextBlocks.  Yesterday, my development machine was running 1803 and the Flyouts worked as expected.

今天早上,我的开发机器收到了1809更新。 更新后,我启动了VS2017 Pro继续处理我的应用程序,Flyouts不再有效。

This morning, my development machine received the 1809 update.  After the update, I launched VS2017 Pro to continue working on my app and the Flyouts no longer worked.

我创建了一个简单的测试应用程序来隔离问题

I created a simple test app to isolate the problem

    <Grid>
        <StackPanel>
            <Border BorderBrush="Green" BorderThickness="5" Width="200" Height="100">
                <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
                    <TextBlock.ContextFlyout>
                        <MenuFlyout x:Name="testFO" Opening="TestFO_Opening">
                            <MenuFlyoutItem Name="Item1" Text="Bob"/>
                            <MenuFlyoutItem Name ="Item2" Text="Jim"/>
                        </MenuFlyout>
                    </TextBlock.ContextFlyout>
                    This is a test
                </TextBlock>
            </Border>
        </StackPanel>
    </Grid>

不显示菜单项。 我试图捕获'Opening'事件,但它永远不会被触发。

The menu items are not displayed.  I attempted to trap the 'Opening' event, but it is never fired.

为了验证这是1809问题,我将项目移动到另一台运行1803的开发机器。 项目按预期运行,捕获'Opening'事件并显示MenuFlyoutItems。

To verify that this was an 1809 problem, I moved the project to another development machine running 1803.  The project ran as expected with the 'Opening' event being captured and the MenuFlyoutItems being displayed.

搜索网络时显示的信息很少。

Searching the web revealed little relevant information.

什么发生在1809年,打破了ContextFlyout或MenuFlyout,如何解决? 

What happened in 1809 that broke ContextFlyout or MenuFlyout and how do I fix it? 

谢谢,



Glen


Glen

推荐答案

我'关于这个问题的测试。我可以在Build 1809中重现这个问题。它在Build 1803和Build 1709中运行良好。我会向团队报告此问题,以验证此行为是否意外。 

I've test about this issue. I could reproduce this issue in Build 1809. It works well in Build 1803 and Build 1709 in my side. I'll report this issue to the team to verify if this behavior is unexpected. 

无论如何,感谢您在此处报告此行为。

Anyway,thank you for reporting this behavior here.

最好的问候,

Roy


这篇关于[1809] [XAML] [UWP] ContextFlyout&gt;开发机器升级到1809后,MenuFlyout不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆