/winforms-dashboard-custom-properties

The following example shows how to create custom properties for the WinForms Dashboard

Primary LanguageC#OtherNOASSERTION

Dashboard for WinForms - Custom Properties

The following example shows how to create custom properties for the WinForms Dashboard.

Files to Look At

The example contains the following custom properties organized into separate modules:

Dashboard Description

DashboardDescriptionModule.cs (VB: DashboardDescriptionModule.vb)

This module enables you to set a dashboard description. The Dashboard Description button is in the Dashboard Ribbon's group on the Home page. The dashboard description is displayed when you hover over the info button in the dashboard title.

Overview:

  • Adds a custom string property for a dashboard.
  • Provides editors to edit a dashboard description.
  • Shows how to add a new item to an existing Ribbon group.

Grid Fixed (Pinned) Columns

GridFixedColumnModule.cs (VB: GridFixedColumnModule.vb)

This module enables you to pin columns in the Grid item. The Fix Columns button is in the Custom Properties Ribbon's group on the Grid's Design page. The button invokes an editor where you can set which columns to pin.

Overview:

  • Adds a custom Boolean property for a specific data item container (Grid columns).
  • Provides an editor that displays a list of grid columns to be pinned.
  • Shows how to create a new group in the Ribbon and add a new item.

Chart Scale Break

ChartScaleBreakModule.cs (VB: ChartScaleBreakModule.vb)

This module enables or disables scale breaks for the Chart dashboard item. The Scale Break button is in the Custom Properties Ribbon's group on the Chart's Design page.

Overview:

  • Adds a boolean custom property for a specific dashboard item (Chart).
  • Shows how to create a new group in the Ribbon and add a new item.
  • Customizes export to display the result in the exported document.

Chart Constant Line

ConstantLineUserValueModule.cs (VB: ConstantLineUserValueModule.vb)

This module allows you to draw a constant line for the selected Chart item. The Constant Line button is in the Custom Properties ribbon group on the Chart's Design page. The button invokes an editor that allows you to set constant line's options.

Overview:

  • Adds a complex custom property for a specific dashboard item (Chart).
  • Shows how to create a new group in the Ribbon and add a new item.
  • Customizes export to display the result in the exported document.

Documentation

More Examples