Windowsストアアプリを作成していますが、PopDialogのテキストボックスに焦点を合わせたいと思います。
GroupName = new TextBox();
GroupName.Width = 400;
GroupName.Height =35;
GroupName.VerticalAlignment = VerticalAlignment.Center;
GroupName.HorizontalAlignment = HorizontalAlignment.Left;
GroupName.Focus(Windows.UI.Xaml.FocusState.Programmatic);
Content.Children.Add(GroupName);
また、ボタンに焦点を合わせる必要があるため、ユーザーがEnterキーを押すと、ボタンがアクティブになります。
Button create = new Button();
create.Content = "Erstellen";
create.Focus(FocusState.Pointer);
create.Click += AddGroup;
Btnpanel.Children.Add(create);