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

RadPanorama ScrollBar BUG REPORT !!!

2 Answers 52 Views
ScrollBar
This is a migrated thread and some comments may be shown as answers.
Sherlock
Top achievements
Rank 1
Sherlock asked on 12 Nov 2013, 01:54 PM
Hello
I add a RadPanorama on my form.
Then I open the "Element hierarchy editor"
If you pay attention to the left column, you can see two FillPrimitive under RadScrollBarElement.

The bug is because we have two same name here, there is no access to the second FillPrimitive items from code.

For example to changing the Backcolor and BackColor1 and BackColor2 and BackColor3 of ScrollBar, you can change it from hierarchy, but it is not possible to change it via code.

I attached a screenshot of what I explained example.




Also on RadTitleBar, we have same bug.
I mean there is no access to text via code.
For example it is not possible to access text visibility on title bar via code.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Nov 2013, 10:44 AM
Hello Sherlock,

Thank you for contacting Telerik Support.

The FillPrimitive sets the overall background properties that are inherited by the other elements. You can find the entire structure in our Control Element Structure help article. FillPrimitives are designed to be used for pressed state of the scroll bar color and for the normal state. The Zindex of the second FillPrimitive is greater than the first one, that is why it is displayed at run time. You can access it via code using the following example:
FillPrimitive fill = radPanorama1.PanoramaElement.ScrollBar.Children[1] as FillPrimitive;
if (fill!=null)
{
    fill.BackColor = Color.Purple;
}

As to the question about RadTitleBar, you are allowed to modify the text or its visibility as follows:
radTitleBar1.Text = "Sample text";
radTitleBar1.TitleBarElement.TitlePrimitive.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Sherlock
Top achievements
Rank 1
answered on 16 Nov 2013, 08:09 PM
Hello and thanks for your help.

I thought it should be much easier :)

Anyway thanks for help and my problem solved with your kindly help :)
Tags
ScrollBar
Asked by
Sherlock
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Sherlock
Top achievements
Rank 1
Share this question
or