protected override void OnExecute(object param) { //MessageBox.Show("Hurrrrey!!"); CustomSettingsWindow customwin = new CustomSettingsWindow(); customwin.Owner = (Application.Current.MainWindow); customwin.ShowDialog(); customwin.Activate(); }
protected override void OnExecute(object param) { //MessageBox.Show("Hurrrrey!!"); Window1 mainwin = LifetimeService.Instance.Container.Resolve <Window1>();//11Sep2016 CustomSettingsWindow customwin = new CustomSettingsWindow(); //11Sep2016//customwin.Owner=(Application.Current.MainWindow); customwin.Owner = (mainwin);//11Sep2016 customwin.ShowDialog(); //11Jan2018 No Need customwin.Activate(); }