Displaying the Image Alone in a radButton

8 posts, 0 answers
  1. Derek
    Derek avatar
    6 posts
    Member since:
    Jun 2013

    Posted 05 Jun 2013 Link to this post

    Is there a way to have a radButton only display as an image? I have an image that i would like to use as a button alone, but I can't seem to get the radButton borders to go away and the radButton background color to become transparent. 

    Help?

  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 10 Jun 2013 Link to this post

    Hello Derek,

    Thank you for writing.

    Here is how you can hide the border and the fill of the button:
    radButton1.ButtonElement.ShowBorder = false;
    radButton1.ButtonElement.ButtonFillElement.Visibility = ElementVisibility.Collapsed;

    I hope this helps.
     

    Regards,
    Stefan
    Telerik
    RadChart for WinForms is obsolete. Now what?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Trey
    Trey avatar
    35 posts
    Member since:
    Dec 2006

    Posted 12 Jan 2015 in reply to Stefan Link to this post

    What about for radDropDownButton??
  5. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    712 posts

    Posted 15 Jan 2015 Link to this post

    Hello Trey,

    Thank you for writing.

    You could reach the same effect for a RadDropDownButton element by setting the following properties:
    BorderPrimitive borderEl = this.radDropDownButton2.DropDownButtonElement.BorderElement as BorderPrimitive;
    borderEl.ShouldPaint = false;
    this.radDropDownButton1.DropDownButtonElement.ActionButton.ButtonFillElement.Visibility = ElementVisibility.Collapsed;
    this.radDropDownButton1.DropDownButtonElement.ArrowButton.Fill.Visibility = ElementVisibility.Collapsed;

    If you would like to also hide the arrow, you should additionally set the ShowArrow ​property to false.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Sirisha
    Sirisha avatar
    13 posts
    Member since:
    Jun 2013

    Posted 06 Nov 2015 in reply to Hristo Merdjanov Link to this post

    Hi Hristo,

     

    I am trying to  display image ​alonne on RadDropDownButton.

    I am using 2014 Q2 dlls. I don't see DropDownButtonElement property on RadDropDownButton instance mentioned in the earlier reply.

    Could you please help me here?

     

    Regards,

    Sirisha

  7. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    712 posts

    Posted 06 Nov 2015 Link to this post

    Hi Sirisha,

    Thank you for writing.

    The RadDropDownButtonElement is a RadElement descendant and as such is an integral part of how our controls are built, more on TPF: Telerik Presentation Framework

    The element is part of the 2014 version, it, however, cannot be accessed from the properties tab in the designer of Visual Studio. If you would like to perform modifications at design-time, you would need to use our Element Hierarchy Editor. For reference, I am also sending you a screenshot.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    Telerik
    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
  8. Sirisha
    Sirisha avatar
    13 posts
    Member since:
    Jun 2013

    Posted 08 Nov 2015 Link to this post

    Hi Hristo,

     

    I am referring to WPF telerik DropDownButton contrrol. Is Hierarchy Editor available for these controls also?

     

    Regards,

    Sirisha

  9. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    712 posts

    Posted 10 Nov 2015 Link to this post

    Hello Sirisha,

    Thank you for writing back.

    This forum thread considers Telerik UI for WinForms, please either post your question to the UI for WPF forum or open up a support ticket specifying UI for WPF as your product.

    Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    Telerik
    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready