I'm creating UWP Application where I need to show an array of results in a sliding menu. The sliding menu is scrollable and can be slide to change it's height like the search results in Maps Application in windows 10 mobile. I can't find any tutorial to create such an experience.
Thanks in advance
You can use a
UserControl
and UIElement.RenderTransform property to do this.Here is a sample:
UserControl "SlidableControl" xaml:
UserControl "SlidableControl" code behind:
You can see from my code, that I expose the
SlidChild
property, so you can add any other control to this "SlidableControl" for example like this:This is a very early version of control, you can expose some other properties, like control's height.
Here is my demo, you can have a test.
This is the rendering image of my test:
We Are looking to make modify on the behavior of your example in above, we want to change the behavior as the following image (the list should be on the map (blue Section) and the list motion from bottom to top as the image), what we should to change to do it?
Also you can use
UserControl
to do this.XAML:
code behind:
This is a very simple version works on mobile, when it is applied on PC, please change the "height" and "childheight" like this:
And when I say this is a very simple version, because I didn't expose any property of this usercontrol, you can expose the both child property of two
Border
controls as it in my last answer.