0

我正在尝试将两个 Datatriggers 添加到我的 WPF 窗口中。通常,这将通过添加

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

到 Window.Resources。在这种情况下,我已经有了

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

在里面。有没有办法从那里覆盖定义?

非常感谢!

干杯

4

1 回答 1

1

试试这个:

<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>
于 2009-07-16T14:03:53.930 回答