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

TelerikMetroBlue - Hide the green icon.

2 Answers 120 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Chris Kirkman
Top achievements
Rank 1
Chris Kirkman asked on 05 Sep 2012, 06:36 PM
How is this done?  Can't I just buy a product that doesn't explicitly try to sell itself to everyone who sees it?

2 Answers, 1 is accepted

Sort by
0
Chris Kirkman
Top achievements
Rank 1
answered on 06 Sep 2012, 04:30 PM
OK, seriously, nobody knows how to hide this green icon?  There has got to be a way to do it.
0
Boryana
Telerik team
answered on 07 Sep 2012, 01:49 PM
Hello Chris Kirkman,

Thank you for contacting us.

Both TelerikMetro and TelerikMetroBlue themes use the BackgroundShape property of the ActionButton's FillPrimitive to style the application button. In this sense, the green rectangle and the Telerik logo are inseparable through code. I have logged this issue to our Public Issue Tracker under ID 12586. To subscribe for its status update please follow this link: http://www.telerik.com/support/pits.aspx#/public/winforms/12586. We will resolve this issue in a future release. Your Telerik points have been updated.

Until the issue is resolved please use one of the following:

1. The attached sample project contains a version of the TelerikMetroBlue theme in which the ApplicationButton is only a green rectangle without the Telerik logo. 

2. Use the following code to remove the BackgroundShape and set appropriate border and fill colors:
//Remove the BackgroundShape setting
this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ActionButton.ButtonFillElement.BackgroundShape = null;
//Set button's fill
this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ActionButton.ButtonFillElement.BackColor = Color.Orange;
this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ActionButton.ButtonFillElement.GradientStyle = GradientStyles.Solid;
//Set button's border
this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ActionButton.BorderElement.Visibility = ElementVisibility.Visible;
this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ActionButton.BorderElement.ForeColor = Color.Orange;
this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ActionButton.BorderElement.GradientStyle = GradientStyles.Solid;
//Set button's image
this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ActionButton.Image = Properties.Resources.Weather;

I hope my answer is helpful. Let me know if you have any further queries. I will do my best to assist you.

All the best,
Boryana
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Themes and Visual Style Builder
Asked by
Chris Kirkman
Top achievements
Rank 1
Answers by
Chris Kirkman
Top achievements
Rank 1
Boryana
Telerik team
Share this question
or