Does assigning the attribute “Name” have any impact on objects in XAML? All of the objects I want to provide a Name value for have currently have no Name value.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It will set the Name property on the class. If the XAML is associated with code-behind, the XAML compiler will also expose the named elements to the code-behind (assuming that Name maps to x:Name, which is true for most WPF controls you would represent with XAML.) You can also use x:Name explicitly if you have a class that doesn’t support a Name property.