Skip to main content

ApplyStyling Method

Applies styling to the control if the control is initialized and styling is not already applied.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public bool ApplyStyling()

Return Value​

Boolean
A value indicating whether styling is now applied to the control.

Remarks​

The styling system will automatically apply styling when required, so it should not usually be necessary to call this method manually.

See Also​

Reference​

StyledElement Class
Avalonia Namespace