Ejemplo n.º 1
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);

            // Force nav bar text color
            //var color = NavigationBarAttachedProperty.GetTextColor(Element);
            NavigationBarAttachedProperty.SetTextColor(Element, Color.White);
        }
        internal void ApplyNavigationTextColor(Page targetPage)
        {
            var color = NavigationBarAttachedProperty.GetTextColor(targetPage);

            BarTextColor = color == Color.Default
                ? Color.White
                : color;
        }
Ejemplo n.º 3
0
        internal void ApplyNavigationBackgroundColor(Page targetPage)
        {
            var color = NavigationBarAttachedProperty.GetBackgroundColor(targetPage);

            BarBackgroundColor = color == Color.Default
                                         ? (Color)App.Current.Resources["RedColor"]
                : color;
        }
Ejemplo n.º 4
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);

            var color = NavigationBarAttachedProperty.GetTextColor(Element);

            NavigationBarAttachedProperty.SetTextColor(Element, color);
        }
Ejemplo n.º 5
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;
        }