/Visual Studio 2008/VBSL3Animation/MyEllipse.xaml
XAML | 36 lines | 19 code | 1 blank | 16 comment | 0 complexity | b8d333599c154ad9f21eb5a5028d5d4b MD5 | raw file
- <!--/****************************** Module Header ******************************\
- * Module Name: MyEllipse.xaml
- * Project: VBSL3Animation
- * Copyright (c) Microsoft Corporation.
- *
- * This module shows how to write a UserControl that basically wraps EllipseGeometry
- * to "expose" its Center property.
- *
- * This source is subject to the Microsoft Public License.
- * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
- * All other rights reserved.
- *
- * History:
- * * 9/8/2009 05:00 PM Allen Chen Created
- \***************************************************************************/-->
-
- <UserControl x:Class="VBSL3Animation.MyEllipse"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Width="400" Height="300">
- <Grid x:Name="LayoutRoot" Background="Transparent" IsHitTestVisible="False">
- <Path>
- <Path.Fill>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FFF1F7FB" Offset="0"/>
- <GradientStop Color="#FF3794E4" Offset="1"/>
- </LinearGradientBrush>
- </Path.Fill>
- <Path.Data>
- <!-- Describes an ellipse. -->
- <EllipseGeometry x:Name="MyAnimatedEllipseGeometry"
- Center="50,50" RadiusX="15" RadiusY="15" />
- </Path.Data>
- </Path>
- </Grid>
- </UserControl>