Skip to content

ElementExtensions.StretchHorizontal<T> method

Stretches the element horizontally.

public static T StretchHorizontal<T>(this T element)
where T : FrameworkElement
parameter description
T Visual type.
element Target element.

The element for chaining.

Sets: FrameworkElement.HorizontalAlignment