... In my .xaml.cs ...">

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
source share
1 answer
+3

Source: https://habr.com/ru/post/1733958/


All Articles