I'm trying to embed a XAML page created with Xamarin.Forms
in my native Xamarin.Mac
application.
How can I achieve that?
I'm trying to embed a XAML page created with Xamarin.Forms
in my native Xamarin.Mac
application.
How can I achieve that?
Check out this guide for embedding XAML in native UI. The approach is very similar to iOS, there is an analogous CreateViewController
extension method available in Xamarin.Mac:
nativeViewController = new MyPage().CreateViewController();
_navigation.PushViewController(nativeViewController, true);