Windows Phone7开发之 容器控件
webphp
13年前
<p style="text-indent:0px;margin:5px auto;">在Windows Phone7中存在着多个容器控件,这些控件主要是用来界面的布局设置,以及包容多个控件时的布局设置。</p> <p style="text-indent:0px;margin:5px auto;">一.Grid控件:主要用于界面的布局,这个和web page里的很相似,可以通过网格布置规划界面,也可以嵌套使用。</p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Grid</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> x</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">:</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;">Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="ContentGrid"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Grid.Row</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="1"></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Grid.ColumnDefinitions</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">ColumnDefinition</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="159*" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">ColumnDefinition</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="141*" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">ColumnDefinition</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="180*" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Grid.ColumnDefinitions</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Grid.RowDefinitions</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">RowDefinition</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="134*" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">RowDefinition</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="133*" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">RowDefinition</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="220*" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">RowDefinition</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="162*" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Grid.RowDefinitions</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Image</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="110"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> HorizontalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Left"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Margin</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="20,16,0,0"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="image1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Stretch</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Fill"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> VerticalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Top"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="131"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Source</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="/MyPhoneTest;component/Images/Chrysanthemum.jpg" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Image</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Grid.Column</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Grid.Row</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="105"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> HorizontalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Left"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Margin</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="13,12,0,0"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="image2"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Stretch</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Fill"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> VerticalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Top"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="115"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Source</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="/MyPhoneTest;component/Images/Desert.jpg" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Image</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Grid.Column</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="2"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Grid.Row</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="2"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="150"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> HorizontalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Left"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Margin</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="14,51,0,0"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="image3"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Stretch</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Fill"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> VerticalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Top"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="154"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Source</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="/MyPhoneTest;component/Images/Hydrangeas.jpg" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Grid</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Grid</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"> </p> <p style="text-indent:0px;margin:5px auto;">二.Canvas控件:<span style="font:7pt 'Times New Roman';"> </span><span style="line-height:19px;font-family:宋体;">容器、布局控件,主要是用绝对坐标来定位子控件。对于游戏开发来说用处很大。</span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Canvas</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> x</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">:</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;">Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="C1"</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:red;"> Grid.Row</span><span style="line-height:19px;color:blue;">="2"></span></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 84pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">CheckBox</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> x</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">:</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;">Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="CheckBox3"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Content</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="CheckBox3"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Canvas.Top</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="50"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Canvas.Left</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="100" </span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;">Canvas.ZIndex</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="1" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Canvas</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-indent:0px;margin:0cm 0cm 0pt 60.75pt;"><span style="line-height:19px;font-family:宋体;">也可以用代码来控制:</span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:#2b91af;">Canvas</span>.SetLeft();</span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:#2b91af;">Canvas</span>.SetTop();</span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:#2b91af;">Canvas</span>.SetZIndex();<span style="line-height:19px;color:#00b050;">//</span></span><span style="line-height:19px;font-family:宋体;color:#00b050;font-size:9.5pt;">控制子控件在</span><span style="line-height:19px;font-family:NSimSun;color:#00b050;font-size:9.5pt;">Z</span><span style="line-height:19px;font-family:宋体;color:#00b050;font-size:9.5pt;">轴上的顺序。</span></p> <p style="text-indent:0px;margin:5px auto;">三.StackPanel控件:<span style="line-height:19px;font-family:宋体;">容器、布局控件,主要用来多个子控件的纵向、横向的布局控制。</span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">StackPanel</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Orientation</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Horizontal"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="400"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="200"></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Image</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Source</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Chrysanthemum.jpg"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="200"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="200" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">StackPanel</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Orientation</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Vertical"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="200"></span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">TextBlock</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Text</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Test1" </span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;">FontSize</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="30"/></span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">TextBlock</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Text</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Test2" </span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;">FontSize</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="30"/></span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">TextBlock</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Text</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Test3" </span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;">FontSize</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="30"/></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">StackPanel</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">StackPanel</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"> </p> <p style="text-indent:0px;margin:5px auto;"> 四.Border控件:<span style="line-height:19px;" lang="EN-US"><span style="line-height:19px;"><span style="font:7pt 'Times New Roman';"> </span></span></span><span style="line-height:19px;font-family:宋体;">用于包容一个控件并为其绘制边框,并且通过参数设置可以产生多种不同的边框效果。(不太应该算为容器控件,但是又觉得放在别的类里又不是很合适。)</span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Border</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:red;"> x</span><span style="line-height:19px;color:blue;">:</span><span style="line-height:19px;color:red;">Name</span><span style="line-height:19px;color:blue;">="b2"</span><span style="line-height:19px;color:red;"> Width</span><span style="line-height:19px;color:blue;">="200"</span><span style="line-height:19px;color:red;"> Height</span><span style="line-height:19px;color:blue;">="200"</span> <span style="line-height:19px;color:red;"> BorderBrush</span><span style="line-height:19px;color:blue;">="Aquamarine"</span><span style="line-height:19px;color:red;"> BorderThickness</span><span style="line-height:19px;color:blue;">="10"</span> <span style="line-height:19px;color:red;"> Margin</span><span style="line-height:19px;color:blue;">="150,103,130,346"</span> <span style="line-height:19px;color:blue;"> /></span></span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Border</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:red;"> x</span><span style="line-height:19px;color:blue;">:</span><span style="line-height:19px;color:red;">Name</span><span style="line-height:19px;color:blue;">="b1"</span><span style="line-height:19px;color:red;"> Width</span><span style="line-height:19px;color:blue;">="200"</span><span style="line-height:19px;color:red;"> Height</span><span style="line-height:19px;color:blue;">="200"</span> <span style="line-height:19px;color:red;"> Background</span><span style="line-height:19px;color:blue;">="Gold"</span><span style="line-height:19px;color:red;"> BorderBrush</span><span style="line-height:19px;color:blue;">="Aquamarine"</span><span style="line-height:19px;color:red;"> BorderThickness</span><span style="line-height:19px;color:blue;">="10, 5, 20, 40"</span> <span style="line-height:19px;color:red;"> Margin</span><span style="line-height:19px;color:blue;">="150,369,130,80"</span> <span style="line-height:19px;color:red;"> CornerRadius</span><span style="line-height:19px;color:blue;">="25, 200, 10, 15" ></span></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 14.25pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">TextBox</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="67"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="textBox1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Text</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Test Border"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Background</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Gold"</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:red;"> Foreground</span><span style="line-height:19px;color:blue;">="White"</span><span style="line-height:19px;color:red;"> BorderBrush</span><span style="line-height:19px;color:blue;">="Gold"</span><span style="line-height:19px;color:red;"> Width</span><span style="line-height:19px;color:blue;">="170"</span> <span style="line-height:19px;color:red;"> VerticalAlignment</span><span style="line-height:19px;color:blue;">="Bottom"/></span></span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Border</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:18.75pt;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">BorderThickness</span><span style="line-height:19px;font-family:宋体;color:#a31515;font-size:9.5pt;">:边框宽度,设置不同的值使四个边产生不同的宽度。</span></p> <p style="text-align:left;text-indent:18.75pt;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">CornerRadius</span><span style="line-height:19px;font-family:宋体;color:#a31515;font-size:9.5pt;">:边角半径,设置不同的值四个边角产生不同的弧度。</span></p> <p style="text-indent:0px;margin:5px auto;"> </p> <p style="text-indent:0px;margin:5px auto;"><span style="line-height:19px;font-family:宋体;">如果要在一个边框控件里放多个控件的话,就需要先将多个控件放到一个容器类控件里,然后再把容器控件放到边框控件里。</span> </p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Border</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:red;"> x</span><span style="line-height:19px;color:blue;">:</span><span style="line-height:19px;color:red;">Name</span><span style="line-height:19px;color:blue;">="b2"</span><span style="line-height:19px;color:red;"> BorderBrush</span><span style="line-height:19px;color:blue;">="Aquamarine"</span><span style="line-height:19px;color:red;"> BorderThickness</span><span style="line-height:19px;color:blue;">="10"</span> <span style="line-height:19px;color:red;"> Margin</span><span style="line-height:19px;color:blue;">="84,123,80,220"></span></span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Canvas</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="279"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="canvas1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="289"></span></p> <p style="text-align:left;text-indent:-14.25pt;margin:0cm 0cm 0pt 56.25pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Image</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Canvas.Left</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="140"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Canvas.Top</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="151"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="101"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="image3"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Stretch</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Fill"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="123"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Source</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="/MyPhoneTest;component/Images/Hydrangeas.jpg" /></span></p> <p style="text-align:left;text-indent:-52.25pt;margin:0cm 0cm 0pt 52.25pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Image</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Canvas.Left</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="73"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Canvas.Top</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="74"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="101"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="image2"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Stretch</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Fill"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="123"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Source</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="/MyPhoneTest;component/Images/Desert.jpg" /></span></p> <p style="text-align:left;text-indent:-52.25pt;margin:0cm 0cm 0pt 52.25pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Image</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Canvas.Left</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="21"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Canvas.Top</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="21"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="101"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="image1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Stretch</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Fill"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="123"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Source</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="/MyPhoneTest;component/Images/Chrysanthemum.jpg" /></span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Canvas</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-indent:0px;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Border</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-indent:0px;margin:5px auto;"> 五.PopUp控件:严格来讲这个不应该算作容器控件,但是它可以把包含在其中的控件显示在当前页的最前面。可以用来制作自定义的MessageBox、WaitingBox等。</p> <p style="text-indent:0px;margin:5px auto;"> </p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Popup</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Grid.Row</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> HorizontalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Left"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Margin</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="109,172,0,0"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="popup1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> VerticalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Top"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="250"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="250"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> IsOpen</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="True"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Opened</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="popup1_Opened"></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 84pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Canvas</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="250"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="250"</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:red;"> Background</span><span style="line-height:19px;color:blue;">="Red"</span><span style="line-height:19px;color:red;"> VerticalAlignment</span><span style="line-height:19px;color:blue;">="Center"</span><span style="line-height:19px;color:red;"> HorizontalAlignment</span><span style="line-height:19px;color:blue;">="Center"></span></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">TextBlock</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Margin</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="90,120,0,0"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Text</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="</span><span style="line-height:19px;font-family:宋体;color:blue;font-size:9.5pt;">请等待</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">......"/></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 60.75pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Canvas</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p> <p style="text-align:left;text-indent:33.25pt;margin:5px auto;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Popup</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span> </p> <p style="text-indent:0px;margin:5px auto;">六.ScrollView:<span style="font:7pt 'Times New Roman';"> </span><span style="line-height:19px;font-family:宋体;">滚动查看器控件,也算是一个容器控件,它可以用来拖动显示其所包含的控件的内容。</span></p> <p style="text-indent:0px;margin:5px auto;"><span style="line-height:19px;font-family:NSimSun;color:blue;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;">ScrollViewer</span><span style="line-height:19px;font-family:NSimSun;color:red;"> Grid.Row</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="1"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="293"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> HorizontalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="Left"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> Margin</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="75,112,0,0"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="scrollViewer1"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> VerticalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="Top"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="279"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> HorizontalScrollBarVisibility</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="Auto"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> VerticalScrollBarVisibility</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="Auto" ></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 21pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;"> </span><span style="line-height:19px;font-family:NSimSun;color:blue;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;">Image</span><span style="line-height:19px;font-family:NSimSun;color:red;"> Source</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="Images/Hydrangeas.jpg"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="779"</span><span style="line-height:19px;font-family:NSimSun;color:red;"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;">="1036" /></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 21pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:blue;"></</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;">ScrollViewer</span><span style="line-height:19px;font-family:NSimSun;color:blue;">></span></p> <p style="text-align:left;text-indent:0px;margin:0cm 0cm 0pt 21pt;" align="left"><span style="line-height:19px;font-family:NSimSun;color:#a31515;">HorizontalScrollBarVisibility/ VerticalScrollBarVisibility</span><span style="line-height:19px;font-family:宋体;color:#a31515;">:水平</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;">/</span><span style="line-height:19px;font-family:宋体;color:#a31515;">垂直滚动条状态。</span></p>