Ejemplo n.º 1
0
        public IWindow CreateChild(object viewModel)
        {
            var cw = new SubWindow();
            cw.Owner = this;
            cw.DataContext = viewModel;
            //WindowAdapter.ConfigureBehavior(cw);

            return cw;
        }
Ejemplo n.º 2
0
        public IWindow CreateChild(object viewModel)
        {
            var cw = new SubWindow();

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

            return(cw);
        }
Ejemplo n.º 3
0
        public virtual IWindow CreateChild(object viewModel)
        {
            var cw = new SubWindow();

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

            return(new WindowAdapter(cw));
        }
Ejemplo n.º 4
0
 private static void ConfigureBehavior(SubWindow cw)
 {
     cw.WindowStartupLocation = WindowStartupLocation.CenterOwner;
     //cw.CommandBindings.Add(new CommandBinding(PresentationCommands.Accept, (sender, e) => cw.DialogResult = true));
 }