UWP 汉堡导航窗格底部的菜单按钮 [英] Menu button at the bottom UWP Hamburger Navigation pane

查看:36
本文介绍了UWP 汉堡导航窗格底部的菜单按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 SplitView.Pane 为我的 UWP 应用构建构建一个汉堡菜单.按钮"是列表框中的列表框项.有没有办法使设置图标位于 SplitView.Pane 的底部,就像在本机 Windows 新应用程序中一样...谢谢

I am currently building a hamburger menu for my UWP app build using SplitView.Pane. The "Buttons" are listBoxItems in a listBox. Is there a way to make the setting icon be located at the bottom of the SplitView.Pane like in the native windows new App...Thanks

推荐答案

在一个 RelativePanel 中使用 2 个 ListBox.在向下列表框中设置 RelativePanel.AlignBottomWithPanel="True" 并且当从第一个列表框中选择项目时为另一个列表框设置 selectedIndex=-1

use 2 ListBox inside a RelativePanel. in down listbox set RelativePanel.AlignBottomWithPanel="True" and when select item from the fist listbox set the selectedIndex=-1 for the other listBox

<SplitView.Pane>
<RelativePanel>
  <ListBox x:Name="UpperListBox">
     <ListBoxItem .....
  </ListBox>
  <ListBox x:Name="DownListBox" RelativePanel.AlignBottomWithPanel="True">
      <ListBoxItem .....
  </ListBox>
</RelativePanel>

这篇关于UWP 汉堡导航窗格底部的菜单按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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