Add Next, Previous and GoTo Method for CoverFlow
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user