public override void Perform() { TreeViewTest.Focus(); int count = TreeViewTest.Items.Count; if (count > 1) { ((TreeViewItem)TreeViewTest.Items[(ItemIndex % count)]).IsSelected = true; } }
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(); } }
public override void Perform() { TreeViewTest.Focus(); HomelessTestHelpers.KeyPress(System.Windows.Input.Key.Multiply); }