i want to display image in wpf application, that image will be drawn as graph based on the data entered by the user....when the suer clicks the submit button after entering the data the image(graph) should be displayed on the form..i did the same in my winform app using the code pasted below
string mData = txtmData.Text;
Graphics g = pictureBox1.CreateGraphics();
Brush br = new SolidBrush(Color.Black);
g.DrawString("*" + mData + "*", mFont, br, 50, 50);
in WPF i don't fine alternative for pictureBox1.CreateGraphics();