You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Carousel: Unable to Stretch Items Horizontally to Width of Carousel #1364
As the title states, I'm unable to stretch items to full width. The size of each item is determined by the top-most item. This does not work well when using TextBlocks of varying lengths as the Carousel items.
Any ideas?
The carousel itself is apart of a gridview, but I can confirm that the actual carousel control spans the full width of each GridViewItem. It's just that each item in the carousel is only as wide as the top-most item. This same problem is present in a ListView, which is remedied by editing the ItemContainerStyle and setting HorizontalContentAlignment to Stretch. I can't seem to do this in the carousel.
I do not believe that this is a duplicate. The Carousel control will make every item the height and width of the largest item. So if one item has the text "supercalifragilisticexpialidocious" while all others have three letter text then all items will be as big as the one with "supercalifragilisticexpialidocious".
Activity
nmetulev commentedon Aug 1, 2017
ping @Mimetis
Mimetis commentedon Aug 1, 2017
Can you share a simple demo code ?
mjfara commentedon Aug 1, 2017
The carousel itself is apart of a gridview, but I can confirm that the actual carousel control spans the full width of each GridViewItem. It's just that each item in the carousel is only as wide as the top-most item. This same problem is present in a ListView, which is remedied by editing the ItemContainerStyle and setting HorizontalContentAlignment to Stretch. I can't seem to do this in the carousel.
nmetulev commentedon Oct 10, 2017
This is a duplicate of #1233
skendrot commentedon Jan 19, 2018
I do not believe that this is a duplicate. The Carousel control will make every item the height and width of the largest item. So if one item has the text "supercalifragilisticexpialidocious" while all others have three letter text then all items will be as big as the one with "supercalifragilisticexpialidocious".
skendrot commentedon Jan 19, 2018
Example: Change the template in the sample to:
skendrot commentedon Jan 19, 2018
ping @Mimetis
windowstoolkitbot commentedon Feb 3, 2018
This issue seems inactive. Do you need help to complete this issue?
4 remaining items
windowstoolkitbot commentedon Mar 21, 2018
This issue seems inactive. Do you need help to complete this issue?
Kyaa-dost commentedon Feb 5, 2020
@mjfara @Mimetis What's the status of this issue?
Kyaa-dost commentedon Apr 1, 2021
Transferring this issue to the discussion as this has not been updated and requires more clarity.