Method GetDispatchTarget
GetDispatchTarget(ICommandContext?)
Gets the SubView to dispatch commands to. Return null to skip dispatch.
The framework calls this during RaiseActivating(ICommandContext?)/RaiseAccepting(ICommandContext?)
after the OnActivating virtual and OnAccepting event have had a chance to cancel.
protected override View? GetDispatchTarget(ICommandContext? ctx)
Parameters
ctxICommandContextThe command context.
Returns
Remarks
Override this in composite views that delegate commands to a primary SubView.
For example, Shortcut returns CommandView and selectors return Focused.
The framework guards against dispatch when:
- Routing is DispatchingDown (prevents re-entry)
- No binding exists on the context (programmatic invocation — skip dispatch)
- The binding source is within the target (prevents loops)