1

I am doing a project in C# where users may specify an equation and have the app solve it. I want to use the Math Input Panel for the user to specify the equation, but the problem is that I dont know how to render the equation in the WPF app after the user presses Insert, since normal textboxes and textblocks wont display it.

I have read up thoroughly on how I need to do this, but have come up short. I realize that I need my app to support MathML so that the equation can be displayed, but that's just it... How do I make my app support MathML so that I can display it?!

So basically the user will see the equation that he has just written with the Math Input panel, and then I want to convert (behind the scenes) the equation to MathML so that I can write a parser to solve it.

Thanks in advance... I'm really desperate ;)

YoungProgrammer
  • 47
  • 2
  • 10
  • There are several suggestions here: http://stackoverflow.com/a/9071856/292432 – arx Mar 01 '12 at 22:45
  • I was wondering if there wasn't a control that might do this, cause the suggestions in that article isn't exactly what I'm looking for... – YoungProgrammer Mar 02 '12 at 21:24

2 Answers2

0

There will be, see Murray's post about the rich edit control in windows 8

http://blogs.msdn.com/b/murrays/archive/2012/03/03/richedit-8-0-preview.aspx

The other thing I’d like to point out in this post is that the new RichEdit supports math editing and display!

David Carlisle
  • 5,582
  • 1
  • 19
  • 23
0

I just want to post my answer for clearity.

I read somewhere that you can display an equation using a browser control, but Internet Explorer doesn't support MathML. For this reason, I tried to figure out if there was some kind of other browser control (like a firefox version) that i could use. After trying and failing at that, I stumbled upon MathPlayer from www.descci.com.

MathPlayer adds MathML support to IE en because of that, I was able to render equations in WPF using the browser control and style it using CSS.

YoungProgrammer
  • 47
  • 2
  • 10