WPF textblock binding in XAML

前端 未结 5 2069
萌比男神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:25

    Try this:

    In code:

    public MyBusinessObject Instance { get; set; }
    
    Instance = new MyBusinessObject();
    

    In XAML:

    
    

提交回复
热议问题