【发布时间】:2011-07-23 21:32:41
【问题描述】:
可能重复:
Difference between TargetType=“controlType” and TargetType=“{x:Type controlType}”
when to use {x:Type …}?
在Difference between TargetType="controlType" and TargetType="{x:Type controlType}"我可以看到这些不同的设置类型的方法基本相同。但我想知道是否有任何性能影响,因为我猜 {x:Type} 将实例化一个标记对象。
【问题讨论】:
-
我认为您问题中的链接问题可能已经回答了这个问题。您在这里遇到性能问题吗?或者,如果您只需要澄清其他问题的答案,您可以在其他问题的答案的评论中提出要求。
标签: .net wpf performance xaml targettype