Shapes.xaml
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:1k
- <Canvas xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
- <Border
- VerticalAlignment="Center" HorizontalAlignment="Center" Padding="4" BorderThickness="1" BorderBrush="#767676" Background="#e4ecf7">
- <Polygon Points="10 0, 80 0 80 80 12 33" Fill="Gold" Stroke="Green"/>
- </Border>
- <Rectangle Fill="Red" Stroke="Green" Width="15" Height="15"/>
- <Ellipse MouseEnter="MakeShapeRed" MouseLeave="MakeShapeGreen" Cursor="Hand" Canvas.Left="120" Stroke="Green" Width="40" Height="40" Fill="LightGreen"/>
- <Border Canvas.Top="100" BorderBrush="Red" BorderThickness="1">
- <Line X1="200" X2="100" Y2="100" Stroke="Navy" StrokeThickness="3" Cursor="Cross"/>
- </Border>
- <Polyline Canvas.Left="100" Canvas.Top="60" Stroke="DarkRed" Points="0 0 20 20 40 0 60 20" StrokeThickness="8" />
- </Canvas>