Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to overcome my win32 mindset and I'm not sure how I should go about this in WPF.

I want to create a guitar tablature control. Tuning options aside, it should just look like the following:
|
e----------------
|
b----------------
|
g----------------
|
d----------------
|
a----------------
|
e----------------
|

and that should scale vertically/horizontally to the control's size.

Eventually, there will be hit testing as notes are added/edited/deleted so (so far) I've gone with using DrawingVisual in the context of a Canvas-derived control.

I want to do all of the drawing without regard to control size then just scale it to the display area. (including the font). No scrolling.

The drawing I can handle, but I'm not sure of the best way to scale the end result.

Searching and reading have left me a little overwhelmed. Can anyone help with that last?

I'm not sure if DrawingVisual is over-kill here, but this is a learning exercise as well and another (paying!) app might have hundreds or thousands visuals.

In the meantime, I'll go look for more samples!

Thanks,
Dan
Posted

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