1 <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3 StartupUri="SampleViewer.xaml">
5 <Application.Resources>
8 <Style TargetType="{x:Type Canvas}">
9 <Setter Property="Canvas.HorizontalAlignment" Value="Center" />
10 <Setter Property="Canvas.Background">
12 <DrawingBrush Viewport="0,0,10,10" ViewportUnits="Absolute" TileMode="Tile"
13 AlignmentX="Left" AlignmentY="Top">
14 <DrawingBrush.Drawing>
16 <DrawingGroup.Children>
17 <GeometryDrawing Brush="#99FFFFFF">
18 <GeometryDrawing.Geometry>
19 <RectangleGeometry Rect="0,0,1,1" />
20 </GeometryDrawing.Geometry>
22 <GeometryDrawing Geometry="M0,0 L1,0 1,0.1, 0,0.1Z" Brush="#99CCCCFF" />
23 <GeometryDrawing Geometry="M0,0 L0,1 0.1,1, 0.1,0Z" Brush="#99CCCCFF" />
24 </DrawingGroup.Children>
26 </DrawingBrush.Drawing>
34 <Style TargetType="{x:Type Button}">
35 <Setter Property="Button.MinWidth" Value="120"/>
36 <Setter Property="Button.HorizontalAlignment" Value="Center" />
39 <Style TargetType="{x:Type StackPanel}">
40 <Setter Property="StackPanel.HorizontalAlignment" Value="Center" />
43 </Application.Resources>