Ejemplo n.º 1
0
 private void OnShow(object sender, OpenDialogEventArgs e)
 {
     _Window                       = new Window();
     _Window.Content               = this;
     _Window.SizeToContent         = SizeToContent.WidthAndHeight;
     _Window.ResizeMode            = ResizeMode.CanResizeWithGrip;
     _Window.WindowStyle           = WindowStyle.ToolWindow;
     _Window.Title                 = e.Caption;
     _Window.ShowInTaskbar         = false;
     _Window.Topmost               = true;
     _Window.ResizeMode            = ResizeMode.NoResize;
     _Window.Owner                 = e.Owner;
     _Window.WindowStartupLocation = e.StartupLocation;
     _Window.InputBindings.Add(new KeyBinding(ViewModel.OK, Key.Enter, ModifierKeys.None));
     _Window.ShowDialog();
 }
Ejemplo n.º 2
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();
 }
Ejemplo n.º 3
0
 private void OnClose(object sender, OpenDialogEventArgs e)
 {
     _Window.Close();
 }