Example #1
0
 public static NavigationIcon Instance()
 {
     if (instance == null)
     {
         instance = new NavigationIcon();
     }
     return(instance);
 }
Example #2
0
        public ViewLoginViewModel(IEventAggregator eventAggregator) : base(eventAggregator)
        {
            #region 属性初始化

            ArrowBack      = NavigationIcon.Instance().ArrowBack;
            ArrowBack.Fill = DictionaryResource.GetColor("ColorTextDark");

            #endregion
        }
Example #3
0
 public void UpdateAppearance()
 {
     if (!IsEOSCustomizationIgnored)
     {
         SetTitleTextColor(GetThemeProvider().GetEOSProperty <Color>(this, EOSConstants.NeutralColor1));
         SetBackgroundColor(GetThemeProvider().GetEOSProperty <Color>(this, EOSConstants.NeutralColor6));
         if (NavigationIcon != null)
         {
             NavigationIcon.SetColorFilter(GetThemeProvider().GetEOSProperty <Color>(this, EOSConstants.BrandPrimaryColor), PorterDuff.Mode.SrcAtop);
         }
     }
 }