Multiple Colors In TextBlock

后端 未结 4 1406
名媛妹妹
名媛妹妹 2020-12-16 21:23

Is it possible to add dynamic colors to a TextBlock ..i.e. have one character in one color and the next in another color.



        
4条回答
  •  北海茫月
    2020-12-16 22:05

    I'm developing for Mango with the WP7 SDK. You can use a . It seems a little buggy on WP7 , you have to add a spaces on the Run.Text property to get the spacing correct:

    Helloand hello again!;
    

提交回复
热议问题