这个xaml里面的那几段比较长的代码实在看不懂是什么意思,也不知道是怎么来的,知道的指点下
整个.xaml代码,非常感谢你的帮忙哈:
1 <?xml version="1.0" encoding="utf-8"?>
2 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3 <DrawingBrush x:Key="background" Stretch="Uniform">
4 <DrawingBrush.Drawing>
5 <DrawingGroup>
6 <DrawingGroup.Children>
7 <GeometryDrawing Geometry="F1 M 7.06585,0.000671387L 311.066,0.000671387C 315.484,0.000671387 319.066,3.58234 319.066,8.00061L 319.066,679C 319.066,683.418 315.484,687 311.066,687L 7.06585,687C 2.64757,687 -0.934153,683.418 -0.934153,679L -0.934153,8.00061C -0.934153,3.58234 2.64757,0.000671387 7.06585,0.000671387 Z ">
8 <GeometryDrawing.Brush>
9 <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
10 <LinearGradientBrush.GradientStops>
11 <!--<GradientStop Color="#FF2D86B4" Offset="0"/>
12 <GradientStop Color="#FF26739B" Offset="0.0228311"/>
13 <GradientStop Color="#FF2A7EA9" Offset="0.196347"/>
14 <GradientStop Color="#FF246C91" Offset="0.39726"/>
15 <GradientStop Color="#FE1C5471" Offset="0.60274"/>
16 <GradientStop Color="#FE1C5471" Offset="0.812785"/>
17 <GradientStop Color="#FF1F5E7E" Offset="1"/>-->
18 <GradientStop Color="#FFEB8EDA" Offset="0"/>
19 <GradientStop Color="#FFEB8EDA" Offset="0.0228311"/>
20 <GradientStop Color="#FFEB8EDA" Offset="0.196347"/>
21 <GradientStop Color="#FFEB8EDA" Offset="0.39726"/>
22 <GradientStop Color="#FFEB8EDA" Offset="0.60274"/>
23 <GradientStop Color="#FFEB8EDA" Offset="0.812785"/>
24 <GradientStop Color="#FFEB8EDA" Offset="1"/>
25 </LinearGradientBrush.GradientStops>
26 </LinearGradientBrush>
27 </GeometryDrawing.Brush>
28 </GeometryDrawing>
29 <GeometryDrawing Geometry="F1 M 10.3024,24.7582L 309.052,24.7582C 311.814,24.7582 314.052,26.9968 314.052,29.7582L 314.052,669.814C 314.052,672.576 311.814,674.814 309.052,674.814L 10.3024,674.814C 7.54101,674.814 5.30244,672.576 5.30244,669.814L 5.30244,29.7582C 5.30244,26.9968 7.54101,24.7582 10.3024,24.7582 Z ">
30 <GeometryDrawing.Brush>
31 <LinearGradientBrush StartPoint="0.493389,-0.0530026" EndPoint="0.493389,1.07045">
32 <LinearGradientBrush.GradientStops>
33 <GradientStop Color="#FFF5F6F5" Offset="0.00456621"/>
34 <GradientStop Color="#FEEDECEC" Offset="1"/>
35 </LinearGradientBrush.GradientStops>
36 </LinearGradientBrush>
37 </GeometryDrawing.Brush>
38 </GeometryDrawing>
39 <GeometryDrawing Geometry="F1 M 5.7776,0C -0.682957,-6.10352e-005 -0.934139,7.7063 -0.934149,52.7063L 69.2782,53.0219C 69.2782,53.0219 102.034,1.00073 170.264,0.999756C 176.264,0.999695 183.278,0.999817 183.278,0.999817L 5.7776,0 Z ">
40 <GeometryDrawing.Brush>
41 <LinearGradientBrush StartPoint="-0.439105,0.819736" EndPoint="0.171994,0.819736">
42 <LinearGradientBrush.GradientStops>
43 <GradientStop Color="#1AF5F6F5" Offset="0.00456621"/>
44 <GradientStop Color="#1AEDECEC" Offset="1"/>
45 </LinearGradientBrush.GradientStops>
46 </LinearGradientBrush>
47 </GeometryDrawing.Brush>
48 </GeometryDrawing>
49 <GeometryDrawing Geometry="F1 M 301.431,1C 301.431,1 287.685,30.3425 262.185,35.6895C 261.424,35.8491 319.066,45.3388 319.066,45.3388C 319.066,45.3388 325.838,0 313.695,0C 301.551,0 300.447,0 300.447,0">
50 <GeometryDrawing.Brush>
51 <LinearGradientBrush StartPoint="-0.137763,0.284656" EndPoint="0.669949,0.284656">
52 <LinearGradientBrush.GradientStops>
53 <GradientStop Color="#1AF5F6F5" Offset="0.00456621"/>
54 <GradientStop Color="#1AEDECEC" Offset="1"/>
55 </LinearGradientBrush.GradientStops>
56 </LinearGradientBrush>
57 </GeometryDrawing.Brush>
58 </GeometryDrawing>
59 <GeometryDrawing Geometry="F1 M 5.77761,0C -0.682954,-6.10352e-005 -0.934135,7.7063 -0.934145,52.7063L 69.2782,53.0219C 69.2782,53.0219 102.034,1.00073 170.264,0.999756C 176.264,0.999695 183.278,0.999817 183.278,0.999817L 5.77761,0 Z ">
60 <GeometryDrawing.Brush>
61 <LinearGradientBrush StartPoint="-0.439105,0.819736" EndPoint="0.171994,0.819736">
62 <LinearGradientBrush.GradientStops>
63 <GradientStop Color="#1AF5F6F5" Offset="0.00456621"/>
64 <GradientStop Color="#1AEDECEC" Offset="1"/>
65 </LinearGradientBrush.GradientStops>
66 </LinearGradientBrush>
67 </GeometryDrawing.Brush>
68 </GeometryDrawing>
69 <GeometryDrawing Brush="#FF153F54" Geometry="F1 M 313.35,676.965L 315.319,676.965L 315.319,679.208L 313.35,679.208L 313.35,676.965 Z "/>
70 <GeometryDrawing Brush="#FF153F54" Geometry="F1 M 313.319,679.803L 315.288,679.803L 315.288,682.046L 313.319,682.046L 313.319,679.803 Z "/>
71 <GeometryDrawing Brush="#FF153F54" Geometry="F1 M 310.496,679.75L 312.465,679.75L 312.465,681.994L 310.496,681.994L 310.496,679.75 Z "/>
72 </DrawingGroup.Children>
73 </DrawingGroup>
74 </DrawingBrush.Drawing>
75 </DrawingBrush>
76 </ResourceDictionary>
定义了一个资源文件,资源的内容是画刷。里面有多个几何形状组成。
建议你用Blend,或者Kaxaml工具来看这样的东西。去掉或者更改来理解里面的值来具体的意思。