wpf-Name and xName 发表于 2021-02-19 分类于 Language 阅读次数: 本文字数: 239 阅读时长 ≈ 1 分钟 Short answer: just use x:Name to remain consistentSome controls doesn’t have the ‘Name’ property so they are named through ‘x:Name’ instead of ‘Name’. http://stackoverflow.com/questions/589874/in-wpf-what-are-the-differences-between-the-xname-and-name-attributes