xaml - ContentPresenter Not Always Working in Silverlight Template -
when customize controls through controltemplate, contentpresenter not render control should. why this?
it easier if let me see affected xaml markup. idea on might problem based on rather dirty default behavior of contentpresenter: when used inside controltemplate of contentcontrol, automagically bind content , contenttemplate properties. won't other control type. , therefore has done explicitly.
do have bindings set:
<controltemplate ...> ... <contentpresenter content="{templatebinding ...}" contenttemplate="{templatebinding ...}" /> ... </controltemplate>
Comments
Post a Comment