Click here to Skip to main content
15,894,720 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
2)there should be two text box one for x axis and one for y axis as the user enter value in the respective textbox the graph should plot according to respective value enter
Posted
Updated 30-Oct-13 23:20pm
v2
Comments
Alexander Dymshyts 31-Oct-13 3:34am    
Did you try binding?
kumar9avinash 31-Oct-13 4:32am    
@alexander i am new to wpf ,but i am trying biding using maximum property of graph , but if u have clear idea then u can give some example.

1 solution

In your xaml code, where you have textBoxes, you should bind thier text properties to your viewModel. Then, when the property is changing, you should make your graph plot to this values. You can also do it via binding - in your graph in xaml code you should bind x and y values of axis to a viewModel, and when the binding value of your textBoxes will be changing, you will need to set values for your graph also.
Hope this will help to you.
 
Share this answer
 
Comments
kumar9avinash 4-Nov-13 11:05am    
@alxender i have done this already but texbox are not working
Alexander Dymshyts 5-Nov-13 2:37am    
then you need to provide your code

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900