开发者

Silverlight 4: Draw Vertical / Horizontal Rulers to Scale

I am looking for options on how to draw 2 rulers at different scales on a canvas (assume a canvas) that will scale based on user-entered data.

Placing the tick marks and text one-time isn't a big deal, it is how to scale the data as the max/min values are changed by the user AND getting the points (ellipses) on the canvas to look correctly.

Foolishly, I set the size of the canvas to the max values of the current data, but as开发者_StackOverflow社区 the data changes that won't work... I had hoped for a 1:1 translation...

Something like taking the current canvas size and redrawing the rulers is where I am headed

thanks,

rusty


I was over thinking the issue plus have just started in 'drawing', 'graphics', etc. Have a lot to learn. It was basic logical to physical translation math that most everyone 'knows'.

rusty

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜