This is a migrated thread and some comments may be shown as answers.

BACKGROUND IMPAGE

1 Answer 18 Views
This is a migrated thread and some comments may be shown as answers.
SURESH
Top achievements
Rank 1
SURESH asked on 03 Sep 2011, 11:26 AM
BACKGROUND IMAGE IS DEFINED TO CAROUSAL. BUT IT IS NOT APPLIED. HOW TO SET BACKGROUND IMAGE FOR A CAROUSAL

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 07 Sep 2011, 06:03 PM
Hi Suresh,

Thank you for writing.

The BackgroundImage property is inherited from Control but it's not actually implemented. You can use the following code snippet to add a background image to RadCarousel:

ImagePrimitive imagePrimitive = new ImagePrimitive();
imagePrimitive.Image = Image.FromFile("filePath");
imagePrimitive.StretchHorizontally = true;
imagePrimitive.StretchVertically = true;
 
this.radCarousel1.CarouselElement.Children.Insert(1, imagePrimitive);

If you have further questions I would be glad to assist.

Best wishes,
Ivan Petrov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Asked by
SURESH
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or