UWP Horizontal alignment of streaks in a Relativepanel

Asked

Viewed 43 times

0

I’m creating a Hambugermenu similar to the Win10 Apps. The basis of Hambugermenu is SplitView and to distribute their children in the SplitView I chose to use a RelativePanel so I can choose which menu items will be at the top and which will be at the bottom of the menu, just like in App Weather, where the main menu options are at the top and the least important ones at the bottom, such as the settings and user information item. However, I’m not getting that the items at the bottom have the same filling/alignment as the ones above, as can be seen in the image.

inserir a descrição da imagem aqui

I’ve tried a lot of things, I put HorizontalAlignment="Stretch", I made Binding to do the ListView lower use the same size as the ListView from above, but nothing helped. The ListView lower simply ignores any configuration that causes it to increase in a nonfixed way.

Follows the XAML

  • Unless mistaken, this component does the same thing you are trying to do manually: https://github.com/Microsoft/UWPCommunityToolkit | http://docs.uwpcommunitytoolkit.com/en/master/controls/HamburgerMenu/

  • 'Cause it’s got a lot of cool stuff already implemented, but I want to limit the number of dependencies to the maximum.

1 answer

0


I got the answer on MSDN forum. In practice it implements via code-Behind what should work via XAML bindings but doesn’t work. Why the hell, I don’t know.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.