Skip to content
<devsocial/>
NewsLearnBooksForumsCommunitiesConferences
  • Videos
  • Articles
  • Blogs
  • Chapters
  • Careers
  • Fuel
  • Hire AI talent
  • Events
  • Interviews
  • Stories
  • Companies
  • Newsletter
  • Get the app
LiveVideosArticlesBlogsChaptersCareersFuelHire AI talentEventsInterviewsStoriesCompaniesNewsletterGet the app
Sign inJoin free
  1. Blogs

XAML Namescope Considerations

In this article you will learn how to use XAML Namescope Considerations.

Dinesh BeniwalDinesh BeniwalSep 8, 2009Published Sep 7, 2009, 8:00 PM EDTUpdated Sep 8, 2009, 12:41 AM EDT · 1 min read
+ Follow
4,7560
Reactions
0
Share
LinkedInX
History

Any x:Name or Name attribute values assigned in the XAML content for Load input are written into a new XAML namescope that corresponds to the created object tree. This XAML namescope will remain distinct even if the object tree that is created is subsequently connected to the primary XAML namescope of the currently loaded Silverlight content root. This means that if you subsequently attempt to call FindName to find the named elements that came from the Load output, you will not find them if you call FindName from an object in the primary XAML namescope. A recommendation is to always retain a variable for the object that is the root of the object tree that is added. If you call FindName from that object, then you are working against the created XAML namescope and will be able to return objects in that tree by name, and bridge the gap between XAML namescopes. For details on XAML namescope concepts, see XAML Namescopes.
<devsocial/>

Formerly C# Corner. A community of 3.1M developers learning, building and earning together.

Company

About UsPartnersBrand GuidelinesContact UsHackIndia (opens in a new tab)

Community

DevSocial LiveChaptersCommunitiesConferencesMembersMVPsMember Stories

Resources

LearnCareersHire DevelopersRewardsNewsletterIdeasHelp center

Legal

Privacy PolicyTermsReport a BugSitemap
© 2026 DevSocial. All contents are copyright of their authors.DevSocial is a community of AI-native builders.

MC 0.615 · 27 Nov 2026, 09:42 EST

Dinesh Beniwal

Dinesh BeniwalTOP 10

I am working as VP Content Manager, responsible for content publishing, content development,…

Rank #9684 contributions8.9M reads

More from Dinesh →
+ Follow

0 comments

Comments

Join the conversation! Your thoughts help the community grow.

Join to leave a comment

Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.

Create free accountSign in
DevSocial Blogs

More blogs

  1. 01What Makes a Crypto Exchange Different from a Traditional Stock Exchange?Naina Wilson · 2,810 reads
  2. 02One Day, 25 Hours: Filtering By Date Across Time Zones In .NETAdrian Strugała · 2,796 reads
  3. 03How to Clone Dataverse Records with Power Fx in Model-Driven AppsTamilarasu Arunachalam · 2,945 reads
  4. 04"We Can Just Replay It": The Most Expensive Sentence in Data EngineeringDaniel Nadia · 3,928 reads
  5. 05🔐 Single Sign-On (SSO) with ASP.NET Core & AngularMd. Abdullah Al Bake · 4,910 reads
All blogs →
2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegisterMembers onlyDevSocial PressAI native · 02The Builders SeriesClaude for AI-Native BuildersA beginner's guide for creators and innovators.Mahesh Chand171 pages · BeginnerFeatured eBookClaude for AI-Native Builders171 pages · Members download free.Download now
Publish yours

Write a blog post and earn +250 SHARP when it is approved.

Write a blog