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

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

            #endregion
        }
 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);
         }
     }
 }