Windows Phone7开发之 按钮控件

webphp 13年前
     <p style="text-indent:0px;margin:5px auto;">一.Button:<span style="font:7pt 'Times New Roman';"> </span><span style="line-height:19px;font-family:宋体;">这个控件只是一个基础控件,通过</span>blend<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;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Button</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;">="Button1"</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;">="81"</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;">="135,99,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;">="button1"</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;">="213"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Click</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="button1_Click"</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;"> Foreground</span><span style="line-height:19px;color:blue;">="Beige"</span><span style="line-height:19px;color:red;"> BorderBrush</span><span style="line-height:19px;color:blue;">="Yellow"</span><span style="line-height:19px;color:red;"> BorderThickness</span><span style="line-height:19px;color:blue;">="5"</span> <span style="line-height:19px;color:blue;"> /></span></span></p>    <p style="text-indent:0px;margin:5px auto;"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Click</span><span style="line-height:19px;font-family:宋体;color:#a31515;font-size:9.5pt;">:响应点击的事件。</span></p>    <p style="text-indent:0px;margin:5px auto;"><span style="line-height:19px;font-family:宋体;color:#a31515;font-size:9.5pt;"> </span></p>    <p style="text-indent:0px;margin:5px auto;"><span style="line-height:19px;font-family:宋体;color:#000000;">通过使用</span><span style="line-height:19px;color:#000000;">blend</span><span style="line-height:19px;font-family:宋体;color:#000000;">工具可以设置按钮的多种效果:</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;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">Button</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;">="Button2"</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;">="81"</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;">="135,237,0,0"</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;">="button2"</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;">="213"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Foreground</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Beige"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> BorderBrush</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Yellow"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> BorderThickness</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="5"</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <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:#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;">Button.Background</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 105pt;" 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;">LinearGradientBrush</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> EndPoint</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="0.5,1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> MappingMode</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="RelativeToBoundingBox"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> StartPoint</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="0.5,0"></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;">GradientStop</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Color</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="#FFF9F9F9"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Offset</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="0.543"/></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;">GradientStop</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Color</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="#FFF90808"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Offset</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="0.996"/></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;">GradientStop</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Color</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Red"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Offset</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="0.03"/></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;">LinearGradientBrush</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:#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;">Button.Background</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:#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;">Button</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 21pt;" 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;">Button</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;">="Button3"</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;">="81"</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;">="135,394,0,0"</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;">="button3"</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;">="213"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> Foreground</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Beige"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> BorderBrush</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Yellow"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> BorderThickness</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="5"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> ClickMode</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="Press"</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <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:#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;">Button.Background</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:#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;">ImageBrush</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;"> ImageSource</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;"> Stretch</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">="UniformToFill"/></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;">Button.Background</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:#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;">Button</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"></p>    <p style="text-indent:0px;margin:5px auto;">二.HyperlinkButton:<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:宋体;">超链接按钮,这个按钮可以navigate本地和web</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;font-size:9.5pt;" lang="EN-US"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;" lang="EN-US">HyperlinkButton</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;" lang="EN-US"> Content</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;" lang="EN-US">="HyperlinkButton"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;" lang="EN-US"> Height</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;" lang="EN-US">="61"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;" lang="EN-US"> HorizontalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;" lang="EN-US">="Left"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;" lang="EN-US"> Margin</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;" lang="EN-US">="111,117,0,0"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;" lang="EN-US"> Name</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;" lang="EN-US">="hyperlinkButton1"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;" lang="EN-US"> VerticalAlignment</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;" lang="EN-US">="Top"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;" lang="EN-US"> Width</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;" lang="EN-US">="233"</span><span style="line-height:19px;font-family:NSimSun;color:red;font-size:9.5pt;" lang="EN-US"> NavigateUri</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;" lang="EN-US">="/Windows1.xaml" ></span></p>    <p style="text-indent:0px;margin:5px auto;"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;" lang="EN-US">NavigateUri</span><span style="line-height:19px;font-family:宋体;color:#a31515;font-size:9.5pt;">:如果不指定TargetName属性,就只能用</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;" lang="EN-US">Relative</span><span style="line-height:19px;font-family:宋体;color:#a31515;font-size:9.5pt;">的链接。</span></p>    <p style="text-indent:0px;margin:5px auto;"><span style="line-height:19px;font-family:宋体;color:#a31515;font-size:9.5pt;"><HyperlinkButton Content="HyperlinkButton" Height="48" HorizontalAlignment="Left" Margin="88,459,0,0" Name="hyperlinkButton1" VerticalAlignment="Top" Width="238" NavigateUri="<a style="color:#638f27;" href="/misc/goto?guid=4959500794314391664">http://www.baidu.com/myZoom/dzcoutput.xml</a>" TargetName="_self" /></span></p>    <p style="text-indent:0px;margin:5px auto;"> 三.RepeatButton:<span style="font:7pt 'Times New Roman';"> </span><span style="line-height:19px;font-family:宋体;">可以在按下后,不断的发出</span>click<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;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">RepeatButton</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;">="RepeatButton"</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;">="100"</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;">="76,196,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;">="repeatButton1"</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;">="315"</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:red;"> Click</span><span style="line-height:19px;color:blue;">="repeatButton1_Click"/></span></span></p>    <p style="text-indent:0px;margin:5px auto;"> <span style="line-height:19px;font-family:宋体;">四.</span>ToggleButton:<span style="font:7pt 'Times New Roman';"> </span><span style="line-height:19px;font-family:宋体;">触发按钮,可以使按钮有二种</span>(Checked<span style="line-height:19px;font-family:宋体;">、</span>UnChecked)<span style="line-height:19px;font-family:宋体;">还是三种状态</span>(<span style="line-height:19px;font-family:宋体;">多了一个</span>Indeterminate<span style="line-height:19px;font-family:宋体;">状态</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;font-size:9.5pt;"><</span><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">ToggleButton</span><span style="line-height:19px;font-family:NSimSun;font-size:9.5pt;"> <span style="line-height:19px;color:red;"> Content</span><span style="line-height:19px;color:blue;">="ToggleButton"</span><span style="line-height:19px;color:red;"> Height</span><span style="line-height:19px;color:blue;">="182"</span><span style="line-height:19px;color:red;"> HorizontalAlignment</span><span style="line-height:19px;color:blue;">="Left"</span><span style="line-height:19px;color:red;"> Margin</span><span style="line-height:19px;color:blue;">="104,177,0,0"</span><span style="line-height:19px;color:red;"> Name</span><span style="line-height:19px;color:blue;">="toggleButton1"</span><span style="line-height:19px;color:red;"> VerticalAlignment</span><span style="line-height:19px;color:blue;">="Top"</span><span style="line-height:19px;color:red;"> Width</span><span style="line-height:19px;color:blue;">="268"</span><span style="line-height:19px;color:red;"> IsThreeState</span><span style="line-height:19px;color:blue;">="True"</span><span style="line-height:19px;color:red;"> Checked</span><span style="line-height:19px;color:blue;">="toggleButton1_Checked"</span><span style="line-height:19px;color:red;"> Unchecked</span><span style="line-height:19px;color:blue;">="toggleButton1_Unchecked"</span> <span style="line-height:19px;color:red;"> Indeterminate</span><span style="line-height:19px;color:blue;">="toggleButton1_Indeterminate"/></span></span></p>    <p style="text-indent:0px;margin:5px auto;"><span style="line-height:19px;font-family:NSimSun;color:#a31515;font-size:9.5pt;">IsThreeState</span><span style="line-height:19px;font-family:宋体;color:#a31515;font-size:9.5pt;">:设置是否有三种状态</span></p>    <p style="text-indent:0px;margin:5px auto;"> <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;">Button.Content</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:#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></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;">Button.Content</span><span style="line-height:19px;font-family:NSimSun;color:blue;font-size:9.5pt;">></span></p>