By Daniel Almeida - Monday, February 21, 2011
Hello Friends !!
How do I do to insert a background image on NGalleryItem ??
I try this: item.Label.Style.Background = Image. But it wasn't work !!
Could you help me??
|
By Nevron Support - Tuesday, February 22, 2011
Hi Daniel,
You cannot set an image as background of NGalleryItem. You can only set an Image and ImageSize to the item's Label property. Please, check Thumbnail Preview example from UI examples application that comes with the installation.
|
By Daniel Almeida - Wednesday, February 23, 2011
Hi again !!
Ok, But I'd like put on a gradient effect as background, is it possible to do it with the NGalleryItem?? if yes, how can i do it ? or is there another control to do it?? Because I need the background be diffirent for each item. Please see the image attached !!
|
By Nevron Support - Wednesday, February 23, 2011
Hi Daniel,
You can set gradient as a background to the NGalleryItem but all items in one NGalleryPanel will be with same gradient settings. However, you can change them on different states of the items. You can do that by setting the appropriate values for the NGalleryPanel Palette that hosts the items. Please, take a look at the following code snipped:
nGalleryPanel1.Palette.HighlightLight = Color1; nGalleryPanel1.Palette.HighlightDark = Color2; nGalleryPanel1.Palette.PressedDark = Color3; nGalleryPanel1.Palette.PressedLight = Color4; nGalleryPanel1.Palette.CheckedDark = Color5; nGalleryPanel1.Palette.CheckedLight = Color6;
|
|