Ellipse With Styled Lines


   
     
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      WindowTitle="Ellipse with Styled Lines">
    <Ellipse Margin="0.5in"
             Fill="Blue"
             Stroke="Red"
             StrokeDashArray="{Binding Source={x:Static DashStyles.Dot}, 
                                       Path=Dashes,
                                       Mode=OneTime}"
             StrokeThickness="36pt"
             StrokeDashCap="Round">
    </Ellipse>
</Page>

   
    
    
    
    
     


Rectangle and Ellipse


   
     

<Window x:Class="WpfApplication1.ShapesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ShapesWindow" Height="160" Width="400">
    <Canvas>

        <Rectangle Fill="Blue" Canvas.Left="40" Canvas.Top="40" Width="40" />
        <Ellipse Fill="Green" Stroke="Black" StrokeThickness="2" Canvas.Left = "60" Canvas.Top="120" Width="40" Height="40" />
 
    </Canvas>
</Window>

   
    
    
    
    
     


Ellipse Fill with DrawingBrush


   
     
<Window x:Class="Workspace.DockExample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Workspace" Width="640" Height="480">
    
        <Ellipse Margin="15,0,0,0" Width="200" Height="200" Stroke="Red" StrokeThickness="1">
          <Ellipse.Fill>
            <DrawingBrush Viewport="0,0,150,50" ViewportUnits="Absolute" TileMode="Tile">
              <DrawingBrush.Drawing>
                <DrawingGroup>
                  <DrawingGroup.Children>                
                    <ImageDrawing ImageSource="c:image.JPG" Rect="0,0,100,50" />
                    <ImageDrawing ImageSource="c:image.JPG" Rect="100,0,50,50" />
                  </DrawingGroup.Children>
                </DrawingGroup>                
              </DrawingBrush.Drawing>
            </DrawingBrush>
          </Ellipse.Fill>
        </Ellipse>
</Window>