public virtual IWindow CreateChild(object viewModel)
        {
            var cw = new ContentWindow();
            cw.Owner = this.wpfWindow;
            cw.DataContext = viewModel;
            WindowAdapter.ConfigureBehavior(cw);

            return new WindowAdapter(cw);
        }
        public virtual IWindow CreateChild(object viewModel)
        {
            var cw = new ContentWindow();

            cw.Owner       = this.wpfWindow;
            cw.DataContext = viewModel;
            WindowAdapter.ConfigureBehavior(cw);

            return(new WindowAdapter(cw));
        }
 private static void ConfigureBehavior(ContentWindow cw)
 {
     cw.WindowStartupLocation = WindowStartupLocation.CenterOwner;
     cw.CommandBindings.Add(new CommandBinding(PresentationCommands.Accept, (sender, e) => cw.DialogResult = true));
 }
 private static void ConfigureBehavior(ContentWindow cw)
 {
     cw.WindowStartupLocation = WindowStartupLocation.CenterOwner;
     cw.CommandBindings.Add(new CommandBinding(PresentationCommands.Accept, (sender, e) => cw.DialogResult = true));
 }