我在我的Windows应用程序中使用了RadDock,它将工具窗口加载到其中。我可以更改工具窗口的背景颜色,但无法为RadDock执行此操作。请建议我一个解决方案。任何帮助表示赞赏。
Dim window As HostWindow
Dim uc As UserControl1 = New UserControl1()
Dim tw As ToolWindow = New ToolWindow()
tw.Controls.Add(Panel2)
Me.RadDock1.DockControl(tw, DockPosition.Right, DockType.ToolWindow)
window = DirectCast(RadDock1.ActiveWindow, HostWindow)
window.ToolCaptionButtons = ToolStripCaptionButtons.AutoHide
window.DockState = DockState.AutoHide
RadDock1.AutoHideWindows(New DockWindow() {tw}, AutoHidePosition.Right)
tw.BackColor = Color.Green