Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

TextBlock ignores style - why?

$
0
0
Check the following project: https://skydrive.live.com/redir?resid=8B169EF451FFD9FE!932&authkey=!AMGIZf2Ou78Vr6k&ithint=file%2c.zip

TL;DR there's a TextBlock placed in a Popup through a ContentPresenter. ContentPresenter has a style for TextBlock, but it ignores it and uses Foreground inherited from Popup. On the other hand, if I use Label instead of TextBlock (or other property instead of Foreground), everything works. What am I doing wrong?

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>