C# 如何在wpf中的文本绑定前面添加项目符号?

C# 如何在wpf中的文本绑定前面添加项目符号?,c#,wpf,xaml,decorator,C#,Wpf,Xaml,Decorator,为了简单起见,我有以下缩写 <ItemsControl ItemSource="{Binding enumerableList}"> <ItemsControl.ItemTemplate> <DataTemplate> <TextBox Text="{Binding displayName, Mode=OneWay}" /> </DataTemplate> <

为了简单起见,我有以下缩写

<ItemsControl ItemSource="{Binding enumerableList}">
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <TextBox Text="{Binding displayName, Mode=OneWay}" />
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>

如何获取它,使我的文本框在绑定到它的文本前显示一个项目符号?所需格式:

  • 清单项目1
  • 清单项目2
您可以将与文本块一起使用。例如:

    <BulletDecorator>
      <BulletDecorator.Bullet>
        <Ellipse Height="10" Width="10" Fill="Blue"/>
      </BulletDecorator.Bullet>
        <TextBox Text="{Binding displayName, Mode=OneWay}" />
    </BulletDecorator>


或者,如果我想切换到数字、字母或罗马数字,在不将其添加到实际文本字符串的情况下,是否有类似的内容?使用FlowDocument您是否考虑过修改displayName属性,在返回之前在值的前面加上一个项目符号字符?或者让一个值转换器来处理这个问题?