Ghost1372

everything can be handy

StoreCarousel

A modern, Store-style carousel layout inspired by the Microsoft Store, designed to showcase large hero images with titles, descriptions, and action buttons.

Property

Name
ShuffleDuration
AutoShuffle
PipsPagerVisibility
PrimaryImageSource
SecondaryImageSource
TertiaryImageSource
ItemsSource
UseImageEdgeOverContentColor

Methods

Name
GoToIndex
GoToNext
GoToPrevious

Events

Name
SelectedIndexChanged
ItemClick

StoreCarouselItem

Property

Name
ActionButtonClick
ImageSource
Title
Description
Parameter
ActionButtonText
ShowActionButton

Example

1
2
3
4
5
6
<dev:StoreCarousel AutoShuffle="true"
ItemClick="StoreCarouselSample_ItemClick"
ItemsSource="{x:Bind images, Mode=OneWay}"
PrimaryImageSource="ms-appx:///Assets/Carousel/8.jpg"
SecondaryImageSource="ms-appx:///Assets/Carousel/9.jpg"
TertiaryImageSource="ms-appx:///Assets/Carousel/10.jpg" />
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
public IList<StoreCarouselItem> images = new List<StoreCarouselItem>()
{
new StoreCarouselItem
{
Title ="Wolverine & Deadpool",
Description ="Action-packed mutant duo",
ImageSource="ms-appx:///Assets/Carousel/1.jpg",
},
new StoreCarouselItem
{
Title ="Alien",
Description ="Survival horror in space",
ImageSource="ms-appx:///Assets/Carousel/2.jpg",
},
new StoreCarouselItem
{
Title ="Walking Dead: Dead City",
Description ="Zombies overrun New York",
ImageSource="ms-appx:///Assets/Carousel/3.jpg",
},
new StoreCarouselItem
{
Title ="Inferno",
Description ="Thrilling race against time",
ImageSource="ms-appx:///Assets/Carousel/4.jpg",
},
new StoreCarouselItem
{
Title ="The Forest Song",
Description ="Magical tale of nature and love",
ImageSource="ms-appx:///Assets/Carousel/5.jpg",
},
new StoreCarouselItem
{
Title ="Moana",
Description ="Epic ocean adventure",
ImageSource="ms-appx:///Assets/Carousel/6.jpg",
},
new StoreCarouselItem
{
Title ="Avatar",
Description ="Journey to Pandora",
ImageSource="ms-appx:///Assets/Carousel/7.jpg",
},
};
public StoreCarouselPage()
{
InitializeComponent();

images[0].ActionButtonClick += OnActionButtonClick;
images[1].ActionButtonClick += OnActionButtonClick;
images[2].ActionButtonClick += OnActionButtonClick;
images[3].ActionButtonClick += OnActionButtonClick;
images[4].ActionButtonClick += OnActionButtonClick;
images[5].ActionButtonClick += OnActionButtonClick;
images[6].ActionButtonClick += OnActionButtonClick;
}

private async void OnActionButtonClick(object sender, StoreCarouselEventArgs e)
{
await MessageBox.ShowInfoAsync("Action Button Clicked!");
}

private async void StoreCarouselSample_ItemClick(object sender, StoreCarouselEventArgs e)
{
await MessageBox.ShowInfoAsync("Item Clicked!");
}

StoreCarousel

Demo

you can run demo and see this feature.

0%