PanelBar image transparency does not work in the Q3 release

4 posts, 0 answers
  1. John Q.
    John Q. avatar
    2 posts
    Member since:
    Jan 2008

    Posted 15 Jan 2008 Link to this post

    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.

  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 16 Jan 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. John Q.
    John Q. avatar
    2 posts
    Member since:
    Jan 2008

    Posted 16 Jan 2008 Link to this post

    Thanks Boyko!

    That worked fine.

    John Q.
  5. Kiril
    Admin
    Kiril avatar
    158 posts

    Posted 17 Jan 2008 Link to this post

    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
Back to Top