MAUI Blazor access methods of host page (MainPage.xaml)

Viewed 88

Digging into MAUI Blazor and trying to see if its possible to call methods of the host page of the BlazorWebView. (Like MainPage.xaml.cs)

We can call App.Current.MainPage.DisplayAlert so would it be possible to call something like App.Current.MainPage.MyMethod?

however creating a public method in the MainPage does not expose it like highlighted above.

I understand I can create a class and reference, but in this particular use case scenario I need to see if the above is possible. So far have found no documentation on it.

0 Answers
Related