Skip to content

Commit a3fe79f

Browse files
committed
Update StoreCarousel.cs
1 parent da89a81 commit a3fe79f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dev/DevWinUI.Controls/Controls/Composition/StoreCarousel/StoreCarousel.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,15 @@ private void GoToNextPrev(bool isNext)
353353
pipsPager.SelectedPageIndex = newIndex;
354354
}
355355

356+
public void GoToNext()
357+
{
358+
GoToNextPrev(true);
359+
}
360+
public void GoToPrevious()
361+
{
362+
GoToNextPrev(false);
363+
}
364+
356365
public void GoToIndex(int index)
357366
{
358367
if (imageList.Count < 1) return;
@@ -433,7 +442,7 @@ private LinearGradientBrush CreateLinearGradiantBrush(Color color)
433442
return brush;
434443
}
435444

436-
public void RunTextAnimation()
445+
private void RunTextAnimation()
437446
{
438447
if (actionPanel.RenderTransform is not CompositeTransform transform)
439448
{

0 commit comments

Comments
 (0)