protected void OnFocusedLayoutChangedCommon(object sender, EventArgs e) { SoundService.SignalPageChanged(); var previousLayout = _previousLayout; if (previousLayout != null) { previousLayout.NotifyLeave(); } var currentLayout = FocusedLayout; if (currentLayout != null) { currentLayout.NotifyEnter(); } _previousLayout = currentLayout; }