private void btnChkCred_Click(object sender, System.Windows.RoutedEventArgs e) { Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(AppSettings.Culture); UserControls.MALSettings OP = new UserControls.MALSettings(); var host = new Window(); host.Content = OP; host.Title = Properties.Resources.MAL_CheckCred; host.Width = 475; host.Height = 190; host.WindowStartupLocation = WindowStartupLocation.CenterScreen; OP.Margin = new Thickness(5); host.ResizeMode = ResizeMode.NoResize; host.ShowDialog(); }