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