Share via


Control.BackgroundSizing Property

Definition

Gets or sets a value that indicates how far the background extends in relation to this element's border.

public BackgroundSizing BackgroundSizing { get; set; }

Property Value

A value of the enumeration that indicates how far the background extends. The default is InnerBorderEdge.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

You can set this property to OuterBorderEdge to make the element's background extend under the border. If the border is transparent, the background will show through it.

Applies to

Product Versions
WinRT Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also