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: 1563 |
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: 2774 |
| < | February 2012 | > | ||||
| Mo | Tu | We | Th | Fr | Sa | Su |
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||