Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Moving Anumation From One Cell in a Grid to Onather

$
0
0

Hello,

I have a Grid of 7*7 cells. is some of them i have a user control that when i click on one of them and then on an empty spot - the user control will move from the cell it is to the new one.

i did it without any animations now, what did i do? when clicking the first time on a UC i save the row and column and when clicking second time on an empty spot - the UC is removed from the saved row and column and added to the new row and cell. 

it's working nice, but now i want to add an animation to it. 

so - - - when clicking first time on the UC i save the top and left of it, and when clicking second time on an empty spot i save the new top and left and then remove the UC from the grid it's in and add it to a canvas that is on the same spot.

now, for the big question: how do i make the UC move from the first position (top, lest) on the canvas to the second???



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>