Data binding to a UserControl in WPF

后端 未结 4 2026
庸人自扰
庸人自扰 2021-02-05 20:10

I have a UserControl that I want to participate in data binding. I\'ve set up the dependency properties in the user control, but can\'t get it work.

The uc displays the

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 21:05

    I think in this case you need to set the ElementName property in the binding. Something like this:

    
        
    
    

提交回复
热议问题