Recommended

Skip Navigation LinksHome / News / View News

Using FrameworkElement.Name at runtime

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Jul 12, 2010
(0 votes)
Tags: XAML , x:Name , Wolf Schmidt
In this great post, Wolf Schmidt talks about naming elements and provides a lot of useful information on that matter.

Answering a recent silverlight.net forum question got me thinking again about how we've documented the use of FrameworkElement.Name, in particular how you might use it (or abuse it) at run time. Really, this is an area of API that has a few shades of gray, where those shades hadn't been very accurately painted in the SDK topics on MSDN. It is maybe a subject better tackled by a blog post ... like this one.

So, are FrameworkElement.Name and the x:Name attribute really the same thing?

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 2 and 6 and type the answer here:

Join the free SilverlightShow webinar 'Silverlight Behaviors for Designers' on July 14th 2010, 3:00pm EDT.
In this session on adding interactivity UX Designer and Consultant Zhivko Dimitrov will show how to bring your designs to life without writing a single line of code! Find out how to use drag & drop behaviors to control animations, add navigation, and simulate validation states. Read more | Register Now (hide this)