Files to look at:
- MainViewModel.cs (VB: MainViewModel.vb)
- MainView.xaml (VB: MainView.xaml)
This example shows how to create ButtonEdit buttons based on a collection in a view model and define the button appearance using the DataTemplate and DataTemplateSelector classes.
This is done by binding the ButtonsSource property and specifying a custom ButtonTemplate.