Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Numbered lists in WPF

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).

like image 416
Reddog Avatar asked Nov 04 '22 15:11

Reddog


1 Answers

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

like image 122
Peter K Avatar answered Nov 15 '22 06:11

Peter K