Wpf, style is not being applied

前端 未结 6 1892
执念已碎
执念已碎 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:27

    Had a similar issue caused by another problem:

    There is a strange bug in WPF that prevents styles, defined in merged dictionaries, from being applied to the first element:

    https://www.engineeringsolutions.de/wpf-fix-style-is-only-applied-to-first-element/

提交回复
热议问题