I had a similar question on how to change the font of the title which is here:
How can I change the Font Size and Weight for the Header in a Navigation Page?
Now I have that changed does anyone know how to also change the font size and weight for the top back arrow and the message that goes with it at the top of a navigation page? Seems like these are not part of the title as they have retained the original font size and weight.
1 Answers
Answers 1
I think this issue only occurs on iOS platform, so the solution is
Set UIBarButtonItem Appearance
in FinishedLaunching
in AppDelegate
UITextAttributes att = new UITextAttributes(); att.Font = UIFont.SystemFontOfSize(20.0 , FontAttributes.Bold); // size and weight UIBarButtonItem.AppearanceWhenContainedIn(new Type[] { typeof( UINavigationBar) }).SetTitleTextAttributes(att, UIControlState.Normal); UIBarButtonItem.AppearanceWhenContainedIn(new Type[] { typeof(UINavigationBar) }).SetTitleTextAttributes(att, UIControlState.Highlighted);
0 comments:
Post a Comment