ContentPresenter.

UpdateChild() Method

Summary

Updates the Child control based on the control's Content.

Syntax

public void UpdateChild()

Remarks

Usually the Child control is created automatically when ApplyTemplate() is called; however for this to happen, the control needs to be attached to a logical tree (if the control is not attached to the logical tree, it is reasonable to expect that the DataTemplates needed for the child are not yet available). This method forces the Child control's creation at any point, and is particularly useful in unit tests.

Return Value

Type Description
void