c#/wpf : window.style 추가, 자원이 이미 존재하더라도.
-
16-09-2019 - |
문제
WPF 창에 두 개의 datatriggers를 추가하려고합니다. 일반적으로 이것은 추가를 통해 작동합니다
`<Style TargetType="{x:Type TextBlock}"></Style>`
창에. 이 경우 이미 가지고 있습니다
`<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>
제휴하지 않습니다 StackOverflow