Version

WidthInInfiniteContainers Property (GridViewSettings)

Returns/sets a value that is used as default for the width of the control implementing the view when used in a container with infinite width available.
Syntax
'Declaration
 
Public Property WidthInInfiniteContainers As Double
public double WidthInInfiniteContainers {get; set;}
Remarks

Certain controls such as System.Windows.Controls.ScrollViewer and System.Windows.Controls.StackPanel make an infinite amount of height and width available to the controls they contain. If you place a control that implements a GridView (e.g., XamDataGrid or XamDataPresenter with a XamDataPresenter.View set to an instance of GridView) inside one of these controls you may want to set this property to constrain the width of the control to a convenient value. If you don't set this property a default width of System.Windows.SystemParameters.VirtualScreenWidth will be used.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also