在WPF编号列表 [英] Numbered lists in WPF

查看:152
本文介绍了在WPF编号列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个基于WPF UI编号列表(与子列表)。我所知道的 BulletDecorator 创建项目符号列表,我希望有可能也有类似的编号列表的东西。

我希望能达到这样的:

  
      
  1. 项目
  2.   
  3. 项目

         

    一)分项目

         

    二)分项目

  4.   
  5. 项目
  6.   

理想我也想有一些控制权,编号格式,以便能够使用字母(如显示为子项)。

解决方案

使用的FlowDocument使用列表。在此文章底部的的FlowDocument /列表例如显示了类似于你要创建的一个例子。

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

解决方案

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

这篇关于在WPF编号列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆