コード例 #1
0
 private void OnShow(object sender, OpenDialogEventArgs e)
 {
     _Window                       = new Window();
     _Window.Content               = this;
     _Window.SizeToContent         = SizeToContent.Manual;
     _Window.ResizeMode            = ResizeMode.CanResizeWithGrip;
     _Window.WindowStyle           = WindowStyle.ToolWindow;
     _Window.Title                 = e.Caption;
     _Window.ShowInTaskbar         = false;
     _Window.Topmost               = true;
     _Window.Height                = 420;
     _Window.Width                 = 700;
     _Window.Owner                 = e.Owner;
     _Window.WindowStartupLocation = e.StartupLocation;
     _Window.ShowDialog();
 }
コード例 #2
0
 private void OnClose(object sender, OpenDialogEventArgs e)
 {
     _Window.Close();
 }