Although lots of work lately , we have still managed to squeeze time out to come out our first graph , it is nothing fancy , but serves the basis of our graph library . Our first bubble graph in orthogonal camera
And in perspective camera
|
|||||||
| Comments | 1 | Hits: 986 |
Lately there are numbers of sending email asking how to auto resizing the gauge , So i have decided to post a solution here . There are couple of way how this can be done , but i will post a solution which i have posted in the forum . and i will described how it works here : 1. We create a user control call MyGauge , in the MyGauge override the OnMeasure method . private Size _oriSize;
What we are doing here first we save the original size , whenever the user control get resize , user control will re measure with the new size . We calculate the ratio by doing a new size / old size , then appy a scale transformation to it .
Once it is done . You have a usercontrol that will resize the gauge . Now , we need to use this gauge in a window . We create a new project , then embed the newly created UserControl in the XAML
But when you run the project , as you resize the window , the control does not resize !! The solution to this problemi is in XAML change <l:MyGauge Width="Auto" Height="Auto"></l:MyGauge> Now the window will resize the user control automatically . download the application from here http://nextwavesoft.com/images/fbfiles/files/Demo-ae3449dbe05da0c8a1ca07654d969596.zip
|
|||||||
| Comments | 0 | Hits: 1578 |
| K. Y. Sim, C. S. Low, F.-C. Kuo, "Automatic Testing of Financial Charting Software Component: A Case Study on Point and Figure Chart", Proceedings of 2009 International Conference on Computer Science and its Applications, IEEE Press, to appear. |