VisualElement.WidthRequest Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the desired width override of this element.
public double WidthRequest { get; set; }
member this.WidthRequest : double with get, set
Property Value
System.Double
The width this element desires to be.
Remarks
WidthRequest does not immediately change the Bounds of a VisualElement, however setting the WidthRequest will change the result of calls to GetSizeRequest, which will in turn modify the final size the element receives during a layout cycle.