Articles → WPF → Difference Between X:name And X:key In Wpf

Difference Between X:name And X:key In Wpf



x:keyx:name
x:key is for uniquely identifying the resources in resource dictionaryx:name is for uniquely identifying UI elements
x:key cannot be accessed from code behindx:name can be accessed from code behind





Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, May 18, 2022

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250