質問

WPFウィンドウに2つのDatatriggerを追加しようとしています。通常、これは追加を介して機能します

`<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" />`  

初期化。そこから定義をオーバーライドする方法はありますか?

どうもありがとう!

乾杯

役に立ちましたか?

解決

これを試して:

<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>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top