Catel.MVVM.Providers.LogicBase.OnTargetViewUnloadingInternal C# (CSharp) Method

OnTargetViewUnloadingInternal() private method

Called when the TargetView is about to be unloaded.
private OnTargetViewUnloadingInternal ( object sender, EventArgs e ) : void
sender object The sender.
e System.EventArgs The instance containing the event data.
return void
        private void OnTargetViewUnloadingInternal(object sender, EventArgs e)
        {
            if (!CanUnload)
            {
                return;
            }

            Log.Debug($"Target view '{TargetViewType?.Name}' is being unloaded");

            IsUnloading = true;
        }