1
Vote

Dynamic sizing of knob

description

Ok, I fixed the knob so it is not set at 30 pixels, it can be any size. Here's what I did:
 
In the resource dictionary, I did this: http://pastie.org/972176 Is the address for the xaml
 
NOTE: This also addresses the need to include a framework element to bind to the angle tag, which is now proper.
 
And I wrote a value converter to convert the values of the lines and the angle. http://pastie.org/972177 is the vb.net code (easily converted to C#)
 
Now the knob can be any size!
 
Enjoy,
 
Rick

comments