silverlight - How to use Button click event

Button Click event in silverlight
Button is a silverlight control. button ClickMode property get or set when the click event occurs. by default, button click event occurs when a button control is clicked.

button ClickMode property set what type of user interaction is required to raise a Click event. ClickMode property have the three possible values Release, Press and Hover.

ClickMode enumeration value 'Release' specifies that the Click event should be raised when the left mouse button is pressed and released and the mouse pointer is over the control. if the button has focus, we can press the keyboard Enter or SpaceBar to raise the Click event.

ClickMode 'Press' raises the button Click event when the mouse left button is pressed while over the second button, the foreground color of the button changes.

ClickMode property value 'Hover' specifies that the button Click event should be raised when the mouse pointer moves over the control. in this mode Click event cannot be raised with the keyboard.

the following silverlight c# example code demonstrate us how can we use and raised button click event in a silverlight application.
MainPage.xaml

<UserControl x:Class="SilverlightApps.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="600" d:DesignWidth="800" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

    <Grid x:Name="LayoutRoot" Background="White">
        <sdk:Label 
            HorizontalAlignment="Left" 
            Margin="12,21,0,0" 
            Name="label1" 
            VerticalAlignment="Top" 
            Width="750"
            Content="Silverlight - how to use Button Click event"
            FontSize="25"
            FontStyle="Italic"
            Foreground="MidnightBlue"
            />

        <Button 
            Content="Click Here" 
            Height="23" 
            HorizontalAlignment="Left" 
            Margin="143,160,0,0" 
            Name="button1" 
            VerticalAlignment="Top" 
            Width="75" 
            Click="button1_Click"
            BorderThickness="2"
            />
    </Grid>
</UserControl>
MainPage.xaml.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SilverlightApps
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            button1.Width = 250;
            button1.Height = 100;
            button1.FontSize = 25;
            button1.Content = "Button Clicked";
        }
    }
}
More silverlight examples