开发者

convert list to text items in wpf

开发者 https://www.devze.com 2022-12-21 03:48 出处:网络
I have an a开发者_高级运维pp that has a list of items. My customer prefers to edit the list in normal text.

I have an a开发者_高级运维pp that has a list of items. My customer prefers to edit the list in normal text.

So I want to find a way to transform the list items into text and vice-versa. What would you suggest?

edit: The items can be something like:

  • John Doe, manager
  • Jane Doe, manager
  • Janine Doe, sales

But the customer wants to transform this list in pure text so he could for instance copy all and paste it to look like this:

  • John Doe, manager
  • Jane Doe, manager
  • Janine Doe, sales
  • John Doe, manager
  • Jane Doe, manager
  • Janine Doe, sales

This is an example, there are many scenarios.

Thank you


Heavy weight solution - DataGrid from WPF Toolkit.

Light weight - your own ListBox with custom ItemTemplate.


What is there inside your items? You would need to add a DataTemplate for your item type, binding the visual elements to the properties of your items.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号