Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Buttons, RadioButton, CheckBox, etc > RadButton image size

Not answered RadButton image size

Feed from this thread
  • Bob avatar

    Posted on May 14, 2008 (permalink)

    I have one image that I use in several places...so in the resources for my project it's sized to 128x128.  In a RadButton that I use, I need the image to be 24x24.  How can I accomplish this without having numerous copies of my image at different sizes?

    Reply

  • Martin Vasilev Martin Vasilev admin's avatar

    Posted on May 15, 2008 (permalink)

    Hello Bob,

    Thank you for the question.

    You could set the Image size in RadButton by using the ImagePrimitive properties:

    1. Click on the smart tag of your RadButton and choose "Edit UI elements"
    2. In the Control element structure navigate to ImagePrimitive.
    3. Change MinSize and MaxSize's Height and Width properties to 24
    4. Change ImageLayout to Strech
    Now you should have an image resized to the desired size in your RadButton.

    I hope this helps. If you need additional assistance, do not hesitate to contact me again.

     
    Kind regards,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

    Reply

  • Bob avatar

    Posted on May 15, 2008 (permalink)

    Perfect - thank you!

    Reply

  • Shirya avatar

    Posted on Jul 2, 2009 (permalink)

    Hello,
    I try to do the same with a radDropDownButton, but it does not work.
    How can i make it work?
    Thank you

    --Nevermind, i was changing the radArrowButtonElement Properties

    Reply

  • Martin Vasilev Martin Vasilev admin's avatar

    Posted on Jul 7, 2009 (permalink)

    Hi Shirya,

    Thank you for writing.

    The principle is the same for every RadControl, just navigate to the ImagePrimitive for the desired element and make the same settings as described in my previous message.

    Write me back if you have other questions.

    Greetings,
    Martin Vasilev
    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.

    Reply

  • lena avatar

    Posted on Aug 25, 2011 (permalink)

    Hi
    I cannot find "Edit UI elements" anywhere on my RadButton. Can you help please?
    Thanks
    Lena

    Reply

  • Martin Vasilev Martin Vasilev admin's avatar

    Posted on Aug 29, 2011 (permalink)

    Hello Lena,

    You can find the "Edit UI elements" item in the context menu, which opens at design time through the RadButton's smart tag. Please take a look at the attached image to this message.

    Hope this helps. Let me know if you have any other questions.

    Kind regards,
    Martin Vasilev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Attached files

    Reply

  • Peter Woodward avatar

    Posted on Nov 17, 2011 (permalink)

    Hi Martin,
    This used to work perfectly up until Q3 2011, when the photo was back to large size. I discovered that if, under Image Primitive, you change Layout Autosize to False, it would go back to the right size but... the image is now aligned left and no longer centered.
    I have attached a screen shot from Q2 2011, then Q3 2011.
    What I want is to have it back centered at per Q2 2011.
    Any idea? the original image size is 128 x 128
    Update: (Please ignore the 1st screenshot as it had the wrong section taken for Q2 2011)
    So really from the screenshot, I want to use Q3 2011 to have the same result as Q2 2011.
    Attached files

    Reply

  • Martin Vasilev Martin Vasilev admin's avatar

    Posted on Nov 22, 2011 (permalink)

    Hello Peter Woodward,

    Thank you for writing.

    I would suggest using ImageScalling property and set it to SizeToFit value. This should work for the latest version of RadControls for Winforms. You can find this property in Element Hierarchy Editor, under ImagePrimitive element.

    Hope this helps. Let me know  if you have any additional questions.

    Greetings,
    Martin Vasilev
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Buttons, RadioButton, CheckBox, etc > RadButton image size
Related resources for "RadButton image size"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]