This is a migrated thread and some comments may be shown as answers.

Change background color of the top navigation bar

1 Answer 395 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dan
Top achievements
Rank 1
Dan asked on 10 Mar 2015, 01:08 AM
I have not been able to figure out how to change the background color of the top navigation bar (area with the page title).  Any tips?

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 10 Mar 2015, 11:26 AM
Hi Dan,

I just sent you an example to the support ticket thread you opened. Re-pasting the reply here for the benefit of the community...

We still don't have a cross-platform manipulation of the title bar (this is in progress very now though). The following code would do the job though:

     if (applicationModule.ios) {

         var theNavBarController = frameModule.topmost().ios.controller;
         var theNavBar = theNavBarController.navigationBar;

         //Play with the attributes of the NavBar:
         theNavBar.tintColor = new colorModule.Color("#FFFF00").ios;
         theNavBar.barStyle = UIBarStyle.UIBarStyleBlack;
     }

Please, find attached an application with some more Navbar manipulation examples.


Kind regards,
Erjan Gavalji
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
 


Regards,
Erjan Gavalji
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Dan
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or