How to override brushes

Docking/MDI for WPF Forum

Posted 12 years ago by Samuele Gantner
Version: 12.1.0560


I spent a couple of hours trying to override some brushes, but with no success...

Here is an example (see the part in bold). What I get is a compilation error: Type 'themes:AssetResourceKeys' was not found.

What's the correct definition?





<Style TargetType="{x:Type docking:AutoHideHost}"><Setter Property="Padding" Value="0" /></Style>

<LinearGradientBrush x:Key="{x:Static themes:AssetResourceKeys.TabbedMdiContainerTabItemBackgroundActiveSelectedBrushKey}">



<GradientStop Color="#9D9DA1" Offset="0" />

<GradientStop Color="#D9D9E1" Offset="1" />





<docking:DockSite x:Name="dockSite" CanDocumentWindowsRaft="True" Padding="0,0,0,1" >


<docking:Workspace >

<docking:TabbedMdiHost IsImageOnTab="true">

<docking:TabbedMdiContainer x:Name="TabsGroup" TabOverflowBehavior="Menu" >

<docking:DocumentWindow Title="WelcomeDocument.rtf" Description="Rich-text document"

FileName="C:\Users\Actipro\My Documents\WelcomeDocument.rtf">


<docking:DocumentWindow Title="AnotherDoc" Description="Rich-text document"

FileName="C:\Users\Actipro\My Documents\WelcomeDocument.rtf" />






Comments (2)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Samuele,

Did you include this at the top of your XAML file?


 You need that sort of thing to declare what the "themes:" XML namespace is.

Actipro Software Support

Answer - Posted 12 years ago by Samuele Gantner

Actually I found out by myself. Was missing a reference to ActiproSoftware.Shared.Wpf :)

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.