4

In Silverlight XAML, I can give a control a name like this:

<Button Name="MyButton" /> 

or like this:

<Button x:Name="MyButton" /> 

So, what's the difference?

2
  • same question has been asked before: stackoverflow.com/questions/589874/… Commented Aug 19, 2011 at 9:10
  • @Toolsche: Its not quite the same, that question is in the WPF context. Commented Aug 19, 2011 at 11:27

2 Answers 2

1

Take a look to Is there any difference in x:name and name for controls in xaml file? post.

Sign up to request clarification or add additional context in comments.

Comments

0

Here is an answer, as posted in response to the same question (asked in relation to WPF).

1 Comment

That answer you point is useful but refers to WPF. In Silveright there is no RuntimeNamePropertyAttribute, x:Name is only mapped to Name if present in Silverlight.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.