Articles → WPF → Difference Between X:name And X:key In Wpf
Difference Between X:name And X:key In Wpf
x:key | x:name |
---|
x:key is for uniquely identifying the resources in resource dictionary | x:name is for uniquely identifying UI elements |
x:key cannot be accessed from code behind | x:name can be accessed from code behind |