Skip to main content
All docs
V22.2

CRXPF0007 - An invalid EventToCommand.EventName

Severity: Error

The analyzer detects that the event (specified by name in the EventToCommand.EventName property) does not exist in the object associated with the EventToCommand behavior.

Examples

Invalid Code

<XXX>
    <dxmvvm:Interaction.Behaviors>
        <dxmvvm:EventToCommand EventName="NonExistingEventName"/>
    </dxmvvm:Interaction.Behaviors>
</XXX>

Valid Code

<XXX>
    <dxmvvm:Interaction.Behaviors>
        <dxmvvm:EventToCommand EventName="EventName"/>
    </dxmvvm:Interaction.Behaviors>
</XXX>

How to Fix

Use a valid event name to specify the EventToCommand.EventName property. For example, you can find a list of GridControl events in the following topic: GridControl Events.

Refer to the following help topic for more information: EventToCommand - Specify an Event.