If a control is not given a name or an id is it still unique, or better yet can it be accessed at all in code? Also if it still identifiable what determines its identity in relationship to other controls that don’t have names or ids?
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 is still unique as each Object. It inherits from Object.
To see the Hashcode with which you can also compare to another Object you can use following code:
example XAML:
code to visualise the HashCode:
but to come back to your question “what determines its identity in relationship to other controls”: Every object is a pointer to an area of memory on the heap. The XAML just tells the compiler how to load the objects. after they are loaded they are referenced by the memory address.