C# how to make image move on Y axis like in slots (WPF) <p>How can i make image move on Y axis from top to bottom like in slots ? I have i my WPF this:</p> <pre><code>&lt;Border BorderBrush="Black" Margin="62,97,398,128.6" BorderThickness="2" Name="border" &gt; &lt;Grid&gt; &lt;Image Name="obrazekAutomat1" Source="cisla/2.png"/&gt; &lt;/Grid&gt; &lt;/Border&gt; </code></pre> <p>I would prefer it in CodeBehind. But i think if you give me XAML i would be able to rewrite it in C#.</p> <p>Thanks :)</p>