示例#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);
 }
示例#2
0
 public void ScrollUp()
 {
     UIItem.Focus();
     while (UIItem.ScrollBars.Vertical.IsNotMinimum)
     {
         UIItem.ScrollBars.Vertical.SetToMinimum();
     }
 }
示例#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);
     }
 }