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; }
internal void ApplyNavigationBackgroundColor(Page targetPage) { var color = NavigationBarAttachedProperty.GetBackgroundColor(targetPage); BarBackgroundColor = color == Color.Default ? (Color)App.Current.Resources["RedColor"] : color; }
public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); var color = NavigationBarAttachedProperty.GetTextColor(Element); NavigationBarAttachedProperty.SetTextColor(Element, color); }
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; }