[]
Occurs when an action is performed on the document in the viewer.
public event EventHandler<Viewer.ActionEventArgs> Action
Type | Description |
---|---|
EventHandler<Viewer.ActionEventArgs> | Occurs when an action is performed on the document in the viewer. |
This event is triggered for following type actions:
To cancel the default action, set the Cancel property of the event arguments totrue
.
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}");
}
};