Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Track / Progress / Waiting / Scroll Bars > RadTrackBarElement Back color

Not answered RadTrackBarElement Back color

Feed from this thread
  • Steven avatar

    Posted on Oct 24, 2011 (permalink)

    Hi,

    I have a RadTrackBarElement hosted in a CommandBarHostItem. It displays correctly, and I have configured certain properties such as removing the tickmarks etc. However, I just cannot get the BackColor of the trackbar to take on the colour of the parent item i.e. the CommandBarStrip it is hosted in. The CommandBarHostItem.BackColor is at it's default which appears to be Color.Transparent.

    How do I set the BackColor of the TrackBar so that it actually changes? If I look through VSB, it appears that RadTrackBarElement.BackColor is all that's required, but this doesn't work.

    Cheers,

    Steven

    Reply

  • Ivan Petrov Ivan Petrov admin's avatar

    Posted on Oct 27, 2011 (permalink)

    Hello Steven,

    Thank you for writing.

    The issue with the RadTrackBar back color is a known issue, which we will address in one of our future releases. Until then you can set the back color of the RadTrackBar through the following code:

    TrackBarPrimitive primitive = this.radTrackBar1.TrackBarElement.Children[0] as TrackBarPrimitive;
    primitive.BackColor = Color.Transparent;

    I hope this will help you. If you need further assistance, I would be glad to provide it. Kind regards,
    Ivan Petrov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

    Reply

  • Steven avatar

    Posted on Oct 27, 2011 (permalink)

    Hi, that's perfect thanks, it works as expected.

    Note that I am using the RadTrackBarElement directly, so the .TrackBarElement in the above code can be removed.

    Cheers,

    Steven

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Track / Progress / Waiting / Scroll Bars > RadTrackBarElement Back color
Related resources for "RadTrackBarElement Back color"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]