Wpf, style is not being applied

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

    As a suggestion, shouldn't this:

    TargetType="local:InfoIcon"
    

    be like this?

    TargetType="{x:Type local:InfoIcon}"
    

提交回复
热议问题