public void Install() { if (!string.IsNullOrEmpty(_backgroundScreenName)) { IScreenManager screenManager = ServiceRegistration.Get <IScreenManager>(); screenManager.SetBackgroundLayer(_backgroundScreenName); } }
protected static void UpdateBackground() { IScreenManager screenManager = ServiceRegistration.Get <IScreenManager>(); string targetBackgroundScreen = GetTargetBackgroundScreen(); if (screenManager.ActiveBackgroundScreenName != targetBackgroundScreen) { screenManager.SetBackgroundLayer(targetBackgroundScreen); } }