border around buttons with images

6 posts, 0 answers
  1. stealthsid
    stealthsid avatar
    21 posts
    Member since:
    Oct 2006

    Posted 22 May 2008 Link to this post

    I have a 16x16 png that I am using as the "Image" property of a RadRepeatButton. The problem is that I cannot easily get rid of the blue border that the RadRepeatButton wishes to use.
  2. stealthsid
    stealthsid avatar
    21 posts
    Member since:
    Oct 2006

    Posted 22 May 2008 Link to this post

    Sorry, a bit more detail, I have the button height/width set to 16x16 since that's how big the PNG file is.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. stealthsid
    stealthsid avatar
    21 posts
    Member since:
    Oct 2006

    Posted 22 May 2008 Link to this post

    Nevermind I appear to have found the answer. Setting the borderPrimitive visibility to collapse using the UI element editor seems to have done the trick.
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 23 May 2008 Link to this post

    Hi stealthsid,

    You are correct. To hide the border, you should set the Visibility property of the BorderPrimitive to Hidden or Collapsed. I am glad to hear you've achieved the appearance you need.

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

    All the best,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Derek
    Derek avatar
    6 posts
    Member since:
    Jun 2013

    Posted 05 Jun 2013 Link to this post

    Could you post the code for that?
  7. Paul
    Admin
    Paul avatar
    60 posts

    Posted 10 Jun 2013 Link to this post

    Hi Derek,

    Thank you for writing.

    The code you would like to see should look like that:
    this.radRepeatButton1.ButtonElement.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    Hope that helps.

    Regards,
    Paul
    Telerik
    RadChart for WinForms is obsolete. Now what?
Back to Top
UI for WinForms is Visual Studio 2017 Ready