OnNavigatedTo For ContentView

Jassim Al Rahma 1,556 Reputation points
2022-10-01T23:31:22.203+00:00

Hi,

What is the alternative to OnNavigatedTo in the ContentView?

Thanks,
Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,225 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,381 Reputation points Microsoft Vendor
    2022-10-04T02:11:32.867+00:00

    Hello,

    Page.OnNavigatedTo(NavigationEventArgs) Method will be invoked when the Page is loaded in Windows App SDK.

    You could try Page.OnAppearing Method in MAUI:

     protected override void OnAppearing()  
        {  
            base.OnAppearing();  
      }  
    

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.