public static void TryDeactivate(this object potentialDeactivatable, bool close) { ScreenExtensions.TryDeactivate(potentialDeactivatable, close); }
private void CloseItemCore(T item) { ScreenExtensions.TryDeactivate(item, true); this._items.Remove(item); }
public void Teardown() { ScreenExtensions.TryDeactivate(Workspace, close: true); }
protected void Close(object model) { ScreenExtensions.TryDeactivate(model, false); }
/// <summary> /// Called when deactivating. /// </summary> /// <param name="close">Inidicates whether this instance will be closed.</param> protected override void OnDeactivate(bool close) { ScreenExtensions.TryDeactivate(ActiveItem, close); }
protected override void OnPause() { base.OnPause(); ScreenExtensions.TryDeactivate(ViewModel, false); }
public override void ViewWillDisappear(bool animated) { base.ViewWillDisappear(animated); ScreenExtensions.TryDeactivate(ViewModel, false); }