Bug 21607 - Navigation bar UiApperance not being respected
Summary: Navigation bar UiApperance not being respected
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.2
Hardware: Macintosh Mac OS
: High normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-07-25 17:38 UTC by Rui Marinho
Modified: 2017-05-26 05:29 UTC (History)
6 users (show)

Is this bug a regression?: ---
Last known good build:

Screenshot of the font on the title working (485.44 KB, image/png)
2014-07-25 17:38 UTC, Rui Marinho
Screenshot of the font on the title not working (581.84 KB, image/png)
2014-07-25 17:39 UTC, Rui Marinho

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Rui Marinho 2014-07-25 17:38:49 UTC
Created attachment 7492 [details]
Screenshot of the font on the title working

The problem is that setting UIApperance for the NavigationBar on my IOS project, like the font for the title isn't working anymore with Xamarin.Forms 1.2.1 or 1.2.2 pre releases.

This was working in previous versions, i have attached 1 screenshot of the previous version where it was working.

Here's the code i m using :

	UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes()
		Font = UIFont.FromName("HelveticaNeue-Light",20),
		TextColor = App.NavBarTextTint.ToUIColor()
Comment 1 Rui Marinho 2014-07-25 17:39:39 UTC
Created attachment 7493 [details]
Screenshot of the font on the title not working
Comment 2 Ram Chandra 2014-08-26 06:47:56 UTC
I have checked this issue but I am able to reproduce this issue.

Steps I followed:

1. Create an Blank App (Xamarin.Portable.Forms).
2. Add a new Content page and write the following code. 
   public MyPage () {
            var label = new Label { Text = "Hello",
                Font = Font.SystemFontOfSize (20),
            var button = new Button {Text = "Click Me!"};

            button.Clicked += (s, e) => Navigation.PushModalAsync( new NavigationPage( new MyPage1() )    );
            Content = new StackLayout { Spacing = 10,
                VerticalOptions = LayoutOptions.Center, Children = {
                    button }
            }; }

3. Add another page and write the following code.
       public MyPage1 () {
            Title = "My Second Page";
            var label = new Label {
                Text = "This is the second page", Font = Font.SystemFontOfSize (36),
            Content = new StackLayout { Spacing = 30,
                VerticalOptions = LayoutOptions.Start, Children = {
                    label, }
            }; }

4. Add the following method on iOS project's AppDelegate's FinishLaunching() method
            UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes()
                 Font = UIFont.FromName("HelveticaNeue-Light",30)
5. Deploy the application on iOS simulator/device.

When I deploy the application, I observed that navigation bar is not changing it's font style. I have also checked this issue with Xamarin.Forms 1.0.6186 and it is working fine but when I update Xamarin.Forms 1.0.6186 to Xamarin.Forms the same code is not working.

Working screencast (Xamarin.Forms 1.0.6186): http://www.screencast.com/t/gPbHHlrEbG

Not Working Screencast(Xamarin.Forms   http://www.screencast.com/t/y3prFpdF

Environment Info:

=== Xamarin Studio ===

Version 5.3 (build 434)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
	Mono 3.8.0 ((no/62a857e)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000007

=== Xamarin.Android ===

Version: 4.16.0 (Trial Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.0   (API level 11)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.iOS ===

Version: (Trial Edition)
Hash: 3991e99
Build date: 2014-08-22 13:09:34-0400

=== Xamarin.Mac ===

Version: (Starter Edition)

=== Build Information ===

Release ID: 503000434
Git revision: 9b508e2173c6a211fa020d9743a86b484b5ed0d2
Build date: 2014-08-21 12:41:28-04
Xamarin addins: 69708b283b171ea053d0edfbf09d98457d21fbee

=== Operating System ===

Mac OS X 10.9.3
Darwin Jatin66s-iMac.local 13.2.0 Darwin Kernel Version 13.2.0
    Thu Apr 17 23:03:13 PDT 2014
    root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
Comment 3 Barry Sohl 2014-08-30 12:45:34 UTC
Any ETA for this fix? The bug is affecting me as well. Thanks.
Comment 4 Barry Sohl 2014-08-30 12:48:15 UTC
Perhaps the best fix would be a BarTextFont property since there is now a BarTextColor property?
Comment 5 Devesh Mishra 2017-05-26 05:29:39 UTC

Any updates on this issues ?
I can see that status is marked as fixed, but i am not able to find any solution for this issue.

Please let me know.