Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6062311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:02:09+00:00 2026-05-23T09:02:09+00:00

We are deciding if we should standardize on camelCase or PascalCase for XAML resource

  • 0

We are deciding if we should standardize on camelCase or PascalCase for XAML resource names.

Does anybody know if one style is usually favored over the other?

Does Microsoft have any convention for this?

For the record, we use camelCase for fields (that includes WPF controls, in the very few cases where they are named)

To avoid religious arguments: I’m not looking for “this approach is BETTER than the other because…” responses. A good answer would include links to reference material and/or statistics.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:02:10+00:00Added an answer on May 23, 2026 at 9:02 am

    For the x:Name attribute, you should use camel casing, as this generally results in a field being created behind the scenes. Microsoft, doesn’t really follow this though in their default Styles, as control templates are one exception where a backing field is not created.

    For the x:Key attribute, I’ve only ever seen pascal casing used. This includes in Microsoft’s default Styles.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any criteria one should know / think about before deciding to go
I'm learning MVC and am having trouble deciding when I should create a new
Are there any guidelines/best practices for deciding what type of data should be stored
I keep having problems deciding how I should create my classes internally. Initially I
From an SEO perspective, what should I consider when deciding between these three markup
When I design a class I often have trouble deciding if I should throw
I'm having trouble deciding whether not this code should compile or if just both
What structure of a team should one keep in mind when making a team
Given the class definition below. How would one go about deciding whether the stub
Question What criteria should be used when deciding between: specifying a dependency with an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.