Summary
- Namespace
- Avalonia
.Controls .Presenters - Containing Type
- ContentPresenter
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 |