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

Remove Shadow in RibbonTab (DropDown)

2 Answers 196 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Dominik
Top achievements
Rank 1
Dominik asked on 04 Dec 2019, 02:49 PM

Hi

I want to remove the shadow of the ribbontabs if they are drop-downed. Is there a possibility?

I tried the following:

            this.radRibbonBar1.RootElement.EnableBorderHighlight = false;
            this.radRibbonBar1.RootElement.EnableElementShadow = false;
            this.radRibbonBar1.RootElement.EnableFocusBorder = false;
            this.radRibbonBar1.RootElement.EnableFocusBorderAnimation = false;
            this.radRibbonBar1.RootElement.EnableHighlight = false;
            this.radRibbonBar1.RootElement.EnableRippleAnimation = false;

 

Thank you in Advance

 

Kind Regards,

Dominik

2 Answers, 1 is accepted

Sort by
0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 05 Dec 2019, 03:33 PM

Hello Dominik,

The shadow that is drawn right below the pop up when the drop-down is expanded is the default look of the RibbonBarPopup by design. The  RibbonBarPopup uses the CreateParams method which encapsulates the information needed when creating a control. This method indeed is responsible for drawing the shadow below the pop up. After research in general programming forums, I found out in the following thread how this can be prevented:
https://stackoverflow.com/questions/51876605/use-parameter-passed-to-form-constructor-in-createparams-in-winforms-net

The solution that I can suggest is to create custom RadRibbonBar with custom RadRibbonBarElement and RibbonBarPopup. In order to achieve this, you should be able to replace the default pop up with a custom one. This is why I have logged this on our Feedback portal on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik Points.

As to the fix, we will do our best to introduce a fix in the upcoming LIB. Please make sure that you follow this item. Thus, you will get notified once the status has been changed.

For your reference, I have created a sample project with custom pop up. You can find it attached to this thread. Note that you will be able to get this work once the fix is introduced. The following picture demonstrated the achieved result.

I hope this helps information. Should you have any other questions, I will be glad to help.

Regards,
Nadya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Dominik
Top achievements
Rank 1
answered on 12 Dec 2019, 08:43 AM

Hi Nadya,

Thank you very much.

Kind Regards,

Dominik

Tags
RibbonBar
Asked by
Dominik
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Dominik
Top achievements
Rank 1
Share this question
or