Interface IAcceptTarget
Interface for views that handle Accept as terminal destinations. Views implementing this interface can bubble their Accept commands up to their SuperView or be treated as the default accept target depending on IsDefault.
public interface IAcceptTarget
Remarks
When a view implementing IAcceptTarget invokes Accept:
- If IsDefault is true, the command flows normally without redirection or bubbling. This view IS the DefaultAcceptView.
- If IsDefault is false, the command bubbles up through the SuperView hierarchy, allowing parent views (like Dialog<TResult>) to handle it and determine which accept target was activated.
When a view that does NOT implement IAcceptTarget invokes Accept, the command may be redirected to the DefaultAcceptView (typically a Button with IsDefault = true).
Button implements this interface using its existing IsDefault property. Other views that want to be terminal Accept handlers should also implement it.