UserControl's DataContext

前端 未结 5 1709
[愿得一人]
[愿得一人] 2020-11-29 23:47

I\'m creating a UserControl I want to use something like this:


5条回答
  •  粉色の甜心
    2020-11-30 00:15

    For first one, try :

    
    

    And for second question, I think using ElementName or AncestorBinding is best way to bind to UserControl's properties.

提交回复
热议问题