Change a button's content in a style?

后端 未结 4 1184
执念已碎
执念已碎 2020-12-30 02:53

I\'m trying to do something similar to this:



        
4条回答
  •  有刺的猬
    2020-12-30 03:33

    The actual error is occurring because Visuals can not be directly set as a Setter value. You can get the behavior you are looking for though, by setting the ContentTemplate using a DataTemplate, or by creating your content as a resource, either specific to the button or located elsewhere.

    
    
    
    

提交回复
热议问题