Content of a Button Style appears only in one Button instance

后端 未结 3 1019
一生所求
一生所求 2020-11-30 15:51

I have a Viewbox:


  
    

        
3条回答
  •  自闭症患者
    2020-11-30 16:19

    Setting the x:Shared attribute of the ViewBox to false as suggested by @ASh will indeed work but why don't you just include the ViewBox in the ControlTemplate like this?

    
    

    A template is a template and a control instance is an instance.

提交回复
热议问题