BACKGROUND IMPAGE

2 posts, 0 answers
  1. SURESH
    SURESH avatar
    1 posts
    Member since:
    Aug 2011

    Posted 03 Sep 2011 Link to this post

    BACKGROUND IMAGE IS DEFINED TO CAROUSAL. BUT IT IS NOT APPLIED. HOW TO SET BACKGROUND IMAGE FOR A CAROUSAL

  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    682 posts
    Member since:
    Sep 2012

    Posted 07 Sep 2011 Link to this post

    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 >>




Back to Top