Yes, I am aware there are two questions to this, perhaps a third in asking if I even need to worry about migrating from MasterDetail
at all.
I've been going over my code, migrating some API's and so on.
One issue I have been finding is that MasterDetail
is deprecated. I would like to migrate to FlyOut
but I'm having issues with finding any sort of details how to migrate from one to the other. I would prefer to not rebuild the entire framework of the app, but I was hoping to find some easier method of just wrapping my existing framework into a new one.
One of the things I have been faced with as well is that I want to make a free version of my app. I want to add ads to the pages, and the easiest way to do this would be to create a frame that the pages load into, but has it's own structure. Not that I think it's important, but I've been working with the MTAdMob
plugin (due to it seeming the easiest implemenation), and I have a separate question about ads and free vs paid, but that's for a different thread. possibly tomorrow.
I was imagining that I could do something like
<MasterDetailPage.Master>
<views:MenuPage />
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<NavigationPage>
<x:Arguments>
<views:FrameworkPage/>
</x:Arguments>
</NavigationPage>
</MasterDetailPage.Detail>
Then in the framework page, to have something like
<ContentPage.Content>
<ScrollView>
<StackLayout>
<AdControl />
</StackLayout>
<StackLayout x:Name="DynamicPage">
</ScrollView>
</ContentPage.Content>
I would have to figure out a way to rewiring the NavigationStack to use pointers to the DynamicPage
layout object.
So in summary I guess my questions are mainly,
a) are there any good tutorials on migrating from MasterDetail
to Flyout
?
b) I suppose this is something that would probably be easier to implement in Flyout
but how can I make a generic page container? or do I need to put the ads and purchased vs free logic into each page individually?
Any tips or points in a particular direction are most appreciated!
Cheers!