Back to Devexpress

DashboardControlBase.ChartItemStyle Property

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrolbase-1d0d74f5.md

latest3.7 KB
Original Source

DashboardControlBase.ChartItemStyle Property

Gets or sets the style applied to the ChartDashboardLayoutItem. This is a dependency property.

Namespace : DevExpress.DashboardWpf

Assembly : DevExpress.Xpf.Dashboard.v25.2.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

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

Property Value

TypeDescription
Style

A Style object that is the style applied to the ChartDashboardLayoutItem.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ChartItemStyle 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.

dashboard-constant-lines/CS/ConstantLineExtension.WPF/ConstantLineModule.cs#L30

csharp
dashboardControl.Resources = new ResourceDictionary { Source = new Uri("pack://application:,,,/ConstantLineExtension.WPF;component/ConstantLineModuleStyle.xaml") };
dashboardControl.ChartItemStyle = dashboardControl.Resources["chartStyle"] as Style;
dashboardControl.CustomExport += CustomExport;

wpf-dashboard-custom-properties/CS/Wpf-Dashboard-Custom-Properties/Modules/ChartItemModule/ChartItemModule.cs#L16

csharp
ResourceDictionary resources = (ResourceDictionary)Application.LoadComponent(new Uri("/Wpf-Dashboard-Custom-Properties;component/Modules/ChartItemModule/ChartResources.xaml", UriKind.Relative));
AssociatedObject.ChartItemStyle = resources["chartStyle"] as Style;
AssociatedObject.CustomExport += DashboardControl_CustomExport;

wpf-dashboard-custom-properties/VB/Wpf-Dashboard-Custom-Properties/Modules/ChartItemModule/ChartItemModule.vb#L18

vb
Dim resources As ResourceDictionary = CType(Application.LoadComponent(New Uri("/Wpf-Dashboard-Custom-Properties;component/Modules/ChartItemModule/ChartResources.xaml", UriKind.Relative)), ResourceDictionary)
AssociatedObject.ChartItemStyle = TryCast(resources("chartStyle"), Style)
AddHandler AssociatedObject.CustomExport, AddressOf DashboardControl_CustomExport

See Also

DashboardControlBase Class

DashboardControlBase Members

DevExpress.DashboardWpf Namespace