0

Possible Duplicate:
In WPF, what are the differences between the x:Name and Name attributes?

Why does WPF have x:Name and Name XAML? What's the deal with x:Name?

Community
  • 1
  • 1
patrick
  • 15,066
  • 27
  • 96
  • 157

1 Answers1

7

Long story short: x:Name is an attached property and can thus be set on everything. Name is not an attached property and thus is only available on things that expose a Name property. WPF aliases Name to x:Name so you are safe to always use x:Name and this is what is recommended as you can use it everywhere.

Matt West
  • 2,824
  • 1
  • 18
  • 13