我是一个新手到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;
}我想我需要设置所有权属性,但是不知道怎么做。
有什么建议吗?
发布于 2020-01-21 15:11:00
请随意选择:
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);https://stackoverflow.com/questions/59835615
复制相似问题