コード例 #1
0
        public override void Perform()
        {
            TreeViewTest.Focus();
            int count = TreeViewTest.Items.Count;

            if (count > 1)
            {
                ((TreeViewItem)TreeViewTest.Items[(ItemIndex % count)]).IsSelected = true;
            }
        }
コード例 #2
0
        public override void Perform()
        {
            int count = 0;

            TreeViewTest.Focus();
            count = TreeViewTest.Items.Count;
            if (count > 1)
            {
                ((TreeViewItem)TreeViewTest.Items[(ItemIndex % count)]).IsSelected = true;
                ((TreeViewItem)TreeViewTest.Items[(ItemIndex % count)]).ExpandSubtree();
            }
        }
コード例 #3
0
 public override void Perform()
 {
     TreeViewTest.Focus();
     HomelessTestHelpers.KeyPress(System.Windows.Input.Key.Multiply);
 }