Hi I am using a GalleryTool to which I have added some items. The problem is that when I give a very long name of some gallery item than when the items are visible in Gallery preview area the name of the items are centered and not fully shown. Please see the attached sample.
Hi Marianne,
If I run the provided sample (without making any modification) the text for third gallery Item in the gallery preview is displayed as 'Unmistakably Large YYYYY....' whereas its text is 'BlackAndWhite Unmistakably LargeYYYYY....'.
Hi,
I was wondering if the sample was helpful. Please let me know if you have any further questions.
I'm not clear whether you compared the style that you provided originally to the modifications to that style that I supplied in the last sample. If you use either my modification of your style or the base style for the GalleryItemPresenter, I don't see the behavior you describe. The text is wrapping, where necessary, but the wrapped text is visible from the top.
Perhaps you have made some other modification. Please modify my sample and return it with your modifications if it does not satisfy your needs.
Thanks for the reply.In the provided sample without using the customizations I have made and using the default GalleryItemPresenter style with modifications, If we make the text of the Item a bit longer than the item text is still centered vertically and not showing from the beginning.
You may have noticed in the last sample that I sent you a copy of the GalleryItemPresenter style that I copied from our default styles. By eliminating the TextBlock's Visibility binding from that style and adding the TextWrapping and MaxWIdth properties from your style, I am able to show your preview item text as you would expect, not centered vertically but showing the item text from the beginning.
You eliminated a lot of the styling in your customization and it appears that is the cause of the behavior you are seeing.
I just commented out the references to your style so you can assign then to either Ribbon and see the impact.
Let me know if you have any other questions.