Now, you want to see the ghost moving on the screen as an XBAP WPF application while the mouse pointer changes its position. In order to do this, we must add some code to show the ghost and to move it. We will add both XAML and C# code as follows:
Page1.xaml(double-click on it in the Solution Explorer) and replace the existing code with the following:
<Page x:Class="SilverlightMonsterXBAP.Page1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml /presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Page1" Cursor="None"> <Canvas Width="1366" Height="768" MouseMove="Ghost_MouseMove" xmlns:SilverlightMonsterXBAP= ...