2014-02-12 60 views
1

任何想法爲什麼這不能按預期方式工作?
在運行時,我們的WPF應用程序的輸出從字面上顯示\u2022序列..而我期望子彈點字符(Unicode Character 'BULLET' (U+2022)):帶TextBlock的BulletDecorator不顯示Unicode字符

<BulletDecorator VerticalAlignment="Center" > 
     <BulletDecorator.Bullet> 
      <TextBlock Text="\u2022"/> 
     </BulletDecorator.Bullet> 
     <TextBox Style="{StaticResource ReadOnlyTextBoxStyle}" 
      TextWrapping="WrapWithOverflow" 
      Text="{Binding Name, Mode=OneWay}"/> 
    </BulletDecorator> 

回答

2

沒關係 - 以下格式的工作原理:

<TextBlock Text="&#x2022;"/> 
2

或者你可以直接把你的子彈在文:

<TextBlock Text="•" /> 
+1

類型 「ALT + 0149」 – Guish