How do I Access Buttons inside a UserControl from xaml?

后端 未结 6 601
梦如初夏
梦如初夏 2021-01-17 11:51

At work I have several pages, each with buttons in the same places, and with the same properties. Each page also has minor differences. To that end, we created a userControl

6条回答
  •  死守一世寂寞
    2021-01-17 12:26

    If you can group your changes to your buttons to one or multiple properties on your datacontext, you could work with DataTriggers:

    
    

    You can even use multiple conditions with MultiDataTriggers.

提交回复
热议问题