Interaction logic for QuickMethodToolWindowControl.
Inheritance: System.Windows.Controls.UserControl
Exemplo n.º 1
0
        protected override void OnActivated(EventArgs e)
        {
            base.OnActivated(e);
            QuickMethodToolWindowControl oQuickMethodControl = ((QuickMethodToolWindowControl)this.Content);

            oQuickMethodControl.textBox.Focus();
        }
Exemplo n.º 2
0
        public void OpenDialog()
        {
            WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            QuickMethodToolWindowControl oQuickMethodControl = ((QuickMethodToolWindowControl)this.Content);

            oQuickMethodControl.RefreshContent();
            oQuickMethodControl.textBox.SelectAll();
            oQuickMethodControl.textBox.Focus();
            ShowModal();
        }