When should we use "x:name" vs "name"?
Answer / Sudhanshu Shekhar Singh
Use x:Name to give a name to an element in XAML so it can be referenced from code-behind. The syntax is x:Name="elementName". Use Name if you want the name to be accessible in Blend or when you're using data binding expressions without code-behind. The syntax for Name is simply "elementName".
| Is This Answer Correct ? | 0 Yes | 0 No |
Why do we need to have these perspective of visual and logical tree in wpf?
Can wpf be used in web applications?
Is it right to say that WPF has replaced DirectX?
Mention the advantage of using xaml?
What is mvvm wpf?
How to add wpf user control in windows form?
What kind of documents are supported in wpf?
What is the difference between wpf and xaml?
What is the path animation in wpf?
What is a .baml file?
What does wpf stand for?
What operating systems does wpf currently support?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)