Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法从 C# 代码后面的代码访问 xaml 文件中定义的标签。
我尝试了该x:name="l"属性,但它告诉我“'l'未定义”:
x:name="l"
谁能通过提供示例帮助我如何从 C# 代码访问控件?
您所做的是正确的,但是 XF Intellisense 非常不稳定。尝试重新启动 VS,并进行清理并构建以查看修复它的 i