TelerikMetroBlue - Hide the green icon.

3 posts, 0 answers
  1. Chris Kirkman
    Chris Kirkman avatar
    37 posts
    Member since:
    Jul 2012

    Posted 05 Sep 2012 Link to this post

    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. Chris Kirkman
    Chris Kirkman avatar
    37 posts
    Member since:
    Jul 2012

    Posted 06 Sep 2012 Link to this post

    OK, seriously, nobody knows how to hide this green icon?  There has got to be a way to do it.
  3. DevCraft banner
  4. Boryana
    Boryana avatar
    330 posts

    Posted 07 Sep 2012 Link to this post

    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: 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,
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top