PanelBar and images

2 posts, 0 answers
  1. Alessio
    Alessio avatar
    3 posts
    Member since:
    Apr 2008

    Posted 09 Apr 2008 Link to this post

    Hi to everybody
    I'm new to telerik controls and I've just finish download trial version for evalutating.
    My first question is simple: I create a Form1, add a imagelist (32x32) with some images, a PanelBar and set ImageList property to my ImageList1.
    I create a RadPanelBarGroupElement1 and set the ImageIndex to my image in the ImageList1.
    The Image is shown but "cutted" (top and bottom).
    I searched for something to resize all my RadPanelBarGroupElement but I was not able to find che property.
    I need large images and 16x16 are too small.

    Any suggeestion?


    Alessio Iodice
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 11 Apr 2008 Link to this post

    Hello Alessio,

    To see the whole images, larger than 16x16, you should set an appropriate Padding value to the RadPanelBarGroupElement's CaptionElement:

    foreach (RadPanelBarGroupElement groupElement in radPanelBar1.Items)  
    {  
        groupElement.GetCaptionElement().Padding = new Padding(0, 15, 0, 15);  

    If you need additional assistance, do not hesitate to contact me.

    Kind regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top