changing ribbongalleryimages from landscape to portrait

Ribbon for WPF Forum

Posted 15 years ago by Roel Alblas

I like to change the images in the ribbongallery and popupgallery from landscape to portrait and vica versa. I like to do this on content change and add items. Also I like to have portrait and landscape together in ribbongallery and popupgallery.

Is this possible and so yes, can you tell me how?



Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA

In your template for your items, I would recommend making it square and then having your Images uniform stretch to fill. This way regardless of whether you have portrait or landscape images, they will show up in the item's bounds (but with horizontal or vertical blank areas on the edges based on the orientation) and all items will have the same size.

Actipro Software Support

Posted 15 years ago by Roel Alblas
Solved, thanks!

[Modified at 07/11/2009 09:23 AM]
The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.