一.Button:这个控件只是一个基础控件,通过blend可以创建出多种效果的按钮来。
<ButtonContent="Button1"Height="81"HorizontalAlignment="Left"Margin="135,99,0,0"Name="button1"VerticalAlignment="Top"Width="213"Click="button1_Click"Background="Red"Foreground="Beige"BorderBrush="Yellow"BorderThickness="5"/>
Click:响应点击的事件。
通过使用blend工具可以设置按钮的多种效果:
<ButtonContent="Button2"Height="81"HorizontalAlignment="Left"Margin="135,237,0,0"x:Name="button2"VerticalAlignment="Top"Width="213"Foreground="Beige"BorderBrush="Yellow"BorderThickness="5">
<Button.Background>
<LinearGradientBrushEndPoint="0.5,1"MappingMode="RelativeToBoundingBox"StartPoint="0.5,0">
<GradientStopColor="#FFF9F9F9"Offset="0.543"/>
<GradientStopColor="#FFF90808"Offset="0.996"/>
<GradientStopColor="Red"Offset="0.03"/>
</LinearGradientBrush>
</Button.Background>
</Button>
<ButtonContent="Button3"Height="81"HorizontalAlignment="Left"Margin="135,394,0,0"x:Name="button3"VerticalAlignment="Top"Width="213"Foreground="Beige"BorderBrush="Yellow"BorderThickness="5"ClickMode="Press">
<Button.Background>
<ImageBrushImageSource="/Chrysanthemum.jpg"Stretch="UniformToFill"/>
</Button.Background>
</Button>
二.HyperlinkButton:超链接按钮,这个按钮可以navigate本地和web。
<HyperlinkButtonContent="HyperlinkButton"Height="61"HorizontalAlignment="Left"Margin="111,117,0,0"Name="hyperlinkButton1"VerticalAlignment="Top"Width="233"NavigateUri="/Windows1.xaml"
>
NavigateUri:如果不指定TargetName属性,就只能用Relative的链接。
<HyperlinkButton Content="HyperlinkButton" Height="48" HorizontalAlignment="Left" Margin="88,459,0,0" Name="hyperlinkButton1" VerticalAlignment="Top" Width="238" NavigateUri="http://www.baidu.com/myZoom/dzcoutput.xml"
TargetName="_self" />
三.RepeatButton:可以在按下后,不断的发出click事件。这样就可以完成不断需要变化的需求了,如翻页、移动等。
<RepeatButtonContent="RepeatButton"Height="100"HorizontalAlignment="Left"Margin="76,196,0,0"Name="repeatButton1"VerticalAlignment="Top"Width="315"Click="repeatButton1_Click"/>
四.ToggleButton:触发按钮,可以使按钮有二种(Checked、UnChecked)还是三种状态(多了一个Indeterminate状态)。
<ToggleButtonContent="ToggleButton"Height="182"HorizontalAlignment="Left"Margin="104,177,0,0"Name="toggleButton1"VerticalAlignment="Top"Width="268"IsThreeState="True"Checked="toggleButton1_Checked"Unchecked="toggleButton1_Unchecked"Indeterminate="toggleButton1_Indeterminate"/>
IsThreeState:设置是否有三种状态
<Button.Content>
<ImageSource="Chrysanthemum.jpg"/>
</Button.Content>
分享到:
相关推荐
本书适合于Windows Phone 7开发入门的读者,也适合于从其他智能手机平台转向Windows Phone 7平台的读者,同时对于有Windows Phone 7开发经验的读者也极具参考价值。 本书系统论述了Windows Phone 7操作系统的应用...
因此编写Silverlight for Windows Phone 7开发系列文章,从简单到深入的讲述Silverlight for Windows Phone 的开发。这个系列主要讲述一个网络收音机的开发过程,这一网络收音机程序涉及到Silverlight控件的使用,...
Windows Phone7是微软重新打造windows mobile品牌之后推出的一款产品。
windows phone 8.1 入门教程 常用控件入门使用。
Windows Phone 7开发环境安装教程汇总,供学习参考。
Windows Phone Blog Menu是一个Silverlight导航控件,看起来像Windows Phone 7。 控件中的tiles链接到web站点在你的博客中使用这个控件可以表达你对WP7的喜爱。 Windows Phone Blog Menu is a Silverlight ...
本书旨在分享强大的Microsoft编程工具(诸如Silverlight、XNA和Visual Studio 2010 Express Edition一类)的使用心得,介绍了如何使用现有的C#和.NET编程技能来开发一些Windows Phone 7应用程序。本书作者团队探讨了...
这里介绍使用Silver Light开发第一个WindowsPhone7应用程序。 阅读本文前建议你有编程基础,并假设你已经从Microsoft App Hub网站上下载Windows Phone7开发工具。 我这里使用的是App Hub网站上下载的Microsoft ...
一起学Windows Phone7开发课程,对Windows Phone7各个功能模块开发都有所讨论,是一个由入门到深入的系列课程,是一个面向开发者和对Windows Phone感兴趣人士的课程,通过这个系列课程的学习,可以使您对Windows ...
教程名称: “一起学Windows Phone7开发”系列视频课程(15讲)本专题为“一起学Windows Phone7开发”系列视频课程,共15讲,对Windows Phone7各个功能模块开发都有所讨论,是一个由入门到深入的系列课程,可以使您对...
一起学Windows Phone7开发课程,对Windows Phone7各个功能模块开发都有所讨论,是一个由入门到深入的系列课程,是一个面向开发者和对Windows Phone感兴趣人士的课程,通过这个系列课程的学习,可以使您对Windows ...
WindowsPhone7 日历控件 c#
Windows Phone 7 开发31日谈 全面讲解windows phone 7 应用程序开发所涉及的方方面面。第一天:项目模板;第二天:页面导航;第三天:返回键等。是windows phone 7 应用程序开发的入门必备书。在写“Windows Phone 7...
内容提要: 本书对WindowsPhoneXNA游戏开发的流程进行了详细的讲解,对其核心内容和开发技巧进行了深入的说明。...本书还针对WindowsPhone8的新特性以及如何将WindowsPhone7游戏向WindowsPhone8上迁移做了详细的说明。
第一章 Windows Phone 7 智能型手机 应用程式开发总览 第二章 Windows Phone 7 应用程式 图示制作指南 第三章 Windows Phone 7 广告服务应用 - AdMob 篇 第四章 Silverlight for Windows Phone 7: Hello Windows ...
介绍WINDOWS PHONE 7 系统较为详细的控件
第一本全面介绍Windows Phone 7开发的中文图书! 中国移动开发者社区技术专家 倪浩/Magicboy/苏世耀 联合编 微软最有价值专家 张欣/姜泳涛/林永坚 联袂推荐 系统讲解+操作指导引领您快速入门 项目实例+实战演练帮助...
Windows Phone 7开发教程汇总 Windows Phone 7是微软重新打造windows mobile品牌之后推出的一款产品,从外观到软件代码都有了很大的改动。与此前的Windows Mobile系统相比,Windows Phone 7有着完全不同的屏幕主页和...
windows phone7 开发书籍
WINDOWS PHONE 7 开发指南