Aracılığıyla paylaş


DataGridLength.IsStar Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
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.

Remarks

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

Silverlight

Supported in: 5, 4

Platforms

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