Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有页眉菜单、导航框架和页脚的 Silverlight 页面。在我的标题菜单中,我想放置一个下拉菜单,但是当我打开菜单时,它位于框架后面。
有没有办法提出来?Canvas.ZIndex根本没有区别。
Canvas.ZIndex
为了让这个工作,导航框架必须在一个网格中,该网格是我的菜单所在网格的子网格。
像这样:
网格“FullPageGrid” 网格 菜单东西 网格 导航框架
不知道为什么会这样,但确实如此。
您可以为此目的使用这个免费的开源菜单:
www.sl4popupmenu.codeplex.com
它通过放置在 Popup 控件中将内容置于顶部。
如果您可以稍后在 XAML 中放置下拉菜单,它将出现在上方。
所以你想要这个层次结构:
Grid Grid Your navigation frame Grid The menu