VisualElementExtensions.StretchToParentWidth

Declaration

public static void StretchToParentWidth(UIElements.VisualElement elem);

Parameters

elem The element to be aligned with its parent

Description

Aligns a VisualElement's left and right edges with the corresponding edges of its parent.

This method provides a way to set the following styles in one operation: - IStyle.position is set to Position.Absolute - IStyle.left is set to 0 - IStyle.right is set to 0


Did you find this page useful? Please give it a rating: