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# 中以编程方式从 x:name 中获取价值......我正在使用 c#/xaml 的 Metro 应用程序中工作。
<Border x:Name="border1" BorderBrush="Black"> <Image Width="95" Height="95" /> </Border>
有没有办法在 c# 中获得“border1”?