Example #1
0
        protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
        {
            base.OnMouseDoubleClick(e);
            ExtTreeNode node = e.Source as ExtTreeNode;

            if (node != null)
            {
                node.ActivateItem();
                node.SetEditMode();
            }
        }
Example #2
0
        protected override void OnKeyDown(System.Windows.Input.KeyEventArgs e)
        {
            base.OnKeyDown(e);
            if (e.Key == Key.Enter)
            {
                ExtTreeNode node = SelectedItem as ExtTreeNode;
                if (node != null)
                {
                    node.ActivateItem();
                }
            }

            if (e.Key == Key.F2)
            {
                ExtTreeNode node = SelectedItem as ExtTreeNode;
                if (node != null)
                {
                    node.SetEditMode();
                }
            }
        }