В .net Maui есть ли способ перейти на страницу в середине функции и приостановить эту функцию, пока форма не закроется?Android

Форум для тех, кто программирует под Android
Гость
В .net Maui есть ли способ перейти на страницу в середине функции и приостановить эту функцию, пока форма не закроется?

Сообщение Гость »


I am converting a VB.NET(Windows CE) program to a android app using .net Maui. I have come across a line inside a function that I can't seem to find an alternative for on .net Maui.

If frmProd.ShowDialog = Windows.Forms.DialogResult.OK Then Is there a way for me to navigate to a page, pause the function, then once the page has been completed or canceled the function will continue again?

I have tried to show the page before the if statement but the function still continued to move despite passing the code for navigation.

Ideally, what I want it to do is to pause the function until the frmProd(page) has closed and I can get the value that's returned. Is there a way to do this on Maui?


Источник: https://stackoverflow.com/questions/780 ... nction-and

Вернуться в «Android»