首页 > Windows开发 > 详细

[WPF系列]-高级部分 需要区分的东东

时间:2014-12-18 10:14:09      阅读:335      评论:0      收藏:0      [点我收藏+]

ContentControl VS ContentPresenter

What‘s the difference between ContentControl and ContentPresenter?

ContentPresenter is usually used in a ControlTemplate, as a placeholder to say "put the actual content here".

A ContentControl can be used anywhere, not necessarily in a template. It will pick up any DataTemplate defined for the type of content assigned to it

 

Datatemplate VS Controltemplate

[WPF系列]-高级部分 需要区分的东东

原文:http://www.cnblogs.com/HQFZ/p/4171085.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!