dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrolbase-1d0d74f5.md
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
public Style ChartItemStyle { get; set; }
Public Property ChartItemStyle As Style
| Type | Description |
|---|---|
| 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
dashboardControl.Resources = new ResourceDictionary { Source = new Uri("pack://application:,,,/ConstantLineExtension.WPF;component/ConstantLineModuleStyle.xaml") };
dashboardControl.ChartItemStyle = dashboardControl.Resources["chartStyle"] as Style;
dashboardControl.CustomExport += CustomExport;
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;
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