Back to Devexpress

DashboardControlBase.GridItemStyle Property

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrolbase-c7a3ccbb.md

latest3.6 KB
Original Source

DashboardControlBase.GridItemStyle Property

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

Declaration

csharp
public Style GridItemStyle { get; set; }
vb
Public Property GridItemStyle As Style

Property Value

TypeDescription
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

xml
</dxdash:DashboardControl.DashboardItemStyle>
<dxdash:DashboardControl.GridItemStyle>
    <Style TargetType="{x:Type dxdash:GridDashboardLayoutItem}">

wpf-dashboard-custom-properties/CS/Wpf-Dashboard-Custom-Properties/Modules/GridFixedColumnModule/GridFixedColumnModule.cs#L19

csharp
ResourceDictionary resources = (ResourceDictionary)Application.LoadComponent(new Uri("/Wpf-Dashboard-Custom-Properties;component/Modules/GridFixedColumnModule/GridResources.xaml", UriKind.Relative));
    AssociatedObject.GridItemStyle = resources["gridStyle"] as Style;
}

wpf-dashboard-custom-properties/VB/Wpf-Dashboard-Custom-Properties/Modules/GridFixedColumnModule/GridFixedColumnModule.vb#L21

vb
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

DashboardControlBase Class

DashboardControlBase Members

DevExpress.DashboardWpf Namespace