DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

Windows Phone 7 System Tray

Jevgeni Tšaikin user avatar by
Jevgeni Tšaikin
·
Dec. 06, 11 · Interview
Like (0)
Save
Tweet
Share
8.71K Views

Join the DZone community and get the full member experience.

Join For Free

System Tray is an important part of Windows Phone 7 platform as it displays critical system information and notifications to the user. In this post I will cover basic functionality of system tray, explain how to hide/show system tray in your Windows Phone 7 applications programmatically and demonstrate some status icons.

eugenedotnet system tray tutorial for windows phone 7


Basics

  • System Tray is located in the top part of a PhoneApplicationFrame (basically Frame consist of Page element and System Tray)
  • System Tray is mostly used to display status Icons or system-level notification to user(some of the status icons are shown in the last section of this post)
  • In portrait orientation system tray has a height of 32px
  • In landscape orientation system tray has a width of 72px
  • System Tray is also available in Windows Phone 7 Emulator(image bellow)


    windows phone 7 system tray in emulator by eugenedotnet
  • To display System Tray in emulator or on an actual device you have to tap the top of the screen
  • System Tray usually disappears after a few seconds
  • System Tray is not available in full screen mode
  • SystemTray is a class of Microsoft.Phone.Shell namespace

Show/Hide System Tray in applications

To display system tray in XAML page of your application you have to add the following line of code to <phone:PhoneApplicationPage> element (note that by default this attribute is set to True):

 
shell:SystemTray.IsVisible="True"

To hide system tray in your XAML page you have to set this attribute to False (it will add some additional room for the content of your application page):

 
shell:SystemTray.IsVisible="False"

 

Status Icons

Here are some of Windows Phone 7 system tray status icons taken from my HTC Mozart manual.

eugenedotnet windows phone 7 status icons


Source: http://www.eugenedotnet.com/2011/01/w17-windows-phone-7-system-tray/

Windows Phone

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Container Security: Don't Let Your Guard Down
  • Unlocking the Power of Elasticsearch: A Comprehensive Guide to Complex Search Use Cases
  • Real-Time Analytics for IoT
  • Steel Threads Are a Technique That Will Make You a Better Engineer

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: