void CW_Loaded(object sender, RoutedEventArgs e) { Dispatcher.BeginInvoke(new Action(() => { CreateButton.Focus(); })); }