[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Action

Action Event

Occurs when an action is performed on the document in the viewer.

Namespace: GrapeCity.ActiveReports.Viewer.Wpf
Assembly: MESCIUS.ActiveReports.Viewer.Wpf.dll
Syntax
public event EventHandler<Viewer.ActionEventArgs> Action
Returns
Type Description
EventHandler<Viewer.ActionEventArgs> Occurs when an action is performed on the document in the viewer.
Remarks

This event is triggered for following type actions:

To cancel the default action, set the Cancel property of the event arguments to true.
Examples
viewer.Action += (sender, e) =>
{
    // Check if there's a specific action defined
    if (e.Action != null)
    {
        // Implement custom action handling logic here
        // This could involve checking the type of action and responding accordingly
        Debug.WriteLine($"Handling custom action: {action.GetType().Name}");
    }
};