Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

WinForms End-User Designer - How to customize the Smart Tag menu of a control

$
0
0

This example demonstrates how to customize the XRLabel's Smart Tag menu to make the following properties available: TextData Binding (the Text property)WidthFHeightFLocationF.XLocationF.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


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>