After hover over item, backcolor becomes white

I have the backcolor on all the drawer menu items set to silver.  After I hover over them, the backcolor reverts to white.  How can i stop this behavior and return the menu item to it's silver backcolor after hover?

1 Reply

DR Durga Rajan Syncfusion Team May 28, 2018 06:14 AM UTC

Hi Christopher Scholl, 

Thanks for contacting Syncfusion support. 

We have checked your query “BackColor of the drawer item is reset to white after hovering the item” and we suggest you to set the desired color as default color of item using DefaultColor property of DrawerMenuItem, because the backcolor of the item will be updated based on the value of DefaultColor.  Please refer the below code examples,  

           this.drawerMenuItem1.BackColor = System.Drawing.Color.Silver; 
     this.drawerMenuItem1.HoverColor = System.Drawing.Color.White;           
     this.drawerMenuItem1.DefaultColor = System.Drawing.Color.Silver; 

We have prepared sample which tries to meet your requirement. In this sample, we have set desired values to each property, you can change the value based on your requirement. Please download the sample from below location, 


If we have misunderstood your query, please get back to us with more details. This would help us to provide solution at earliest. 

Regards, 
Durga S. 


Loader.
Up arrow icon