Back to Devexpress

DashboardDesigner.DashboardItemSelected Event

dashboard-devexpress-dot-dashboardwin-dot-dashboarddesigner-5e2a67d3.md

latest5.4 KB
Original Source

DashboardDesigner.DashboardItemSelected Event

Occurs after you select a dashboard item.

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public event DashboardItemSelectedEventHandler DashboardItemSelected
vb
Public Event DashboardItemSelected As DashboardItemSelectedEventHandler

Event Data

The DashboardItemSelected event's data class is DashboardItemSelectedEventArgs. The following properties provide information specific to this event:

PropertyDescription
SelectedDashboardItemGets a dashboard item for which the event is raised.

Remarks

You can handle the DashboardItemSelectionChanged and DashboardItemSelectionChanged events to detect if the selection within the dashboard item is changed.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DashboardItemSelected event.

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.

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/WebPageItem/WebPageItemExtensionModule.cs#L25

csharp
InitializeUrlBarItem();
designer.DashboardItemSelected += Designer_DashboardItemSelected;
// Other code specific for Designer

winforms-dashboard-display-each-series-in-separate-pane-for-chart-items/CS/MultiPaneExtension/MultiPaneModule.cs#L48

csharp
AddButtonToRibbon();
dashboardDesigner.DashboardItemSelected += DashboardDesigner_DashboardItemSelected;
dashboardDesigner.Dashboard.OptionsChanged += Dashboard_OptionsChanged;

winforms-dashboard-custom-properties/CS/WinForms-Dashboard-Custom-Properties/Modules/ChartScaleBreakModule.cs#L30

csharp
designer.DashboardItemControlUpdated += Designer_DashboardItemControlUpdated;
designer.DashboardItemSelected += Designer_DashboardItemSelected;
designer.DashboardCustomPropertyChanged += Designer_DashboardCustomPropertyChanged;

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/WebPageItem/WebPageItemExtensionModule.vb#L31

vb
InitializeUrlBarItem()
AddHandler designer.DashboardItemSelected, AddressOf Designer_DashboardItemSelected
' Other code specific for Designer

winforms-dashboard-display-each-series-in-separate-pane-for-chart-items/VB/MultiPaneExtension/MultiPaneModule.vb#L45

vb
AddButtonToRibbon()
AddHandler dashboardDesigner.DashboardItemSelected, AddressOf DashboardDesigner_DashboardItemSelected
AddHandler dashboardDesigner.Dashboard.OptionsChanged, AddressOf Dashboard_OptionsChanged

winforms-dashboard-custom-properties/VB/WinForms-Dashboard-Custom-Properties/Modules/ChartScaleBreakModule.vb#L30

vb
AddHandler designer.DashboardItemControlUpdated, AddressOf Designer_DashboardItemControlUpdated
AddHandler designer.DashboardItemSelected, AddressOf Designer_DashboardItemSelected
AddHandler designer.DashboardCustomPropertyChanged, AddressOf Designer_DashboardCustomPropertyChanged

See Also

DashboardDesigner Class

DashboardDesigner Members

DevExpress.DashboardWin Namespace