private void Popups_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            if (Popups.LastOrDefault() != _prevLastPopup)
            {
                var prevLastPopup = _prevLastPopup;
                _prevLastPopup = Popups.LastOrDefault();

                var currPopup = Popups.LastOrDefault();

                // If we had a popup previously
                if (prevLastPopup != null)
                {
                    prevLastPopup.OnViewLostFocus();
                }
                // Or if we didn't have any other popups but just added a popup, the normal paged content was lost focus
                else if (currPopup != null && this.Content != null)
                {
                    this.Content.OnViewLostFocus();
                }

                if (currPopup != null)
                {
                    currPopup.OnViewFocused();
                }
                else if (this.Content != null)
                {
                    this.Content.OnViewFocused();
                }

                if (_subscribedToCurrentPopupAllowsLightDismiss)
                {
                    HandlePopupAllowsLightDismissCurrentPopupChange(prevLastPopup, currPopup);
                    if (currPopup != null)
                    {
                        CurrentPopupAllowsLightDismiss = currPopup.AllowLightDismiss;
                    }
                }

                TriggerVisibleContentChanged();
            }
        }