Good way to add math formulas to XAML?

I am creating an application in the company with which I work, and now I am working with the "Mathematical Curriculum". In short, I need to create Silverlight applications (animations) using math tutorials.

To solve this problem, I need to be able to create formulas. I need a square root, fractions and so on!

I searched on Google and I found many solutions. But many seem very bad and ineffective.

I would prefer that I have tags like:

<SquareRoot>9</SquareRoot>, <Fraction><Fraction.Upper>31</Fraction.Upper> ... </Fraction>.

Or even:

<MathematicalObject>Latex syntax</MathematicalObject>

The problem is that I need to have a lot of them, and inserting random images or code for magic would really create problems.

So: I ask you smart people :

What is the best and most effective way to add math formulas in XAML / Silverlight? If it were really simple (and perhaps even free?), It would be very nice!

thank

+3
source share
1 answer

The general approach will be as follows:

Create your own control. The contents of this control will be interpreted as LaTeX code and converted to a displayed image. You can use it as follows:

<Grid>
    <my:YourLaTeXControl>LaTeX code</my:YourLaTeXControl>
</Grid>
0
source

All Articles