Background full transparently?

6 posts, 0 answers
  1. Pierre
    Pierre avatar
    15 posts
    Member since:
    Jun 2008

    Posted 27 Dec 2008 Link to this post

    HI @all,

    i use a Win Form with a Backgroundimage - so if i add a new radCarousel control to my form and set up the backgroundimage to "transparent" - i see always a a Gradient over this control. I use the Style Builder and add a new XML - but i dont find a proberty to turn off this functionality?
    Have someone a solutions for me?
    --> done :-) but... i think there is a small problem with the  theme manager. Sometime it works - somtime not. So - i try to find out the basicly problem and post it here.

    and my seceond question: can i use my own button´s to rotate my radCarousel?
    --> done :-) i use the selected Index function. Thanks

    thanks @all
    Markus

    PS: RadControls Q1
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 29 Dec 2008 Link to this post

    Hi Markus,

    Thank you for writing.
    We're glad that you managed to find a solution on your own! We will also appreciate your feedback on Visual Style Builder.

    Sincerely yours,
    Victor
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Marios
    Marios avatar
    6 posts
    Member since:
    Jul 2008

    Posted 29 Sep 2009 Link to this post

    Hi all!

    Can you please tell me how did you set the background to full transparency?

    Marios
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 02 Oct 2009 Link to this post

    Hello Marios,

    Please take a look at the code examples for RadCarousel in our Demo application. Write again if you have other questions.

    Sincerely yours,
    Victor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Marios
    Marios avatar
    6 posts
    Member since:
    Jul 2008

    Posted 18 Oct 2009 Link to this post

    Hallo again.

    I'm sorry but i haven't found anything to make background full transparent.
    Can you please tell me which of your examples has a carousel with full transparency in background so i can check it?

    Marios
  7. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 20 Oct 2009 Link to this post

    Hello Marios,

    First you need to set RadCarousel BackColor property to transparent. Then in order to set the gradient to a solid style you need to do this:
    ((Telerik.WinControls.Primitives.FillPrimitive)(this.radCarousel1.GetChildAt(0).GetChildAt(0))).GradientStyle = Telerik.WinControls.GradientStyles.Solid;

    Basically you are setting the FillPrimitive which is responsible for painting the background in a solid color instead of gradient. Please write again if you have other questions.

    Regards,
    Victor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for WinForms is Visual Studio 2017 Ready