How do I resize the Image of a RadButton at runtime?

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    1 posts
    Member since:
    Jul 2015

    Posted 03 Jul 2015 Link to this post

    I have a from with a number of RadButton elements each of which contains a square Image.

    When the application is maximized I want all of the images to remain square when the elements are resized.

    Can I re-adjust the sizes after the RadButton elements are resized?

    If not, can I lock the aspect ratio of the Images so that resizing the RadButton elements does not distort them?

  2. Stefan
    Stefan avatar
    2891 posts

    Posted 07 Jul 2015 Link to this post

    Hello Kevin,

    Thank you for writing.

    The image scaling is controlled with the following property:

    Another property that controls the image layout is:
    radButton1.ButtonElement.ImagePrimitive.ImageLayout = ImageLayout.Stretch;

    More information on the ImagePrimitive can be found here:

    If you still experience issues, please provide information how are you setting the image and perhaps the image itself and I will do my best to assist you.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top