private void SetCursor() { switch (Orientation) { case Orientation.Horizontal: if (_thumb != null) _thumb.Cursor = Cursors.ScrollWE; break; case Orientation.Vertical: if (_thumb != null) _thumb.Cursor = Cursors.ScrollNS; break; } }