Add Next, Previous and GoTo Method for CoverFlow

This commit is contained in:
Mahdi Hosseini committed 2021-09-01 21:22:28 +04:30
1 parent 910d55d6d8
commit f6ff682bde
1 file changed
+15
@@ -186,6 +186,21 @@ namespace HandyControl.Controls
/// </summary>
public void JumpTo(int index) => _jumpToIndex = index;
public void Next()
{
PageIndex = PageIndex + 1;
}
public void Previous()
{
PageIndex = PageIndex - 1;
}
public void GoTo(int index)
{
PageIndex = index;
}
protected override void OnMouseWheel(MouseWheelEventArgs e)
{
base.OnMouseWheel(e);