<Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="ResourcesExample" Height="300" Width="300" > <Window.Resources> <EllipseGeometry x:Key="geom" RadiusX="200" RadiusY="30" /> </Window.Resources> <Rectangle Width="250" Height="50"> <Rectangle.Fill> <DrawingBrush> <DrawingBrush.Drawing> <GeometryDrawing Brush="Cyan" Geometry="{StaticResource geom}" /> </DrawingBrush.Drawing> </DrawingBrush> </Rectangle.Fill> </Rectangle> </Window>