Show View of Type Popup

Ronald Rex 1,666 Reputation points
2023-04-03T16:15:27.18+00:00

Hi Friends I have a requirement to show a View of Type Popup using code in my view model. I was wondering what is the best practice for this requirement. TIA !!!

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,959 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,348 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alessandro Caliaro 4,181 Reputation points
    2023-04-03T16:20:45.8166667+00:00

    I think this is the best choice:

    https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/popup

    then you can use

              var popup = new AppuntamentoPopupPage(cliente, date, ambiti, tipologiaVisitaWithCustomer, tipologiaVisitaWithoutCustomer, utenti, statoVisitaWithCustomer, appuntamentoRicercaItem);
                var ret = await Application.Current.MainPage.ShowPopupAsync(popup);
      
    

0 additional answers

Sort by: Most helpful