This example demonstrates how to customize the XRLabel's Smart Tag menu to make the following properties available: Text, Data Binding (the Text property), WidthF, HeightF, LocationF.X, LocationF.Y.
To achieve this, we do the following:
1. Implement a DevExpress.XtraReports.Design.XRControlDesigner descendant and override XRControlDesigner.RegisterActionLists to provide a custom action list.
2. Create a custom report control by subclassing a required control (Creating Custom Controls) and register the custom control on the toolbox by using the design-time IToolboxService service.
For more information on adding custom controls to the Toolbox and removing standard ones from it, check the following articles:
How to: Register a Custom Control in the End-User Designer's Toolbox.
How to: Make a Custom Control be Available Only for a Specific Report Instance
3. Link this designer to the custom XRControl by using the XRDesigner attribute.
See also:
How to create custom report controls
How to programatically invoke the smart tag once an XRControl is added to report in the WinForms End-User Designer
How to remove the ReportSource property from a smart tag menu of the XRSubreport control
↧
WinForms End-User Designer - How to customize the Smart Tag menu of a control
↧