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:DesignWidth='640'
d:DesignHeight='480'>
AutoReverse="True" Storyboard.TargetName="Rect1"
Storyboard.TargetProperty="(Shape.StrokeThickness)"
Duration="00:00:00.5"/>
From="#FFC18125" To="#FF2DBD43"
Storyboard.TargetName="Ellipse1"
Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)"/>
Storyboard.TargetName="Ellipse1"
Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)"/>
Storyboard.TargetProperty="Point"
Storyboard.TargetName="animatedArcSegment"
Duration="0:0:2" To="200,200"/>
HorizontalAlignment="Stretch" Margin="66,30,85,49"
VerticalAlignment="Stretch" Width="129.2" Fill="#FF4863AF"
Stroke="#FF000000" d:LayoutOverrides="Width"
MouseEnter="Rect1_MouseEnter" MouseLeave="Rect1_MouseLeave">
BeginTime="00:00:00.1"
Storyboard.TargetProperty="(UIElement.Opacity)"
From="0.0" To="1.0" Duration="0:0:1" />
Fill="#FFC18125" Stroke="#FF000000"
MouseEnter="Ellipse1_MouseEnter" MouseLeave="Ellipse1_MouseLeave">
BeginTime="00:00:00.4"
Storyboard.TargetProperty="(UIElement.Opacity)"
From="0.0" To="1.0" Duration="0:0:1" />
BeginTime="00:00:00.8" From="0.0" To="1.0" Duration="0:0:1"
Storyboard.TargetProperty="(UIElement.Opacity)"/>
TextWrapping="Wrap" Foreground="#FF000000" Background="#00FFFFFF" BorderBrush="{x:Null}"/>
TextWrapping="Wrap" Foreground="#FF000000" Background="#00FFFFFF" BorderBrush="{x:Null}"/>
TextWrapping="Wrap" Foreground="#FF000000" Background="#00FFFFFF" BorderBrush="{x:Null}"/>
TextWrapping="Wrap" Foreground="#FF000000" Background="#00FFFFFF" BorderBrush="{x:Null}"/>
SweepDirection="Clockwise"/>
//File: Page.xaml.cs
using System.Windows.Controls;
using System.Windows.Input;
namespace SilverlightApplication3
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void Rect1_MouseEnter(object sender, MouseEventArgs e)
{
Rect1MouseMove.Begin();
}
private void Rect1_MouseLeave(object sender, MouseEventArgs e)
{
Rect1MouseMove.Begin();
}
private void Ellipse1_MouseEnter(object sender, MouseEventArgs e)
{
EllipseMouseEnter.Begin();
}
private void Ellipse1_MouseLeave(object sender, MouseEventArgs e)
{
EllipseMouseLeave.Begin();
}
private void Path_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
PathClick.Begin();
}
}
}