public AccessTabItem(Screen screen) : base(screen) { var stackPanel = new StackPanel(Screen) { Orientation = Orientation.Vertical, HorizontalAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Stretch }; Content = stackPanel; var titleTextBlock = new TextBlock(Screen) { Text = Strings.BoxWizAccessAccountTitle, ForegroundColor = Color.Yellow, BackgroundColor = Color.Black, ShadowOffset = new Vector2(2) }; stackPanel.Children.Add(titleTextBlock); var messageTextBlock = new TextBlock(Screen) { Text = Strings.BoxWizAccessAccountMessage, TextWrapping = TextWrapping.Wrap, TextHorizontalAlignment = HorizontalAlignment.Left, ForegroundColor = Color.White, BackgroundColor = Color.Black }; stackPanel.Children.Add(messageTextBlock); var separator = ControlUtil.CreateDefaultSeparator(Screen); stackPanel.Children.Add(separator); var buttonPanel = new StackPanel(Screen) { Orientation = Orientation.Vertical, HorizontalAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Bottom }; stackPanel.Children.Add(buttonPanel); var authorizedButton = ControlUtil.CreateDefaultDialogButton(Screen, Strings.AuthorizedButton); authorizedButton.Click += (Control s, ref RoutedEventContext c) => { NextSelected(this, EventArgs.Empty); }; buttonPanel.Children.Add(authorizedButton); var backButton = ControlUtil.CreateDefaultDialogButton(Screen, Strings.BackButton); backButton.Click += (Control s, ref RoutedEventContext c) => { BackSelected(this, EventArgs.Empty); }; buttonPanel.Children.Add(backButton); defaultFocusedButton = authorizedButton; }