A question about TileViewControl and Gallery Control
Hi,
mainly I have two questions.
- I want to use the Gallery Control and add items to wo groups and created during design via code. I do not find much about the Gallery Control (also on the WPF Product page) so I am unsure, whether the Gallery Control will be available in the future ? Would it ? If yes, are a sample available how to add items with an image into the gallery control via c# code ?
- If the Gallery will not available in tne future I am thinking about using the tileview control. I then also want to add items to the tileview control with an image via code. Is there also a c# sample available.
Thanks and regards
Uwe
SIGN IN To post a reply.
5 Replies
1 reply marked as answer
SN
Sudharsan Narayanan
Syncfusion Team
July 26, 2021 01:47 PM UTC
Hi Uwe,
Thanks for contacting Syncfusion Support,
Query 1: how to add items with an image into the gallery control via c# code
We have prepared the sample to achieve the requirement in Gallery Control. Please find the sample from the below location,
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/GalleryItem978853449
Query 2: how to add items with an image into the TileView control via c# code
We have prepared the sample to achieve the requirement in the TileView Control. Please find the sample and documentation from the below location,
Sample: https://www.syncfusion.com/downloads/support/forum/167571/ze/TileViewImage1660632580
Documentation: https://help.syncfusion.com/wpf/tile-view/getting-started
Regards,
SudharsanThanks for contacting Syncfusion Support,
Query 1: how to add items with an image into the gallery control via c# code
We have prepared the sample to achieve the requirement in Gallery Control. Please find the sample from the below location,
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/GalleryItem978853449
Query 2: how to add items with an image into the TileView control via c# code
We have prepared the sample to achieve the requirement in the TileView Control. Please find the sample and documentation from the below location,
Sample: https://www.syncfusion.com/downloads/support/forum/167571/ze/TileViewImage1660632580
Documentation: https://help.syncfusion.com/wpf/tile-view/getting-started
Regards,
UP
Uwe Porsch
July 26, 2021 02:25 PM UTC
Thanks Sudharsan,
I check the sample,
but for me it is unclear how I get an image into the gallery item.
Thanks and regards
Uwe
VR
Vijayalakshmi Roopkumar
Syncfusion Team
July 27, 2021 09:52 AM UTC
Hi Uwe
Thank you for your update.
We have prepared the sample to add Image in GalleryItem control. You can add the image for GalleryItem by setting it in Content property of GalleryItem as shown in following code:
Code:[C#]
|
GalleryItem GItem = new GalleryItem();
GItem.Caption = "Visual Studio 2019";
GItem.Description = "Visual Studio 2019 Succinctly describes what's new in VS2019 from the point of view of the IDE. It covers the improved installation experience, new productivity features for managing projects.";
Image img = new Image();
img.Height = 20;
img.Width = 100;
img.Source = new BitmapImage(new Uri("pack://application:,,,/Nuget.jpg", UriKind.RelativeOrAbsolute));
//Adding image to content of GalleryItem.
GItem.Content = img;
|
Screenshot
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/GalleryItemImage_csharp-222061456
Please try this solution and let us know if you need any other assistance on this.
Regards,
Vijayalakshmi VR
Marked as answer
UP
Uwe Porsch
July 27, 2021 02:06 PM UTC
Thanks alot.
VR
Vijayalakshmi Roopkumar
Syncfusion Team
July 28, 2021 04:18 AM UTC
Hi Uwe
We are glad that our solution helps to meet your requirement.
Please get back us, if you need any further assistance on this.
Regards.
Vijayalakshmi VR
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
- Marked answer
-
UP Uwe Porsch
- Jul 25, 2021 03:15 PM UTC
- Jul 28, 2021 04:18 AM UTC