Styling Floating windows in TabbedMdi

Docking/MDI for WPF Forum

Posted 3 years ago by Chris Klepeis
Version: 16.1.0630
Avatar

I can't figure out what style to use or how to change the background color of the floating windows when using DockSite with TabbedMdi

 

<Style TargetType="{x:Type docking:DockSite}">
    <Setter Property="Background" Value="#293955" />
</Style>

The DockSite style works for the main window, but not the floating window.

<Style TargetType="{x:Type docking:Workspace}">
   <Setter Property="Background" Value="Red" />
</Style>

 

Almost works, except for the approx 5-10px margin around the DockSite.

[Modified 3 years ago]

Comments (1)

Posted 3 years ago by Chris Klepeis
Avatar

Looks like I solved it with:

 

<Style TargetType="{x:Type docking:DockHost}">
     <Setter Property="Background" Value="Red" />
</Style>

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.