Numbered lists in WPF

家住魔仙堡 提交于 2019-12-10 05:51:11

问题


I'm trying to create a numbered list (with sub-lists) in a WPF based UI. I'm aware of BulletDecorator for creating bullet lists and I was hoping there might be something similar for numbered lists.

I'm hoping to achieve something like:

  1. List item
  2. List item

    a) Sub list item

    b) Sub list item

  3. List item

Ideally I'd also like to have some control over the numbering format to enable use of lettering (such as shown for the sub-items).


回答1:


Use FlowDocument with List. The FlowDocument/List example on the bottom of this article shows an example similar to what you want to create.



来源:https://stackoverflow.com/questions/7290159/numbered-lists-in-wpf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!