| Visual Basic (Declaration) | |
|---|---|
Public Property ItemContainerStyle As Style | |
| C# | |
|---|---|
public Style ItemContainerStyle {get; set;} | |
Return Value
The Style that will be applied to the containers (DataRow) of the data items in the details to which the configuration is applied.All examples in this topic assume that the grid is bound to the Employees table of the Northwind database, unless stated otherwise.
The following example demonstrates how to provide an item-container style for the Employee_Orders data relation.
| XAML | Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" | |
Changes made to the item-container style will only be applied when the detail configuration is reapplied (i.e., when a detail is re-expanded).
Changes made to the ItemContainerStyle or ItemContainerStyleSelector properties will not be reflected on existing containers (items that are visible in the viewport) until their containers are recreated or the grid is refreshed. Items that were not visible when the new style or selector were set will use the new style.
Supported Frameworks: Microsoft .NET Framework version 3.5
Copy Code