I have a ListBox in a WPF application like:
<ListBox HorizontalAlignment="Left" Margin="16,37,0,16" Name="lbEmpList" Width="194" SelectionChanged="lbEmpList_SelectionChanged" FontSize="12" SelectionMode="Single"> </ListBox>
I have three buttons: Add, Delete and Update, which will add, delete and update items in the list. I am adding Items to the ListBox with my objEmployee class object names. This custom class contains several properties: Id, Name, Address.
But when I add an object to the ListBox, it will display the elements as
<Namespace Name>.<Custom Object name>
How to associate any property of an object with this list in Design or runtime to fulfill my functions?
c # wpf
Sachin gaur
source share