Wpf, style is not being applied

前端 未结 6 1887
执念已碎
执念已碎 2021-01-13 14:25

I\'ve written a user control with popup, who\'s content is being set outside the control. The ControlTemplate of that control looks like the following:



        
6条回答
  •  灰色年华
    2021-01-13 14:34

    Maybe you have some TextBlock style defining that it shouldd take the parent's control foreground.

    Did you try to add a BasedOn property like this ?

    
    

提交回复
热议问题