Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
How to set the image size of galleryitem?
posted

GalleryTool tends to display images in their real dimensions, but sometimes not all images are equal. Is there a possibility of setting one size for all e.g. 50x50?

Parents
No Data
Reply
  • 9694
    posted

    One way to solve this would be to set the Width and Height for the image assigned to the GalleryItem. With WPF styles, you could apply a Style which sets the Width and Height for all images in the GalleryTool. You could define the Style in the GalleryTool.Resources to limit the scope of such a style.

    If you would like a sample of a style like this in XAML, C# or VB.Net, let me know which language you prefer.

    Thanks,

Children