xamarin.forms - How to open a popup on click of button placed in menu page in master detail page in xamarin forms? -


i working on xamarin.forms. using master detail page. in menupage of masterdetailpage have menu items listed. @ bottom of menu list placed button on menu page. need open popup on click of button. trying popuplayout not able success.

please tell me how can open custom popup box @ click of button placed in menu page?

regards, anand dubey

without going separate, native projects platforms targeting (such android, ios, uwp...), cannot pop out custom ui content on existing pages in xamarin.forms out of box. need bring in additional references or creative absolutelayout control. here few options have:

simple popup message , or option selection

if need simple popup message or list of buttons, should native displayalert , displayactionsheet methods. built xamarin.forms , work these simple cases.

more complex popup dialogs

for more complex that, there excellent userdialogs project: acr userdialogs github page give support various loading dialogs, date, time pickers, action sheet, success/info/error toasts , more.

fully custom ui markup absolutelayout

there technique prepare underlying page root absoltue layout, enables dynamically add new ui on top of other controls on page. fiddly , can ruin performance if not careful. approach popuplayout control mentioned uses. if done properly, can solution, don't recommend involves additional complexity on each page hosts popup content.

fully custom ui popup on native projects

your flexible option, always, fall native projects. involve coding popup logic on each separate platform targeting, using dependencyservice (or 1 of other techniques) call shared project. should @ samples , tutorials popups on separate native platforms gets pretty broad , goes way outside topic of question.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -