VisualElement.MaximumWidthRequest 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 maximum width the element will request during layout in device-independent units. This is a bindable property.
public:
property double MaximumWidthRequest { double get(); void set(double value); };
public double MaximumWidthRequest { get; set; }
member this.MaximumWidthRequest : double with get, set
Public Property MaximumWidthRequest As Double
Property Value
The maximum width in device-independent units (DIUs). The default is PositiveInfinity.
Remarks
The default value is PositiveInfinity.
MaximumWidthRequest is used to ensure the element has no more than the specified width during layout.
Device-independent units (DIUs) provide a consistent unit of measurement across different screen densities. One device-independent unit equals one pixel on a 96-DPI display.