private static OnContentTemplatePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void | ||
d | DependencyObject | ContentPresenter that changed its ContentTemplate. |
e | DependencyPropertyChangedEventArgs | DependencyPropertyChangedEventArgs. |
return | void |
private static void OnContentTemplatePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
ContentPresenter source = d as ContentPresenter;
Debug.Assert(source != null,
"The source is not an instance of ContentPresenter!");
source.ClearRoot ();
}
#endregion ContentTemplate