Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

EllipseGeometry as Resource

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Stretch" VerticalAlignment="Stretch">     <StackPanel Orientation="Horizontal">       <StackPanel.Resources>         <EllipseGeometry x:Key="pathDescription" RadiusX="100" RadiusY="50" Center="100,50" />       </StackPanel.Resources>            <Path Data="{StaticResource pathDescription}" Fill="Green" />       <Path Data="{StaticResource pathDescription}" Fill="Cyan" />       <Path Data="{StaticResource pathDescription}" Fill="Black" />          </StackPanel> </Page>