I need a control to allow users to add/delete/edit rows of key/value pairs. What’s the best control to use for this? Does anyone have an example? I’m quite new to WPF.
I need a control to allow users to add/delete/edit rows of key/value pairs. What’s
Share
I’d use a simple dialogue with two labelled text boxes, the new pair would be added to the original data which should be bound to the
DataGridso that rows are generated automatically.Edit: A DataGrid example solution.
XAML:
Code behind:
In window class:
Pair class:
You should be able to add new pairs with the normal DataGrid functionality.