I need to change the color of the splitter bar in the DockManager while the user is hovering over it. This is useful to help indicate to the user of this functionality in addition to the icon that is shown while hovering. The standard .Net splitcontainer has this ability:
private void splitContainer1_MouseLeave(object sender, EventArgs e) { splitContainer1.BackColor = SystemColors.ControlDark; }
private void splitContainer1_MouseHover(object sender, EventArgs e) { splitContainer1.BackColor = SystemColors.ControlDark;
}
Hello Aron,
UI Element’s appearance can be modified by setting various properties on Appearance objects exposed by PLF-based controls. However, when a requirement comes along which isn’t supported by the control, then that requirement can be implemented using a DrawFilter.
There is a possibility of changing color of the splitter bar in DockManager when it’s hot tracked by writing a custom DrawFilter that does that . You can refer to our online help documentation to read about the DrawFilter.
I will create sample application to demonstrate how this DrawFilter can be implemented. I will post it here by end of day today.
Please let me know if you have any questions.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
You can refer to the attached sample to implement the required DrawFilter that changes the appearance of a splitter bar when it’s hovered over.
Please let me know if I may be of further assistance.