In collaboration with Luis Beltrán’s Advent Calendar 2022, today I’ll be teaching you step by step how to implement the TwoPaneView in .NET MAUI! Sometimes we have to adapt our design for foldable devices to give the best user experience, that’s why this is an important topic.
This article will have the following structure:
What is TwoPaneView?
Foldable device support
Inicial setup
Adding a TwoPaneView
Limitations
The TwoPaneView class represents a container with two views that can be next to or below each other, these views adjust to the size and position of the content in the available space on the device.
Foldable devices include Microsoft Surface Duo and Android devices from other manufacturers. This makes it easier to adapt the design to different types of mobile or computer devices while adjusting screen size and orientations on the same device, including adapting to a hinge or crease on the screen.
Initial setupTo implement it in our App, you must apply some steps, which I explain below:
Add from NuGet Package the plugin: Microsoft.Maui.Controls.Foldable

Now that we have the above settings applied, let’s get started with the code implementation of the TwoPaneView! 
The first thing you need is to add the namespace in the XAML!
Understanding the Foldable structure tags

Code implementation
We have some properties that help us organize the positions of each panel on our screen, let’s see each one of them:
Wide: By means of the WideModeConfiguration property the panels are placed horizontally on the screen.
Supported values allow to organice your panels are the follows:
Tall: By means of the TallModeConfiguration property the panels are placed vertically on the screen.
Supported values allow to organice your panels are the follows:
Please note that only one of these modes can be active.
Limitations
If the TwoPaneView is spanned across a hinge or fold the properties when it’s only on one screen have no effect.
Only fits Android foldable devices that introduced the Jetpack Window Manager API provided by Google (such as Microsoft Surface Duo).
On all other platforms and devices, it acts as a responsive and configurable split view that can dynamically display one or two panes, proportionally sized on the screen.
Thanks for reading! 
See you next time! 

Spanish article: https://es.askxammy.com/twopaneview-layout-en-net-maui/