Exemple #1
0
 public void SelectFirstRow()
 {
     UIItem.Focus();
     Desktop.Instance.Keyboard.HoldKey(KeyboardInput.SpecialKeys.CONTROL);
     Desktop.Instance.Keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.PAGEUP);
     Desktop.Instance.Keyboard.LeaveKey(KeyboardInput.SpecialKeys.CONTROL);
 }
Exemple #2
0
 public void ScrollUp()
 {
     UIItem.Focus();
     while (UIItem.ScrollBars.Vertical.IsNotMinimum)
     {
         UIItem.ScrollBars.Vertical.SetToMinimum();
     }
 }
Exemple #3
0
 public void ScrollUpWithHotKeys()
 {
     UIItem.Focus();
     Desktop.Instance.Keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.PAGEDOWN);
     Desktop.Instance.Keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.PAGEUP);
     while (UIItem.ScrollBars.Vertical.IsNotMinimum)
     {
         Desktop.Instance.Keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.PAGEUP);
     }
 }