WPF TextBlock Color for each Character

后端 未结 1 1824
名媛妹妹
名媛妹妹 2021-01-01 14:10

how to get each character of a textblock of different color in wpf?

1条回答
  •  难免孤独
    2021-01-01 14:52

    Use many different runs:

     
                H
                e
                l
                l
                o
            
    

    This produce the result: enter image description here

    0 讨论(0)
提交回复
热议问题