码迷,mamicode.com
首页 > Windows程序 > 详细

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

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

标签:http   ar   io   for   on   ef   as   tt   res   

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   ar   io   for   on   ef   as   tt   res   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!