Exemplo n.º 1
0
 private void OnShow(object sender, MessageBoxEventArgs e)
 {
     _Window                       = new MessageBoxWindow();
     _Window.Content               = this;
     _Window.SizeToContent         = SizeToContent.WidthAndHeight;
     _Window.ResizeMode            = ResizeMode.NoResize;
     _Window.WindowStyle           = WindowStyle.None;
     _Window.Title                 = e.Caption;
     _Window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     _Window.ShowInTaskbar         = false;
     _Window.Topmost               = true;
     _Window.ShowDialog();
 }
Exemplo n.º 2
0
 private void OnClose(object sender, MessageBoxEventArgs e)
 {
     _Window.Close();
 }