Hello, I have a component who's Y: property is tied to a Timer.Value(int). I want my component to sit at the bottom of the screen, 650px and I want the component to move up the "conveyor". I wrote some code in the Property Changed timer, I want the component to return to position Y:650px once the component's Y:value is less than 472px. Here is my code :
cap = 472
if event.source.value <cap:
event.source.value = 650
If I make the Timer.Running value ture, my component jumps to Y:150 and then slowly starts moving up... It should not jump to Y:150. If I run the program and have the Timer.Running value set to true, my component stays at Y:650px and does not move.
Nothing seems to work well... What am i doing wrong or what are some alternatives?