Back to Devexpress

DashboardDesigner.SelectedDashboardItem Property

dashboard-devexpress-dot-dashboardwin-dot-dashboarddesigner-374469b7.md

latest5.4 KB
Original Source

DashboardDesigner.SelectedDashboardItem Property

Gets or sets the currently selected dashboard item.

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
[Browsable(false)]
public DashboardItem SelectedDashboardItem { get; set; }
vb
<Browsable(False)>
Public Property SelectedDashboardItem As DashboardItem

Property Value

TypeDescription
DashboardItem

A DashboardItem descendant that specifies the currently selected dashboard item.

|

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

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

csharp
{
    if (dashboardDesigner.SelectedDashboardItem is ChartDashboardItem)
    {

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

csharp
void ChangeCustomPropertyValue(object sender, ItemClickEventArgs e) {
    DashboardItem dashboardItem = designer.SelectedDashboardItem;
    bool newValue = !Convert.ToBoolean(dashboardItem.CustomProperties.GetValue(PropertyName));

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

csharp
CustomDashboardItem<WebPageItemMetadata> selectedCustomItem {
    get { return designer.SelectedDashboardItem as CustomDashboardItem<WebPageItemMetadata>; }
}

dashboard-constant-lines/CS/ConstantLineExtension.Win/ConstantLineModule.cs#L126

csharp
void OnEditConstantLinesClick(object sender, ItemClickEventArgs e) {
     ChartDashboardItem dashboardItem = dashboardDesigner.SelectedDashboardItem as ChartDashboardItem;
     using(ConstantLineDialog dialog = new ConstantLineDialog(

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

vb
Private Sub UpdateBarItems()
    If TypeOf dashboardDesigner.SelectedDashboardItem Is ChartDashboardItem Then
        Dim chartItem As ChartDashboardItem = TryCast(dashboardDesigner.SelectedDashboardItem, ChartDashboardItem)

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

vb
Private Sub ChangeCustomPropertyValue(ByVal sender As Object, ByVal e As ItemClickEventArgs)
    Dim dashboardItem As DashboardItem = designer.SelectedDashboardItem
    Dim newValue As Boolean = Not Convert.ToBoolean(dashboardItem.CustomProperties.GetValue(PropertyName))

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

vb
Get
    Return TryCast(designer.SelectedDashboardItem, CustomDashboardItem(Of WebPageItemMetadata))
End Get

See Also

DashboardDesigner Class

DashboardDesigner Members

DevExpress.DashboardWin Namespace