1 <!-- If you change the root element of this file, be sure to change the class that is subclassed in app.xaml.cs -->
3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5 x:Class="SDKSample.app"
6 StartupUri="SampleViewer.xaml"
8 <!-- Defines the resources and styles used by the application. -->
9 <Application.Resources>
11 <Style x:Key="CodeSnippetParagraph">
12 <Setter Property="TextBlock.FontFamily" Value="Courier New" />
13 <Setter Property="TextBlock.FontSize" Value="10" />
14 <Setter Property="TextBlock.TextWrapping" Value="Wrap" />
15 <Setter Property="TextBlock.Margin" Value="10" />
16 <Setter Property="TextBlock.Background" Value="#eeeeee" />
17 <Setter Property="TextBlock.TextAlignment" Value="Left" />
20 <DrawingBrush x:Key="MyGridBrushResource" Opacity="0.25"
21 Viewport="0,0,10,10" ViewportUnits="Absolute" TileMode="Tile">
22 <DrawingBrush.Drawing>
24 <DrawingGroup.Children>
25 <GeometryDrawing Geometry="M0,0 L1,0 1,1 0,1z" Brush="White" />
26 <GeometryDrawing Brush="#9999FF">
27 <GeometryDrawing.Geometry>
29 <RectangleGeometry Rect="0,0,1,0.1" />
30 <RectangleGeometry Rect="0,0.1,0.1,0.9" />
32 </GeometryDrawing.Geometry>
34 </DrawingGroup.Children>
36 </DrawingBrush.Drawing>
40 <Style TargetType="{x:Type TextBlock}">
41 <Setter Property="FontFamily" Value="Verdana"/>
42 <Setter Property="TextWrapping" Value="Wrap"/>
45 </Application.Resources>