public static MenuDrawer GetInstance() { if (instance == null) { instance = new MenuDrawer(); } return(instance); }
public MainPage() { this.InitializeComponent(); menuDrawer = MenuDrawer.GetInstance(); this.InitializeMenuDrawer(); menuDrawer.SelectItem((int)Page.HOME); if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar")) { var statusBar = StatusBar.GetForCurrentView(); if (statusBar != null) { statusBar.BackgroundOpacity = 1; statusBar.BackgroundColor = Colors.Black; statusBar.ForegroundColor = Colors.White; } } }