nature_net.user_controls.window_content.comment_textbox_GotKeyboardFocus C# (CSharp) Метод

comment_textbox_GotKeyboardFocus() публичный Метод

public comment_textbox_GotKeyboardFocus ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Результат void
        void comment_textbox_GotKeyboardFocus(object sender, RoutedEventArgs e)
        {
            virtual_keyboard.ShowKeyboard(this, ref keyboard);
            keyboard.parent_frame = keyboard_frame;
            if (keyboard.init_text_checker == null) keyboard.init_text_checker = new InitialTextCheck(this.CheckInitialText);
            keyboard_frame.Visibility = System.Windows.Visibility.Visible;
            CheckInitialText();
            if (keyboard != null)
            {
                if (this.keyboard_frame.Content == null)
                {
                    this.keyboard_frame.Content = keyboard;
                    //this.keyboard.Background = new SolidColorBrush(Colors.White);
                    this.keyboard_frame.Background = new SolidColorBrush(Colors.White);
                    window_manager.main_canvas.Children.Add(keyboard_frame);
                }
                keyboard.MoveAlongWith(parent, center_keyboard);
            }
        }