dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrolbase-c7a3ccbb.md
Gets or sets the style applied to the GridDashboardLayoutItem. This is a dependency property.
Namespace : DevExpress.DashboardWpf
Assembly : DevExpress.Xpf.Dashboard.v25.2.dll
NuGet Package : DevExpress.Wpf.Dashboard
public Style GridItemStyle { get; set; }
Public Property GridItemStyle As Style
| Type | Description |
|---|---|
| Style |
A Style object that is the style applied to the GridDashboardLayoutItem.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the GridItemStyle property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-dashboard-how-to-add-custom-caption-menu/CS/WpfDashboardCustomCaptionMenu/MainWindow.xaml#L107
</dxdash:DashboardControl.DashboardItemStyle>
<dxdash:DashboardControl.GridItemStyle>
<Style TargetType="{x:Type dxdash:GridDashboardLayoutItem}">
ResourceDictionary resources = (ResourceDictionary)Application.LoadComponent(new Uri("/Wpf-Dashboard-Custom-Properties;component/Modules/GridFixedColumnModule/GridResources.xaml", UriKind.Relative));
AssociatedObject.GridItemStyle = resources["gridStyle"] as Style;
}
Dim resources As ResourceDictionary = CType(Application.LoadComponent(New Uri("/Wpf-Dashboard-Custom-Properties;component/Modules/GridFixedColumnModule/GridResources.xaml", UriKind.Relative)), ResourceDictionary)
AssociatedObject.GridItemStyle = TryCast(resources("gridStyle"), Style)
End Sub
See Also