Can I have multiple colors in a single TextBlock in WPF?

前端 未结 4 2016
小鲜肉
小鲜肉 2020-12-19 01:54

I have a line of text in a textblock that reads:

\"Detected [gesture] with an accuracy of [accuracy]\"

In WPF, is it possible for me to be able to change th

4条回答
  •  我在风中等你
    2020-12-19 02:52

    I think what you mean is like this( not styling for textblock):

    
       
       
    
    

    Note: every enter(or new line) between Run tag make have space between them.

提交回复
热议问题