c# – 我最近开始自己学习WPF.声明名称与x:名称有什么区别?
发布时间:2020-12-15 04:13:38 所属栏目:百科 来源:网络整理
导读:例如,我有这个代码: Grid Rectangle Name="TheRectangle" Fill="AliceBlue" Height="100" Width="100" /Rectangle/Grid VS. Grid Rectangle x:Name="TheRectangle" Fill="AliceBlue" Height="100" Width="100" /Rectangle/Grid 非常感谢你提供的信息.我很高
例如,我有这个代码:
<Grid> <Rectangle Name="TheRectangle" Fill="AliceBlue" Height="100" Width="100"> </Rectangle> </Grid> VS. <Grid> <Rectangle x:Name="TheRectangle" Fill="AliceBlue" Height="100" Width="100"> </Rectangle> </Grid> 非常感谢你提供的信息.我很高兴能够学习这样的新东西. :d 解决方法
wpfwiki
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |