WPF textblock binding in XAML

前端 未结 5 2029
萌比男神i
萌比男神i 2021-01-22 21:40

I\'m updating some existing WPF code and my application has a number of textblocks defined like this:



        
5条回答
  •  清歌不尽
    2021-01-22 22:26

    Try to instantiate ObjectA in the same way as you are doing for PropertyA (Ie. as a property, with a public getter / setter, and calling OnPropertyChanged), then your XAML can be :

    
    

提交回复
热议问题