Carousel: Unable to Stretch Items Horizontally to Width of Carousel #3913
Replies: 12 comments
-
ping @Mimetis |
Beta Was this translation helpful? Give feedback.
-
Can you share a simple demo code ? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
This is a duplicate of #1233 |
Beta Was this translation helpful? Give feedback.
-
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". |
Beta Was this translation helpful? Give feedback.
-
Example: Change the template in the sample to:
|
Beta Was this translation helpful? Give feedback.
-
ping @Mimetis |
Beta Was this translation helpful? Give feedback.
-
This issue seems inactive. Do you need help to complete this issue? |
Beta Was this translation helpful? Give feedback.
-
This issue seems inactive. Do you need help to complete this issue? |
Beta Was this translation helpful? Give feedback.
-
This issue seems inactive. Do you need help to complete this issue? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Transferring this issue to the discussion as this has not been updated and requires more clarity. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions