How to override brushes

Docking/MDI for WPF Forum

Posted 12 years ago by Samuele Gantner
Version: 12.1.0560
Avatar

Hi,

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?

 

Thanks,
Sam

 

<Window.Resources>

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

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

<LinearGradientBrush.GradientStops>

<GradientStopCollection>

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

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

</GradientStopCollection>

</LinearGradientBrush.GradientStops>

</LinearGradientBrush>

</Window.Resources>

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

<docking:SplitContainer>

<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>

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

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

</docking:TabbedMdiContainer>

</docking:TabbedMdiHost>

</docking:Workspace>

</docking:SplitContainer>

</docking:DockSite>

Comments (2)

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

Hi Samuele,

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

xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"

 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
Avatar

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

The latest build of this product (v24.1.1) 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.