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