消息框所有者设置

问题描述 投票:0回答:1

我是WPF的新手,我创建了一个聊天应用程序,现在我需要显示类似this的消息框,但是我的问题是,当用户从我的应用程序中单击时,该应用程序进入后台但打开了弹出窗口在this

等前台打开

使用的代码是::

 if (string.IsNullOrEmpty(EmailId))
 {
    BusyIndication = Visibility.Hidden;
    CustomMessageBox.Show("Email ID should not be empty", "Email ID", MessageBoxButton.OK);
    LoginView.SignInButton.IsEnabled = true;
 }

我认为我需要设置所有权属性,但不知道该怎么做。

任何建议?

c# wpf messagebox
1个回答
0
投票

请选择:

© www.soinside.com 2019 - 2024. All rights reserved.