Forum Xamarin.Mac


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Refresh a view from AppDelegate class

jaymannjaymann Member ✭✭


I read in this forum that for Xamarin iOS it is possible to access the visible view controller from the AppDelegate .

I need to refresh the view from the AppDelegate class. Is it possible to accomplish something similar for Mac?

This is how its done for iOS:

var window= UIApplication.SharedApplication.KeyWindow;
var vc = window.RootViewController;
if (vc.PresentedViewController != null) {
    vc = vc.PresentedViewController;
Sign In or Register to comment.