Repository navigation
Carousel: Unable to Stretch Items Horizontally to Width of Carousel #3913
Replies: 12 comments
|
Can you share a simple demo code ? |
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". |
|
Example: Change the template in the sample to: |
|
This issue seems inactive. Do you need help to complete this issue? |
|
This issue seems inactive. Do you need help to complete this issue? |
|
This issue seems inactive. Do you need help to complete this issue? |
|
Transferring this issue to the discussion as this has not been updated and requires more clarity. |
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?
All reactions