Mouse Events in Silverlight <font size=-2><a href=http://www.lifemichael.com/en/?page_id=73 target=_blank>PRO</a></font>

We can easily handle the various mouse events by referring their events. These events are usually available as properties of the elements we work with. The following code sample access those properties using their corresponding attributes in the XAML code. The XAML file: <UserControl x:Class=”SilverlightApplication13.MainPage” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> <Canvas x:Name=”Surface” Grid.Column=”0″> […]