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
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

Pre-defined system styles and resources in Windows Phone 7

Denzel D. user avatar by
Denzel D.
·
Nov. 01, 10 · Tutorial
Like (0)
Save
Tweet
Share
56.94K Views

Join the DZone community and get the full member experience.

Join For Free

windows phone 7 is based on the metro ui and if you develop for this platform, then you probably want your application to be as consistent as possible with the main ui. to achieve this, many developers try guessing font styles and colors. the problem comes when the end-user decides to change some settings, like, for example, the accent color. if the color itself is hard-coded in the application, then chances are that it won’t look nothing like the main ui. so what is the solution? using pre-defined styles and resources that come bundled with the system is the way to go.

here is a complete list of what those are, and you can use this article as a cheat-sheet when developing windows phone 7 applications.

color styles

key: phonebackgroundcolor
default actual value: #ff1f1f1f

key: phonecontrastforegroundcolor
default actual value: black

key: phoneforegroundcolor
default actual value: white

key: phoneinactivecolor
default actual value: #ff666666

key: phonedisabledcolor
default actual value: #ff808080

key: phonesubtlecolor
default actual value: #ff999999

key: phonecontrastbackgroundcolor
default actual value: #ffffffff

key: phonetextboxcolor
default actual value: #ffbfbfbf

key: phonebordercolor
default actual value: #ffcccccc

key: phonetextselectioncolor
default actual value: black

key: phoneaccentcolor
default actual value: #ff1ba1e2

brush styles

key: phoneaccentbrush
color: phoneaccentcolor

key: phonebackgroundbrush
color: phonebackgroundcolor

key: phonecontrastforegroundbrush
color: phonecontrastforegroundcolor

key: phoneforegroundbrush
color: phoneforegroundcolor

key: phoneinactivebrush
color: phoneinactivecolor

key: phonedisabledbrush
color: phonedisabledcolor

key: phonesubtlebrush
color: phonesubtlecolor

key: phonecontrastbackgroundbrush
color: phonecontrastbackgroundcolor

key: phonetextboxbrush
color: phonetextboxcolor

key: phoneborderbrush
color: phonebordercolor

key: phonetextselectionbrush
color: phonetextselectioncolor

key: transparentbrush
color: transparent

font families

key: phonefontfamilynormal
actual font: segoe wp

key: phonefontfamilylight
actual font: segoe wp light

key: phonefontfamilysemilight
actual font: segoe wp semilight

key: phonefontfamilysemibold
actual font: segoe wp semibold

font sizes

key: phonefontsizesmall
double value: 18.667
point value: 14pt



key: phonefontsizenormal
double value: 20
point value: 15pt



key: phonefontsizemedium
double value: 22.667
point value: 17pt



key: phonefontsizemediumlarge
double value: 25.333
point value: 19pt



key:
phonefontsizelarge
double value: 32
point value: 24pt



key: phonefontsizeextralarge
double value: 42.667
point value: 32pt



key:
phonefontsizeextraextralarge
double value: 72
point value: 54pt

textblock styles

key: phonetextnormalstyle
fontfamily: phonefontfamilynormal
fontsize: phonefontsizenormal
foreground: phoneforegroundbrush



key: phonetexttitle1style
fontfamily:
phonefontfamilysemilight
fontsize:
phonefontsizeextraextralarge
foreground:
phoneforegroundbrush



key: phonetextsubtlestyle
fontfamily: phonefontfamilynormal
fontsize: staticresource phonefontsizenormal
foreground: phonesubtlebrush



key: phonetexttitle2style
fontfamily: phonefontfamilysemilight
fontsize: phonefontsizelarge
foreground: phoneforegroundbrush



key: phonetexttitle3style
fontfamily: staticresource phonefontfamilysemilight
fontsize: phonefontsizemedium
foreground: phoneforegroundbrush



key: phonetextextralargestyle
fontfamily: phonefontfamilysemilight
fontsize: phonefontsizeextralarge
foreground: phoneforegroundbrush



key: phonetextgroupheaderstyle
fontfamily: phonefontfamilysemilight
fontsize: phonefontsizelarge
foreground: phonesubtlebrush



key: phonetextlargestyle
fontfamily: phonefontfamilysemilight
fontsize: phonefontsizelarge
foreground: phoneforegroundbrush



key: phonetextsmallstyle
fontfamily: phonefontfamilynormal
fontsize: phonefontsizesmall
foreground: phonesubtlebrush



key: phonetextcontraststyle
fontfamily: phonefontfamilysemibold
fontsize: phonefontsizenormal
foreground: phonecontrastforegroundbrush



key: phonetextaccentstyle
fontfamily: phonefontfamilysemibold
fontsize: phonefontsizenormal
foreground: phoneaccentbrush

you can download the pdf here .

Windows Phone

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How to Develop a Portrait Retouching Function
  • How To Use Terraform to Provision an AWS EC2 Instance
  • Why Every Fintech Company Needs DevOps
  • PostgreSQL: Bulk Loading Data With Node.js and Sequelize

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: