Quantcast
Viewing all articles
Browse latest Browse all 18858

TextBlock ignores style - why?

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