wp7 でポップアップ ウィンドウを利用する UserControl があります。ユーザー コントロールには、入力用のテキスト ボックスと送信ボタンがあります。私の問題は、ポップアップが表示されるとコードが停止しないことです。コードを続行し、ユーザーが送信を押すのを待ちません。
「OK」ボタンのあるメッセージ ボックスのように、コードを「停止」させるための良い方法は何ですか?
//my custom popup control
InputBox.Show("New Highscore!", "Enter your name!", "Submit");
string name = InputBox.GetInput();
//it does not wait for the user to input any data at this point, and continues to the next piece of code
if (name != "")
{
//some code
}