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

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系列]-高级部分 需要区分的东东

上一篇:WPF:Webbrowser 捕获关闭事件


下一篇:windows下安装memcached