コード例 #1
0
        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();
                };
            }
        }
コード例 #2
0
 public ExpressionBuilder()
 {
     InitializeComponent();
     DataContext = new ExpressionBuilderVM(this);
     Owner       = ApplicationHelpers.MainWindow;
 }