Profile Picture

NGalleryItem

Posted By Daniel Almeida 13 Years Ago
Author
Message
Daniel Almeida
questionmark Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 4, Visits: 1
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??

Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 8:46 AM
Posts: 3,054, Visits: 4,012
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.


Best Regards,
Nevron Support Team



Daniel Almeida
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 4, Visits: 1
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 !!




Attachments
image1.png (193 views, 39.00 KB)
Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 8:46 AM
Posts: 3,054, Visits: 4,012
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;


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic