首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >消息框OwnerShip设置

消息框OwnerShip设置
EN

Stack Overflow用户
提问于 2020-01-21 14:54:23
回答 1查看 70关注 0票数 0

我是一个新手到WPF,我已经创建了一个聊天应用程序,现在我需要显示像this这样的消息框,但我的问题是,当用户单击我的应用程序时,应用程序转到后台,但打开的弹出窗口像this一样在前台打开

使用的代码是::

代码语言:javascript
复制
 if (string.IsNullOrEmpty(EmailId))
 {
    BusyIndication = Visibility.Hidden;
    CustomMessageBox.Show("Email ID should not be empty", "Email ID", MessageBoxButton.OK);
    LoginView.SignInButton.IsEnabled = true;
 }

我想我需要设置所有权属性,但是不知道怎么做。

有什么建议吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-01-21 15:11:00

请随意选择:

代码语言:javascript
复制
Show(Window owner, string messageBoxText);
Show(Window owner, string messageBoxText, string caption);
Show(Window owner, string messageBoxText, string caption, MessageBoxButton button);
Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon);
Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult);
Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options);
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59835615

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档