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

PanelBar image transparency does not work in the Q3 release

3 Answers 72 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John Q.
Top achievements
Rank 1
John Q. asked on 15 Jan 2008, 06:37 PM
Hi,

I had used a panelbar with a folder image (open.bmp) with a transparent background with the Q2_2007 release, the folder image transparency worked fine.

After upgrading to the Q3_2007 release, the image transparency doesn't seem to work anymore. Here is what my code looks like now.

this.radPanelBarGroupElement2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.radPanelBarGroupElement2.Image = global::MyApp.Properties.Resources.open;
this.radPanelBarGroupElement2.Text = "Folders";

I added the following line to try to get the PanelBar to recognize the transparent color

((Telerik.WinControls.Primitives.ImagePrimitive)(this.radPanelBarGroupElement2.GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(1).GetChildAt(0))).TransparentColor = System.Drawing.Color.Fuchsia;

I also tried setting the TransparentColor of the ImagePrimitive to 

System.Drawing.Color.Transparent

but that didn't work either. Please let me know how to do this.

Thanks,

John Q.

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 16 Jan 2008, 12:59 PM
Hello John Q.,

Thank you for writing.

Could you try the following:
  1. Create a new imageList component
  2. Add your image there
  3. Set the imageList property of RadPanelBar to this imageList
  4. Set the Transparency BackColor in the ImageList
  5. Set the appropriate ImageIndex to a RadPanelBarGroupElement

If you would like you can take a look at the FistLook example of RadPanelBar which could be found in the Examples project.

If you have more questions do not hesitate and write me back.

Kind regards,

Boyko Markov
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
0
John Q.
Top achievements
Rank 1
answered on 16 Jan 2008, 09:33 PM
Thanks Boyko!

That worked fine.

John Q.
0
Kiril
Telerik team
answered on 17 Jan 2008, 02:02 PM
Hi John Q.,

I'm glad to hear the issue has now been addressed successfully. If you have any other questions, please contact us.

Greetings,
Kiril
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
John Q.
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
John Q.
Top achievements
Rank 1
Kiril
Telerik team
Share this question
or