我对如何更改标题字体有类似的问题,如下:
How can I change the Font Size and Weight for the Header in a Navigation Page?
现在我已经改变了,有人知道如何更改顶部后退箭头的字体大小和粗细以及导航页面顶部的消息吗?似乎这些不是标题的一部分,因为它们保留了原始的字体大小和粗细。
最佳答案
我认为这个问题只发生在iOS平台上,所以解决方案是
在AppDelegate
的FinishedLaunching
中设置UIBarButtonItem外观
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);
关于xamarin - 如何更改导航页面中后退箭头和后退文本的字体大小和粗细?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48535792/