Esempio n. 1
0
 public static MenuDrawer GetInstance()
 {
     if (instance == null)
     {
         instance = new MenuDrawer();
     }
     return(instance);
 }
Esempio n. 2
0
 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;
         }
     }
 }