ContentPresenterUpdateChild Method
Namespace: Avalonia.Controls.PresentersAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public void UpdateChild()
member UpdateChild : unit -> unit
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.