internal void ApplyNavigationTextColor(Page targetPage)
        {
            var color = NavigationBarAttachedProperty.GetTextColor(targetPage);

            BarTextColor = color == Color.Default
                ? Color.White
                : color;
        }
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);

            var color = NavigationBarAttachedProperty.GetTextColor(Element);

            NavigationBarAttachedProperty.SetTextColor(Element, color);
        }
示例#3
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);

            // Force nav bar text color
            var color = NavigationBarAttachedProperty.GetTextColor(Element);

            NavigationBarAttachedProperty.SetTextColor(Element, color);

            var background = NavigationBarAttachedProperty.GetBackgroundColor(Element);

            NavigationBarAttachedProperty.SetBackgroundColor(Element, background);
        }
 internal void ApplyNavigationTextColor(Page targetPage)
 {
     try
     {
         var color = NavigationBarAttachedProperty.GetTextColor(targetPage);
         BarTextColor = color == Color.Default
             ? Color.White
             : color;
     }
     catch (System.Exception ex)
     {
         throw;
     }
 }
        public void ApplyNavigationTextColor(Page page)
        {
            var color = NavigationBarAttachedProperty.GetTextColor(page);

            BarTextColor = color == Color.Default ? Color.White : color;
        }