This is a migrated thread and some comments may be shown as answers.

Remove Background gradient from the StartButtonImage

5 Answers 98 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Darko
Top achievements
Rank 1
Darko asked on 02 Nov 2011, 07:16 PM
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

5 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Petrov
Telerik team
answered on 07 Nov 2011, 09:44 AM
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.

0
Darko
Top achievements
Rank 1
answered on 07 Nov 2011, 12:16 PM
thanks a lot.
exactly what i was looking for.
just edit the first code line and complete the word Hidden.

best regards,
Darko
0
Nikolay
Telerik team
answered on 07 Nov 2011, 12:26 PM
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.

0
Afraei
Top achievements
Rank 1
answered on 12 Jan 2013, 11:11 AM
Thank you for your help.

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

Regards
0
Ivan Petrov
Telerik team
answered on 16 Jan 2013, 12:00 PM
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.
Tags
RibbonBar
Asked by
Darko
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Darko
Top achievements
Rank 1
Nikolay
Telerik team
Afraei
Top achievements
Rank 1
Share this question
or