dashboard-devexpress-dot-dashboardwin-dot-dashboarddesigner-374469b7.md
Gets or sets the currently selected dashboard item.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
[Browsable(false)]
public DashboardItem SelectedDashboardItem { get; set; }
<Browsable(False)>
Public Property SelectedDashboardItem As DashboardItem
| Type | Description |
|---|---|
| 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.
{
if (dashboardDesigner.SelectedDashboardItem is ChartDashboardItem)
{
void ChangeCustomPropertyValue(object sender, ItemClickEventArgs e) {
DashboardItem dashboardItem = designer.SelectedDashboardItem;
bool newValue = !Convert.ToBoolean(dashboardItem.CustomProperties.GetValue(PropertyName));
CustomDashboardItem<WebPageItemMetadata> selectedCustomItem {
get { return designer.SelectedDashboardItem as CustomDashboardItem<WebPageItemMetadata>; }
}
dashboard-constant-lines/CS/ConstantLineExtension.Win/ConstantLineModule.cs#L126
void OnEditConstantLinesClick(object sender, ItemClickEventArgs e) {
ChartDashboardItem dashboardItem = dashboardDesigner.SelectedDashboardItem as ChartDashboardItem;
using(ConstantLineDialog dialog = new ConstantLineDialog(
Private Sub UpdateBarItems()
If TypeOf dashboardDesigner.SelectedDashboardItem Is ChartDashboardItem Then
Dim chartItem As ChartDashboardItem = TryCast(dashboardDesigner.SelectedDashboardItem, ChartDashboardItem)
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))
Get
Return TryCast(designer.SelectedDashboardItem, CustomDashboardItem(Of WebPageItemMetadata))
End Get
See Also