This documentation is archived and is not being maintained.

GridView.GridViewItemContainerStyleKey Property

Gets the key that references the style that is defined for cells in column of a GridView.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

public static ResourceKey GridViewItemContainerStyleKey { get; }
/** @property */
public static ResourceKey get_GridViewItemContainerStyleKey ()

public static function get GridViewItemContainerStyleKey () : ResourceKey

 See Remarks. 

Property Value

A ResourceKey that references the style for cells in a column that contains data. The default value references the default style for a ListViewItem control in the current theme.

You can use this read-only static property in Extensible Application Markup Language (XAML) by assigning its static value to another property value. Specifically, this property's static value defines the resource key that is used to look up the default item container style of a GridView. To redefine this style, reference the GridViewItemContainerStyleKey by using the x:Static Markup Extension and assign that value for the x:Key Attribute of the Style that redefines the GridView item container style.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0