Creating a ListBox for Editing
I have a plain old WPF ListBox defined in my .xaml:
...
<ListBox Name="foo">
</ListBox>
...
In my .xaml.cs mapping, I programmatically add rows to this ListBox.
I would like to be able to edit these lines from the user interface at runtime.
I'm new to WPF, so the first time I thought about dynamically replacing a string in a ListBox with a TextBox using a callback. Although this did not cause errors, it looks like the user interface has not changed at all.
Is there a standard approach to doing this kind of action in WPF?
+3
1 answer