I use WPF.

There is a listbox with a size of 100 wide, 100 long. There is an element Page that has a size of 20 in width, 100 in length (on this page, there are such elements as: Image, TextBlock, etc.).

The logic of the work. I connect to the database, take information about the user from there, stuff it on the Page, and then I have to insert this Page into the ListBox. (that is, I have to insert a Page into the ListBox, then drive the information back into the Page and add it to the ListBox again)

Question: How can I add a Page as a ListBox?

  • I will advise to use Binding . - LLENN
  • But where exactly? Cannot transfer to the binding page - Klimbo
  • I can not give an example, because no IDE at hand. - LLENN
  • Sorry, I'll go then look for information about Binding - Klimbo
  • four
    You just complicated your task using Page. Create a usercontrol, and set it as the header for the listboxitem. - John

0