We help IT Professionals succeed at work.

How can we draw Equations in Wpf?

bish wakim
bish wakim asked
on
1,866 Views
Last Modified: 2013-11-12
Is there any way to draw math equations on a canvas(wpf c#) .Something similar to what
we have with Equation3 in MS Word. ex: a function that takes a parametre string (x+1)/(3/y)+x^2 and draw it properly on a canvas using 3 lines.
 
Comment
Watch Question

Jaime OlivaresSoftware Architect
CERTIFIED EXPERT
Top Expert 2008

Commented:
You have to separate your requirement in 2:
- interpret math equations
- draw lines in wpf canvas
both them are barely related.
 
This is something like you want but for Winforms, not WPF:
http://www.codeproject.com/KB/miscctrl/ExpressionPlotterControl.aspx

About plotting with WPF:
http://www.codeproject.com/KB/WPF/wpfgraph.aspx
http://www.codeproject.com/KB/vista/swordfishcharts.aspx
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Jaime OlivaresSoftware Architect
CERTIFIED EXPERT
Top Expert 2008

Commented:
I just realized you want to paint the equation itself. Please considering the following alternative:
http://www.codeproject.com/KB/dotnet/Eq2Img.aspx
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.