Windows Phone 7Li Jingnan / Wang Tao2011-7-151
2 days2
aboutanytao| Ethos<ethos:Member   id = “Wang Tao”   msn = anytao@live.comweibo = http://weibo.com/anytaorunat = “Senior System Architect”/>Jason | Ethos<ethos:Member   id = “Li Jingnan”   msn = zengnami@hotmail.comweibo= http://weibo.com/jn1981runat = “SE”/>
abouthttp://book.anytao.net
03 application barWang Tao / 2011-07-15
session outlineapplication barnavigationoverviewframe & pageapplication baroverviewpage navigationmethodsquery stringgoback
navigations7
frame & pagePhoneApplicationFrameTop Container: PhoneApplicationFrameIncluding:Page controlSystem TrayApplication BarPhoneApplicationPageFill content of FramePage inherit from PhoneApplicationPageIncluding:TitleApplication Bar8
ApplicationBaruse ApplicationBar instead of creating you own menu systemApplicationBarIconButtonup to 4buttonsdon’t fill all 4 slots if not needsize: 48×48ApplicationBarMenuItemup to 5 menusavoid long text9
Application Bar in xaml10
ApplicationBar and Landscope11
Application Bar opacity12
page navigation13Silverlight on Windows PhoneSimilar like web pageNavigate by URIStatelessprivate void hyperlinkButton1_Click(object sender, RoutedEventArgs e){ NavigationService.Navigate(              new Uri("/SecondPage.xaml",        UriKind.RelativeOrAbsolute)); }
navigation methodOnNavigatingFromOnNavigatedFromOnNavigatedTo14
query stringsend query stringprivate void passParam_Click(object sender, RoutedEventArgs e){NavigationService.Navigate(new Uri("/SecondPage.xaml?msg=" + 				    textBox1.Text, UriKind.Relative));}get query stringprotected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e){base.OnNavigatedTo(e);  string msg = string.Empty;        if (NavigationContext.QueryString.TryGetValue("msg", out msg))	textBlock1.Text = msg;           }15
go backprivate void button1_Click(object sender, RoutedEventArgs e){ NavigationService.GoBack(); }16
navigate in UserControl17
demo18/ app bar/ app bar menu/ landscape / navigation service02 application bar
practice19build your context menu
20thank youwww.anytao.com
21

More Related Content

PDF
Windows Phone 7 in azure
PDF
Anytao 让windows phone应用在云端翱翔
PPTX
12 wp7 marketing windows phone applications
PPTX
11 wp7 designing applicationsusingexpressionblend
PPTX
10 wp7 local database
PPTX
13 wp7 working with azure
PDF
The Near Future of CSS
PDF
Classroom Management Tips for Kids and Adolescents
Windows Phone 7 in azure
Anytao 让windows phone应用在云端翱翔
12 wp7 marketing windows phone applications
11 wp7 designing applicationsusingexpressionblend
10 wp7 local database
13 wp7 working with azure
The Near Future of CSS
Classroom Management Tips for Kids and Adolescents

Similar to 03 wp7 application bar (20)

PDF
03.Controls in Windows Phone
PDF
Windows Phone 7: Navigating Between Pages
PPTX
Windows Phone 8 - 3 Building WP8 Applications
PDF
Windows phone 8 session 4
PPTX
03 page navigation and data binding in windows runtime apps
PPTX
"Discover windows phone" 02. page navigation
PDF
2012/02/15 Android 4.0 UI Design Tips@happy designer meetup
PDF
Android 4.0 UI Design Tips
PPTX
Windows Phone 7 Bing Maps Control
PPTX
Introduction to Universal Apps
PPTX
Developing for Windows Phone 7
PPTX
Windows Runtime Apps
PDF
Twelve ways to make your apps suck less
PPTX
Introduction to Universal Apps-Jaliya Udagedara
PPTX
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
PPTX
WP7Dev with HTML & JavaScript
PPTX
Windows Phone 7 and Silverlight
PPTX
Navigation application in silverlight
PPTX
Windows Phone 7 Unleashed Session 1
PPTX
MSTC'14 Window Phone Workshop_Day 1
03.Controls in Windows Phone
Windows Phone 7: Navigating Between Pages
Windows Phone 8 - 3 Building WP8 Applications
Windows phone 8 session 4
03 page navigation and data binding in windows runtime apps
"Discover windows phone" 02. page navigation
2012/02/15 Android 4.0 UI Design Tips@happy designer meetup
Android 4.0 UI Design Tips
Windows Phone 7 Bing Maps Control
Introduction to Universal Apps
Developing for Windows Phone 7
Windows Runtime Apps
Twelve ways to make your apps suck less
Introduction to Universal Apps-Jaliya Udagedara
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
WP7Dev with HTML & JavaScript
Windows Phone 7 and Silverlight
Navigation application in silverlight
Windows Phone 7 Unleashed Session 1
MSTC'14 Window Phone Workshop_Day 1
Ad

More from Tao Wang (18)

PDF
团队高效沟通的秘密
PDF
高效团队的秘密
PDF
Worktile 更好用的企业协作平台
PDF
Hello, Worktile Pro
PPTX
09 wp7 multitasking
PPTX
08 wp7 push notification
PPTX
08 wp7 push notification
PPTX
07 wp7 application lifecycle
PPTX
06 wp7 isolation storage
PPTX
03 wp7 application bar
PPTX
05 wp7 launchers and choosers
PPTX
04 wp7 pivot and panorama
PPTX
02 wp7 building silverlight applications
PPTX
01 wp7 introduction
PDF
Azure 迁移之道
PDF
01 windows azure platform overview
PPTX
Facebook and its development
PPTX
What is silverlight?
团队高效沟通的秘密
高效团队的秘密
Worktile 更好用的企业协作平台
Hello, Worktile Pro
09 wp7 multitasking
08 wp7 push notification
08 wp7 push notification
07 wp7 application lifecycle
06 wp7 isolation storage
03 wp7 application bar
05 wp7 launchers and choosers
04 wp7 pivot and panorama
02 wp7 building silverlight applications
01 wp7 introduction
Azure 迁移之道
01 windows azure platform overview
Facebook and its development
What is silverlight?
Ad

Recently uploaded (20)

PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Configure Apache Mutual Authentication
PDF
Flame analysis and combustion estimation using large language and vision assi...
PPTX
Build Your First AI Agent with UiPath.pptx
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPTX
TEXTILE technology diploma scope and career opportunities
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
A review of recent deep learning applications in wood surface defect identifi...
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Zenith AI: Advanced Artificial Intelligence
Configure Apache Mutual Authentication
Flame analysis and combustion estimation using large language and vision assi...
Build Your First AI Agent with UiPath.pptx
OpenACC and Open Hackathons Monthly Highlights July 2025
TEXTILE technology diploma scope and career opportunities
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
A contest of sentiment analysis: k-nearest neighbor versus neural network
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
Convolutional neural network based encoder-decoder for efficient real-time ob...
A review of recent deep learning applications in wood surface defect identifi...
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Benefits of Physical activity for teenagers.pptx
Consumable AI The What, Why & How for Small Teams.pdf
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Microsoft Excel 365/2024 Beginner's training
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
UiPath Agentic Automation session 1: RPA to Agents
Enhancing plagiarism detection using data pre-processing and machine learning...

03 wp7 application bar

Editor's Notes

  • #9: 所有应用程序必须要有一个根Phone Frame可以从它继承自定义
  • #10: 在创建之前一定要先在Reference里加入Microsoft.Phone.shell,并且在xaml页面加上xmlns:shell=”clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone.Shell”.菜单栏设计最佳实践在设计菜单栏时要考虑的有以下几点:* 利用系统提供的菜单栏而非自己创建的菜单系统。这样能够使设备上所有应用程序保持统一的用户体验。而且系统提供的菜单栏支持动画和屏幕变换。* 用系统默认的主题而非自定义的颜色。使用自定义颜色会影响图标按钮和菜单动画的效果,而且在某些显示设置下会更耗电。* 菜单栏的透明度可以任意调整,但这里推荐只使用0,0.5和1。* 如果菜单栏的透明度小于1,当前显示页面大小会和屏幕大小一样,菜单栏会遮在它上面。如果透明度为1,显示页面会自动改变大小以适应未被菜单栏遮住的区域。图标按钮设计最佳实践* 用作图标的图片应该是使用了a通道的图片,其背景色为透明,前景色为白色。菜单栏会根据系统主题样式来改变图标的颜色。如果使用了带有背景色的图片,会导致不可预知的问题。* 图标按钮上的圆圈是在运行时由菜单栏加上去的,不需要在源图片里添加圆圈。* 用作图标的图片大小应该是48x48像素。图片内容的大小应该不超出26x26像素的范围,这样才不会被菜单栏加上的圆圈遮住。* 不要设置后退按钮。因为设备上的后退按钮就是专门指定用于页面后退的。* 把最常用的功能设置在图标按钮上。如果某些功能用图标不容易理解,就考虑用菜单项。* 图标按钮上的图片退便在转屏时不要有歧义。* 可以直接用于你的程序中的图标可以从这里下载。 菜单项设计最佳实践* 避免使用超过5个的菜单项,否则用户必须滚动屏幕才能看到。* 在单个菜单项中避免使用过长的文字,否则会引起截断。推荐菜单项内容长度为14到20个英文字符之间。* 为保证良好的用户体验,所有的菜单项和图标按钮的文字都会被变成小写字符。
  • #11: Silverlight on Windows Phone基于页面导航模型与Web页面模型相似通过URI标识每个页面每个页面是无状态的
  • #12: 当Page1切换到Page21.Page1执行OnNavigatingFrom2.Page1执行OnNavigatedFrom3.Page2执行OnNavigateToOnNavigatingFrom当Page不再是活动页面前OnNavigatedFrom当Page不再是活动页面时OnNavigatedTo当Page被激活时