Skip to content

Commit f6ff682

Browse files
committed
Add Next, Previous and GoTo Method for CoverFlow
1 parent 910d55d commit f6ff682

File tree

1 file changed

+15
-0
lines changed
  • src/Shared/HandyControl_Shared/Controls/Cover/CoverFlow

1 file changed

+15
-0
lines changed

src/Shared/HandyControl_Shared/Controls/Cover/CoverFlow/CoverFlow.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,21 @@ public void AddRange(IEnumerable<object> contentList)
186186
/// </summary>
187187
public void JumpTo(int index) => _jumpToIndex = index;
188188

189+
public void Next()
190+
{
191+
PageIndex = PageIndex + 1;
192+
}
193+
194+
public void Previous()
195+
{
196+
PageIndex = PageIndex - 1;
197+
}
198+
199+
public void GoTo(int index)
200+
{
201+
PageIndex = index;
202+
}
203+
189204
protected override void OnMouseWheel(MouseWheelEventArgs e)
190205
{
191206
base.OnMouseWheel(e);

0 commit comments

Comments
 (0)