Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Carousel > BACKGROUND IMPAGE

Not answered BACKGROUND IMPAGE

Feed from this thread
  • SURESH avatar

    Posted on Sep 3, 2011 (permalink)

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

    Reply

  • Ivan Petrov Ivan Petrov admin's avatar

    Posted on Sep 7, 2011 (permalink)

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

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Carousel > BACKGROUND IMPAGE