How do I set the background color of the Document area?

Hi,

The title really says it all. Consider this:

DockingManagerBG (Small).png
The middle area is the documents docking area. I want it a dark color.

Can you help?

thanks

Steve


3 Replies 1 reply marked as answer

SN Sudharsan Narayanan Syncfusion Team January 24, 2022 02:44 PM UTC

Hi Steve,

You can be able to achieve the Need to change the color of the MdiClient in DockingManager” requirement by getting the MdiClient in the Form and assigning the required color to the BackColor property as shown in below code snippet. 
 
C#:  
foreach (Control control in this.Controls)  
            {  
                MdiClient client = control as MdiClient;  
                if (client != null)  
                {  
                    client.BackColor = Color.Black;  
                    break;  
                }  
            }  

Please check the above code and let us know your concerns. We are happy to assist you.

Regards,
Sudharsan


Marked as answer

ST Steve January 24, 2022 04:17 PM UTC

Perfect! Thanks.



SN Sudharsan Narayanan Syncfusion Team January 25, 2022 12:50 PM UTC

Hi Steve,

 
We are glad to know that your issue has been fixed. Please let us know if you need any other assistance. We are happy to assist you.

Regards,
Sudharsan
 


Loader.
Up arrow icon