Presenter Bindings

WindowsPhoneMvp uses an IPresenterDiscoveryStrategy to find the presenter for the corresponding view. Although it is possible to implement your own discovery strategy, the built-in provider is the AttributeBasedPresenterDiscoveryStrategy. This provider requires that views have the PresenterBinding attribute to specify which Presenter it should be bound to.

presenter.png

Alternate Presenter Discovery Strategies

By implementing the IPresenterDiscoveryStrategy interface, the new strategy can be assigned to the "PresenterBinding.DiscoveryStrategy" during the "InitializePhoneApplication" method in the App.xaml.cs.

Last edited May 11, 2011 at 1:32 PM by brendan, version 2

Comments

No comments yet.