DataGridLength.IsStar Property

Gets a value that indicates whether UnitType property is set to Star, which means space is distributed by weighted proportion

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)


Public ReadOnly Property IsStar As Boolean
public bool IsStar { get; }

Property Value

Type: System.Boolean
true if the UnitType property is set to Star; otherwise false.


The star sizing mode is used to distribute available space by weighted proportions.

In Extensible Application Markup Language (XAML), star values are expressed as * or 2*. In the first case, the column would receive one times the available space; in the second case, the column would receive two times the available space, and so on.

Version Information


Supported in: 5, 4


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.