void UpdateTopView() { if (CurrentView != InternalStack.LastOrDefault()) { if (!IsPreviousViewVisible) { CurrentView?.Hide(); } CurrentView = InternalStack.LastOrDefault(); CurrentView?.Show(); (CurrentView as Widget)?.SetFocus(true); } }
void UpdateTopView() { if (_lastTop != InternalStack.LastOrDefault()) { if (_lastTop != null) { if (!ShownBehindPage) { _lastTop.Hide(); } _lastTop.FocusableChildren = false; } _lastTop = InternalStack.LastOrDefault(); if (_lastTop != null) { _lastTop.Show(); _lastTop.FocusableChildren = true; } SendNavigated(); DidRestoreFocus(); } }