Winjs:翻转视图内的弹出窗口不会保持活动状态 [英] Winjs: A flyout inside a flipview does not stay active
问题描述
我制作了一个翻转视图来在页面之间导航,所以我有一个包含翻转视图和我在翻转视图中引用的许多其他页面的主页面,以便我可以在它们之间导航.
I made a flipview to navigate between pages, so I have a main page that contains the flipview and many other pages that I reference in the flipview so I can navigate between them.
现在我在其中一个子页面中放置了一个非常简单的弹出按钮,无论它有多简单或在哪里我说,它只是不保持打开状态.一旦我点击它,它就会关闭(不仅仅是它应该在外面).
Now I put a very simple flyout in one of the sub-pages and it doesnøt matter how simple it is or where I put it, it just doesn't stay open. It closes as soon as I click on it (and not only outside of it as it should be).
如果我尝试将弹出按钮放在主页上,它会起作用.
If I try and put the flyout in the main page instead it works.
在翻转视图中设置弹出按钮有什么问题吗?
Is there any problem with having a flyout inside a flipview?
推荐答案
这很可能是因为您的浮出控件不是主体的子项.根据文档 http://msdn.microsoft.com/en-us/library/windows/apps/xaml/br211726.aspx 您应该将浮出控件添加为 body 元素的直接子元素."
Most likely this is because your flyout is not a child of the body. According to the documentation http://msdn.microsoft.com/en-us/library/windows/apps/xaml/br211726.aspx "You should add the flyout as a direct child of the body element."
这篇关于Winjs:翻转视图内的弹出窗口不会保持活动状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!