My app design wraps a few pages in a navigation page to load into the details page of a master detail view. So far this works really nice. I get a button on the navigation header that lets me open the master menu and I can forward navigate into new pages for the different parts of my app. The menu opens on the main page with a swipe but as soon as I navigate to a page with a map on the swipe to open gesture stops working. I appreciate that I cant really swipe on the map page as the map takes up the full screen but even after I have changed page the swipe to open never comes back.
I done a nuget to get version 1.1.1 before I started so I am not sure if it used to work? Or if what I am doing is supported. I have made a small sample that demonstrates this issue
public class App
{
public static Page GetMainPage()
{
ContentPage content = new ContentPage { Title = "Map" };
//As soon as you add this the swipe gesture stops working.
// content.Content = new Map { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand };
content.Content = new Label { Text = "This works.", VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand };
NavigationPage navigationPage = new NavigationPage(content);
return new MasterDetailPage
{
Title = "Map Example",
Master = new ContentPage { Title = "Menu" },
Detail = navigationPage
};
}
}
Cheers,
Simeon