Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

wpf how to move grid line

Solved!
Go to solution
I realized Grid Line with CustomGridLinesRenderer function, but I cannot see how to move it dynamically.

PIC1.JPG

HOW TO MOVE?

code in testgridline.zip

 

 

0 Kudos
Message 1 of 2
(2,967 Views)
Solution
Accepted by topic author jiewei_li

To change the grid line value, you just need to modify the Subdivisions collection on the custom grid line renderer. For example, if you add "line1.Subdivisions[0] += 10;" to your _timer_Tick method, it will increment the line every time the timer fires.

~ Paul H
0 Kudos
Message 2 of 2
(2,943 Views)