-
I need to animate a border from the left side to the right side in a canvas by code. What's more, in actual code, the width of the Canvas and the width of the Border are unpredictable. So, I have to use Canvas to implement this. Here is my code:
Now I found it the What's wrong with my code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I haven't debug it, but I assume that's because you leave "0" value there, which is still a valid coordinate value. |
Beta Was this translation helpful? Give feedback.
I haven't debug it, but I assume that's because you leave "0" value there, which is still a valid coordinate value.
If you want to clear
LeftProperty
and setRigthProperty
instead, you should callB.ClearProperty(Canvas.LeftProperty)