DefinitionBase.SharedSizeGroup Property

Definition

Gets or sets a value that identifies a ColumnDefinition or RowDefinition as a member of a defined group that shares sizing properties.

C#
public string SharedSizeGroup { get; set; }

Property Value

A String that identifies a shared-size group.

Remarks

Columns and rows that participate in size-sharing do not respect Star sizing. In the size-sharing scenario, Star sizing is treated as Auto.

Grid size-sharing does not work if you set IsSharedSizeScope to true within a resource template and you define SharedSizeGroup as outside that template.

The SharedSizeGroup property value must satisfy the following rules:

  • Must not be empty.

  • Must only consist of letters, digits, and underscore characters.

  • Must not start with a numeric value.

Dependency Property Information

Item Value
Identifier field SharedSizeGroupProperty
Metadata properties set to true Inherits

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also