RadDropDownButton - Image Issue

3 posts, 0 answers
  1. peter
    peter avatar
    21 posts
    Member since:
    Apr 2009

    Posted 16 Apr 2009 Link to this post

    Hi there,
    I added a RDDB (trial version) to my form with text (allignment: middle centre) and an image (icon, textimagerelation: overlay). All well. But the icon is placed (by default) completely to the left (on the edge) of the buttom. Not nice. So I tweeked it a little (Edit UI Elements). Set the ImagePrimitive location to 20,0. Ah, great, exactly the position of the icon I want on the button! Tthat is, in design view. When I run the form, the icon is back to its old position, at the edge of the button.  
    How to resolve?

    Regards,
    Peter.

  2. peter
    peter avatar
    21 posts
    Member since:
    Apr 2009

    Posted 16 Apr 2009 Link to this post

    A workaround is to set the padding... I thought I tried that before. Apperently not.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 17 Apr 2009 Link to this post

    Hi peter,

    I suppose that you want your image to be center-aligned in the RadDropDownButton. We have the property ImageAlignment which you need in this case. Just set it to MiddleCenter and you will have the image under the text and in the center of the RadDropDownButton.

    If you have additional questions, feel free to contact me.

    Kind regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top