Silverlight - Binding with ObservableCollections

前端 未结 2 564
悲&欢浪女
悲&欢浪女 2020-12-21 19:17

This is no doubt a newbish question, but I have looked for an answer to no avail. My setup is simple: I have a ListBox control defined in XAML and an ObservableCollec

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-21 19:48

    You do not have to specify a Path if you want to use the bound object itself:

    
      
        
          
        
      
    
    

    BTW: Instead of your custom property, you can use the DataContext property of your control to bind the control to the object:

    
      
        
          
        
      
    
    

提交回复
热议问题