First, we are going to display the raster images and give them life by transforming them into our first sprites. We are going to add some code, which we will improve later:
MainPage.xamland replace the existing code with the following. (You will see a button and the aliens aligned in five rows in the preview, as shown in the screenshot after the code.)
<UserControl x:Class="SilverlightInvaders2D.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml /presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="1366" Height="768" xmlns:SilverlightInvaders2D= "clr-namespace:SilverlightInvaders2D"> <Canvas x:Name="LayoutRoot" ...