ObservableRecipient.OnActivated Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised whenever the IsActive property is set to true
.
Use this method to register to messages and do other initialization for this instance.
protected virtual void OnActivated ();
abstract member OnActivated : unit -> unit
override this.OnActivated : unit -> unit
Protected Overridable Sub OnActivated ()
Remarks
The base implementation registers all messages for this recipients that have been declared explicitly through the IRecipient<TMessage> interface, using the default channel. For more details on how this works, see the RegisterAll(IMessenger, Object) method. If you need more fine tuned control, want to register messages individually or just prefer the lambda-style syntax for message registration, override this method and register manually.