Highlighting text according to text to speech synthesis output. RRS feed

  • Question

  • Hello,

    I am developing windows store app in WPF. Going to convert textblock text into speech using speech synthesizer.The requirement is to high light text according to speech synthesis output.I am facing problem while changing text color. just check the following line of code to change color.

     textbox.selectionHighlightColor=new SolidColorBrush(colors.red)

    But its not reflecting it on GUI.

    I also tried to give trigger for textbox styling.But unable to get <style.Triggers> tag in xaml.

    Can anyone help me??

    Friday, July 25, 2014 9:37 AM

All replies

  • Seems to work fine for me.  Are you also setting the selected text?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, July 25, 2014 7:27 PM