<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="300" Width="300">
<Canvas Margin="5">
<Polygon Canvas.Top="110" Canvas.Left="45"
Points="40,0 150,100 10,100"
Stroke="Black" StrokeThickness="1">
<Polygon.Fill>
<ImageBrush ImageSource="c:\image.jpg" Stretch="Uniform"
AlignmentX="Left" />
</Polygon.Fill>
</Polygon>
</Canvas>
</Window>
|