How to draw a function graph in WPF?

I am a simple housewife and I like to draw a polynomial function for my unmotivated daughter. I made a grid in WPF, in one cell I want to draw a graph of a simple polynomial. In this cell, I use the viewbox, and inside the viewbox, the canvas.

For example, f (x) = 3x²

I would like to use coordinates from -10 to 10 in the x direction and from 0 to 300 in the y direction. Can someone tell me how to scale the graphics (canvas, viewbox?).

+5
source share
1 answer

, , - , , : WPF:

, .

, , , ViewModel, , .

+6

All Articles