Remove Background gradient from the StartButtonImage

6 posts, 1 answers
  1. Darko
    Darko avatar
    14 posts
    Member since:
    Sep 2008

    Posted 02 Nov 2011 Link to this post

    Hi,

    I attached an image of the top left corner of my app. I have a round image which i use as StartButtonImage.
    However, the background is disturbing me. How can i remove it?

    Best regards,
    Darko
  2. Answer
    Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 07 Nov 2011 Link to this post

    Hello Darko,

    Thank you for writing and for the attached screen shot.

    You can hide the button fill and border by using the following two lines of code:

    this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ActionButton.ButtonFillElement.Visibility = ElementVisibility.Hidden;
    this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ActionButton.BorderElement.Visibility = ElementVisibility.Hidden;

    I hope this will help you. If you have other questions, feel free to write back. Greetings,
    Ivan Petrov
    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.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Darko
    Darko avatar
    14 posts
    Member since:
    Sep 2008

    Posted 07 Nov 2011 Link to this post

    thanks a lot.
    exactly what i was looking for.
    just edit the first code line and complete the word Hidden.

    best regards,
    Darko
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 07 Nov 2011 Link to this post

    Hello Darko,

    We are glad to hear that you have found the answer of my colleague Ivan helpful. I have corrected the misspelled word "Hidden" in the code snippet. Thank you for pointing this out.

    Greetings,
    Nikolay
    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.

  6. Afraei
    Afraei avatar
    18 posts
    Member since:
    Jun 2012

    Posted 12 Jan 2013 Link to this post

    Thank you for your help.

    Where and in which file should I put those two lines of codes?

    Regards
  7. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 16 Jan 2013 Link to this post

    Hi Afraei,

    Thank you for writing.

    You can put this code anywhere after the actual RadRibbonBar is created or initialized. If the ribbon is added through VS designer to a form you can execute these lines anywhere after the form IitializeComponents call in the constructor. If you add the ribbon through code you can execute this code after you create an instance of RadRibbonBar.

    I hope this is useful. Feel free to write back with any further questions.

    Regards,
    Ivan Petrov
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top
UI for WinForms is Visual Studio 2017 Ready