WPF/C# Binding custom object list data to a ListBox?

后端 未结 4 513
情话喂你
情话喂你 2021-02-05 05:12

I\'ve ran into a bit of a wall with being able to bind data of my custom object list to a ListBox in WPF.

This is the custom object:

public          


        
4条回答
  •  一向
    一向 (楼主)
    2021-02-05 06:00

    You will need to define the ItemTemplate for your ListBox

        
           
             
               
             
           
         
    

提交回复
热议问题