Поделиться через


GroupStyle.ContainerStyle Свойство

Определение

Примечание

ContainerStyle может быть изменен или недоступен для выпусков после Windows 8.1 и не поддерживается для ItemsControl.GroupStyle.

Возвращает или задает стиль, применяемый к элементу GroupItem, созданному для каждого элемента.

public:
 property Style ^ ContainerStyle { Style ^ get(); void set(Style ^ value); };
/// [get: Windows.Foundation.Metadata.Deprecated("ContainerStyle may be altered or unavailable for releases after Windows 8.1, and is not supported for ItemsControl.GroupStyle.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("ContainerStyle may be altered or unavailable for releases after Windows 8.1, and is not supported for ItemsControl.GroupStyle.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
Style ContainerStyle();

void ContainerStyle(Style value);
public Style ContainerStyle { [Windows.Foundation.Metadata.Deprecated("ContainerStyle may be altered or unavailable for releases after Windows 8.1, and is not supported for ItemsControl.GroupStyle.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] get; [Windows.Foundation.Metadata.Deprecated("ContainerStyle may be altered or unavailable for releases after Windows 8.1, and is not supported for ItemsControl.GroupStyle.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] set; }
var style = groupStyle.containerStyle;
groupStyle.containerStyle = style;
Public Property ContainerStyle As Style
<GroupStyle ContainerStyle="styleReference" />
- or -
<GroupStyle>
  <GroupStyle.ContainerStyle>
    singleStyle
  </GroupStyle.ContainerStyle>
</GroupStyle>  

Значение свойства

Стиль, применяемый к элементу GroupItem, созданному для каждого элемента. Значение по умолчанию — NULL.

Атрибуты

Применяется к

См. также раздел