MobileEssentials / FormsPlayer

Xamarin Forms Player Demo
MIT License
79 stars 24 forks source link

Added support for any root element type and Custom App.MainPage #3

Closed AntRemo closed 9 years ago

AntRemo commented 9 years ago

Added support of any XAML Root type, as long as the type is included in the player's host app.

Extracted out a public SetPage(page) method to update MainPage property. This method can be called by the host app and can be passed any type deriving from NavigationPage. This is useful when designing pages that have a Nav bar at the top.

Example Usage: var navigationPage = new CustomNavigationPage(); ((App)App.Current).SetPage(NavigationPage);

Please let me know if you have any questions or concerns.

Thanks

AntRemo commented 9 years ago

Any chance this feature will be merged?

Thanks :)