How do I create the correct ICommand (or RelayCommand)
I want to create:
AllCustomers as ObservableCollection(Of Customer)
where Customer is:
Public Class Customer
Public Property ID as integer
Public Property Name as String
Public Property Cmd as ICommand (or RelayCommand)
So that when AllCustomers is bound to the ItemSource of a ListBox
and the Name and ID are shown via a data template, I can click the Name or ID and go to a routine where I can know what the ID of the customer is.
I know this is doable and I probably need another class that will inherit from ICommand or RelayCommand, but I don't understand WPF commanding well enough to do it.
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.