Good evening!
Faced such a problem: there is a ResourceDictionary. It contains two styles: the first for the ComboBox, the second for the TextBlock. In the first case, the binding works without problems:
<Style x:Key="{x:Type CheckBox}" TargetType="{x:Type CheckBox}"> And in the second:
<Style x:Key="{x:Type TextBlock}" TargetType="{x:Type TextBlock}"> binding does not occur (
I brought out this style to another file, still the problem is not solved. TextBlock is a lot, and manually setting everything is not very beautiful.
TextBlock'and not good, it is used everywhere and by everyone. It is better to connect the style locally, to aGrid'sResourceDictionaryor another container. - VladD