views:

828

answers:

1

Hello,

I'm trying to add two Datatriggers to my WPF Window. Normally, this would work via adding

`<Style TargetType="{x:Type TextBlock}"></Style>`

to the Window.Resources. In this case, I already have

`<ResourceDictionary Source="/PresentationFramework.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml" />`

in it. Is there a way to override the definitions from there?

Thanks a lot!

Cheers

A: 

Try this:

<ResourceDictionary>
  <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="/PresentationFramework.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml"/>
  </ResourceDictionary.MergedDictionaries>
  <!-- Other stuff here -->
  <Style .../>
</ResourceDictionary>
Botz3000
Great! This works. Thank you.
Joseph Melettukunnel