Пример #1
0
 private void InitHelpPopupIfNeeded()
 {
     if (helpPopup == null)
     {
         helpPopup = new HelpPopup();
         UIHelper.AddToGridInFull(MainPage.MainGrid, helpPopup);
         helpPopup.CloseXVisibility = Visibility.Visible;
     }
     helpPopup.ChangeReadMode(isNightMode);
 }
Пример #2
0
 private void ChangeBackgroundColor()
 {
     UIHelper.ToggleNightLight(isNightMode, userControl);
     if (helpPopup != null)
     {
         helpPopup.ChangeReadMode(isNightMode);
     }
 }
Пример #3
0
        private void ChangeBackgroundColor()
        {
            UIHelper.ToggleNightLight(isNightMode, userControl);
            if (isNightMode)
            {
                fieldListroot.Background = new SolidColorBrush(Windows.UI.Colors.Black);
            }
            else
            {
                fieldListroot.Background = new SolidColorBrush(Windows.UI.Colors.White);
            }

            if (helpPopup != null)
            {
                helpPopup.ChangeReadMode(isNightMode);
            }
        }
Пример #4
0
 private void ChangeBackgroundColor()
 {
     if (isNightMode)
     {
         mainGrid.Background = new SolidColorBrush(Colors.Black);
     }
     else
     {
         mainGrid.Background = new SolidColorBrush(Windows.UI.Colors.White);
     }
     if (helpPopup != null)
     {
         helpPopup.ChangeReadMode(isNightMode);
     }
     if (customStudyFlyout != null)
     {
         customStudyFlyout.ChangeReadMode(isNightMode);
     }
 }