void IActivate.Activate() { if (!this.IsActive) { bool flag = false; if (!this.IsInitialized) { this.IsInitialized = flag = true; this.OnInitialize(); } this.IsActive = true; Log.Info("Activating {0}.", new object[] { this }); this.OnActivate(); ActivationEventArgs e = new ActivationEventArgs { WasInitialized = flag }; this.Activated(this, e); } }
private static void PageTwoViewModel_Activated(object sender, ActivationEventArgs e) { Log.Info("PageTwoViewModel_Activated"); }
public void ScopeActivated(object source, ActivationEventArgs e) { foreach (var actionItem in scopeItems) actionItem.Activate(); }