public Osk() { InitializeComponent(); _gamePadWrapper = new GamePadWrapper(this); TextBox.Text = ""; System.Windows.Controls.Canvas.SetLeft(Caret, 0); if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { return; } Loaded += OnLoaded; }
public Osk(bool simulate) { InitializeComponent(); _gamePadWrapper = new GamePadWrapper(this); TextBox.Text = ""; System.Windows.Controls.Canvas.SetLeft(Caret, 0); if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { return; } Loaded += OnLoaded; _startSize = new Input.Vector2( Width, Height ); _keyboardInputSimulator.SimulatorKeyboard = simulate; }