public ExpressionBuilder() { InitializeComponent(); DataContext = new ExpressionBuilderVM(this); Owner = ApplicationHelpers.MainWindow; var textBox = this.FindControl <TextBox>("TextBoxInput"); if (textBox != null) { textBox.AttachedToVisualTree += (s, e) => { textBox.Focus(); }; } }
public ExpressionBuilder() { InitializeComponent(); DataContext = new ExpressionBuilderVM(this); Owner = ApplicationHelpers.MainWindow; }