Saturday, 17 January 2015

Xamarin Forms – A light status bar for iOS

I’m writing an app in Xamarin Forms at the moment and as part of that I want to have a light on dark theme rather than the dark on light default. Ultimately there will be a background image on the pages that extends into the navigation area at the top of the screen, but for now a coloured backgound will do. This post will show how to accomplish this.

I started with a simple Xamarin Forms app and set the BackgroundColor of the content page to Green, here’s what I got…

Screen Shot 2015-01-17 at 10.26.28

That status bar isn’t much good is it? To alter it you need to do two things…

  • Alter the info.plist file and set the Status Bar Style to LightContent
  • Add an additional item to the .plist file

Open info.plist and scroll down to the following section…

Screen Shot 2015-01-17 at 10.27.07

You may or may not want a status bar whilst the app is starting up – if not then check “Hide during application launch”.

Next, at the bottom of the plist editor there’s three tabs, click on Source and then add in the following…

Screen Shot 2015-01-17 at 10.27.42When you click “Add New Entry” you can then select “View controller-based status bar appearance” from the dropdown, then click/tab off it and it’ll change the type column to Boolean. The default is Yes, you need to set it to No.

With that done, rebuild your app and run it and voila, you get this…

Screen Shot 2015-01-17 at 10.28.18

Looking good! But that’s not the end of the story – what happens when you add a navigation bar to the app? Ah, well – you get this…

Screen Shot 2015-01-17 at 10.29.52

That’s with the following code in my App.cs file…

public class App
{
    public static Page GetMainPage ()
    {   
        var mainPage = new MainPage ();
        var navPage = new NavigationPage (mainPage);
        navPage.BarBackgroundColor = Color.Green;
        return navPage;
    }
}

And if I happen to set a title on my content page it shows as follows…

Screen Shot 2015-01-17 at 10.57.05

Now at this point in my travels around the intertubes I found a bunch of articles that stated I should override some method of the view and explicitly state that I wanted a light status bar. I spent a load of time on this but all to no avail, so I went back to the original code and had a poke around and what did I find but the BarTextColor property. Setting that had the desired effect…

Screen Shot 2015-01-17 at 10.57.44

The code is now as follows…

public class App
{
    public static Page GetMainPage ()
    {   
        var mainPage = new MainPage ();
        var navPage = new NavigationPage (mainPage);
        navPage.BarBackgroundColor = Color.Green;
        navPage.BarTextColor = Color.White;
        return navPage;
    }
}

I hope that helps someone as there seems to be a lot of misinformation on the intertubes about how to get this to work. I’m on the latest Xamarin Forms build, as of today that’s 1.3.1.6296.

274 comments:

«Oldest   ‹Older   201 – 274 of 274
Sam Smith said...

Hello there, great stuff you’ve shared here I will be checking regularly for more articles. But wait! When it becomes hard to manage your online assignment, availing Online Assignment Help is the best choice. Many students often fail to submit their assignment before deadlines and end up scoring low grades because they didn’t have enough time to write the assignment given on time and satisfactorily. Visit Assignment Help . for assistance.

CloudLearn ERP said...

Your article has piqued my interest. This is definitely a thinker's article with great content and interesting viewpoints. I agree in part with a lot of this content. Thank you for sharing this informational material.
Best Data Science training in Mumbai

Data Science training in Mumbai

CloudLearn ERP said...

I thought I was strong with my ideas on this, but with your writing expertise you have managed to convert my beliefs your new ideas. Mallorca is fun
Best Data Science training in Mumbai

Data Science training in Mumbai

ek said...

I am genuinely thankful to the holder of this web page who has shared this wonderful paragraph at at this place
Courses in Digital Marketing in Pune

Unknown said...

python course in coimbatore
python training in coimbatore
java course in coimbatore
java training in coimbatore
android course in coimbatore
android training in coimbatore
php course in coimbatore
php training in coimbatore
digital marketing course in coimbatore
digital marketing training in coimbatore
software testing course in coimbatore
software testing training in coimbatore


Caleb said...

What an amazing blog! Tell you what I have bookmarked for regular reading. Your baby is indeed absolutely beautiful, one of the sweetest tiny infants ever born, but they need your care a lot. We know that not everyone has time to find, research, and compare air purifiers from a huge market available. Visit Air Purifier for Baby.

assignmentauthors said...


At first an Oracle team leader and magento developer must meet and agree on the way forward after being requested by the system administrator representing the university to develop the system.
assignment expert

Silvia said...

Thank you for this wonderful article also learnt that meat slicer makes cutting meat moreover as foods like cheese, fruits, and others, more efficient than ever. This small tool which will easily fit on your counter and will perform in seconds what can take you hours within the kitchen to accomplish from Best Meat Slicer under $300

Janu said...

Its a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way. T hank you so much.




Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery











Ian said...

What a wonderful piece of article I have bookmarked for future checkup. If you are a student and you are interested in designing, developing, producing, operating, and using aircraft, chances are that you are pursuing an aviation course. In most academic institutions, in order for you to graduate in this course, then you must prepare a capstone project. One is supposed to apply the skills taught in this class when writing a capstone paper. Learn more on Aviation Capstone Writing Help .

Yamuna said...

python course in coimbatore
java course in coimbatore
python training in coimbatore
java training in coimbatore
php course in coimbatore
php training in coimbatore
android course in coimbatore
android training in coimbatore
datascience course in coimbatore
datascience training in coimbatore
ethical hacking course in coimbatore
ethical hacking training in coimbatore
artificial intelligence course in coimbatore
artificial intelligence training in coimbatore
digital marketing course in coimbatore
digital marketing training in coimbatore
embedded system course in coimbatore
embeddedsystem training in coimbatore
internship training in coimbatore
inplant training in coimbatore

saran said...

Impressive! I finally found great post here. Nice article on data science . It's really a nice experience to read your post. Thanks for sharing your innovative ideas to our vision.
Digital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery

deiva said...

Good post. I learn something new and challenging on sites I stumbleupon on a daily basis. It's always interesting to read content from other writers and practice a little something from their web sites.
Digital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery

subha said...

Hi, I do think this is a great website. I stumbledupon it ;) I am going to come back once again since i have saved as a favorite it. share more.
Ai & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai

websoft said...

Good information and, keep sharing like this. top college in british columbia

subha said...

Such a wonderful article and I feel that it is best to write more on this topic. Thank you so much because i learn a lot of ideas about it. Keep posting... good luck.
Ai & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai

Village Talkies said...

Best Corporate Video Production Company in Bangalore and top Explainer Video Company in Bangalore , 3d, 2d Animation Video Makers in Chennai.
Some excellent tips in here

Anirban Ghosh said...

Writing, like great art requires much more than knowledge and education. A great writer is born as opposed to ""made"" and you are a great writer. This is excellent content and interesting information. Thank you.SAP training in Kolkata
SAP training Kolkata
Best SAP training in Kolkata
SAP course in Kolkata
SAP training institute Kolkata


Emily said...

Thanks for the post. By the way, if you need help with your nursing school assignment, you may visit Mike Nursing Service which provides a good assistant. Here you may also find nursing career goals essay examples and other useful articles.

Emily said...

If you've faced difficulties with essay writng and uncover synonym, visitr Mike Nursing Essay, where you will find enough useful tips for yourself.

Janu said...

Nice! you are sharing such helpful and easy to understandable blog. i have no words for say i just say thanks because it is helpful for me.

Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery


pratheep said...

Thanks a lot very much for the high your blog post quality and results-oriented help. I won’t think twice to endorse to anybody who wants and needs support about this area.

Robotic Process Automation (RPA) Training in Chennai | Robotic Process Automation (RPA) Training in anna nagar | Robotic Process Automation (RPA) Training in omr | Robotic Process Automation (RPA) Training in porur | Robotic Process Automation (RPA) Training in tambaram | Robotic Process Automation (RPA) Training in velachery

pratheep said...

Thank you for taking the time and sharing this information with us. It was indeed very helpful and insightful while being straight forward and to the point.

Robotic Process Automation (RPA) Training in Chennai | Robotic Process Automation (RPA) Training in anna nagar | Robotic Process Automation (RPA) Training in omr | Robotic Process Automation (RPA) Training in porur | Robotic Process Automation (RPA) Training in tambaram | Robotic Process Automation (RPA) Training in velachery

Term Paper Writing Services said...

Online law research paper help services are very common nowadays since there are very many students seeking Law Research Writing Services and law essay writing services.

Emily said...

Great post, thank you. There are many writing services on the web, but if you are working on nursing essay for college or university - click here and get a high-quality assistance from professional writers.

Sam Smith said...

Great content comes from great writers. I appreciate your art of delivering content. GIS (Geographical Information System) are basically systems of computers that are designed to collect, analyze, manage and share geographical and spatial data. Remarkably, almost all environmental applications today utilize GIS. Read more on GIS Assignment Help

vimala said...
This comment has been removed by the author.
eCom said...

Thank you, please visit https://www.ecomparemo.com/, thanks!

eCom said...

Thank you, please visit https://www.ecomparemo.com/, thanks!

bairav said...

Its a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way. T hank you so muc

German Classes in Chennai | Certification | Language Learning Online Courses | GRE Coaching Classes in Chennai | Certification | Language Learning Online Courses | TOEFL Coaching in Chennai | Certification | Language Learning Online Courses | Spoken English Classes in Chennai | Certification | Communication Skills Training

bairav said...

Its a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way. T hank you so muc

German Classes in Chennai | Certification | Language Learning Online Courses | GRE Coaching Classes in Chennai | Certification | Language Learning Online Courses | TOEFL Coaching in Chennai | Certification | Language Learning Online Courses | Spoken English Classes in Chennai | Certification | Communication Skills Training

bairav said...

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.

German Classes in Chennai | Certification | Language Learning Online Courses | GRE Coaching Classes in Chennai | Certification | Language Learning Online Courses | TOEFL Coaching in Chennai | Certification | Language Learning Online Courses | Spoken English Classes in Chennai | Certification | Communication Skills Training

bairav said...

It's very useful blog post with inforamtive and insightful content and i had good experience with this information.

German Classes in Chennai | Certification | Language Learning Online Courses | GRE Coaching Classes in Chennai | Certification | Language Learning Online Courses | TOEFL Coaching in Chennai | Certification | Language Learning Online Courses | Spoken English Classes in Chennai | Certification | Communication Skills Training

PMP Certification Bangalore said...

This is my first visit to your blog! We are a team of volunteers and new initiatives in the same niche. Blog gave us useful information to work. You have done an amazing job!
PMP Certification Training in Bangalore

Rashika said...

This information you provided in the blog that is really unique I love it!!
Digital Marketing Training in Chennai | Certification | SEO Training Course | Digital Marketing Training in Bangalore | Certification | SEO Training Course | Digital Marketing Training in Hyderabad | Certification | SEO Training Course | Digital Marketing Training in Coimbatore | Certification | SEO Training Course | Digital Marketing Online Training | Certification | SEO Online Training Course

Jagna Co Kalani said...

Great Article
Final Year Projects in Python

Python Training in Chennai

FInal Year Project Centers in Chennai

Python Training in Chennai

James Ian said...

Thank you for such an informative article. I have bookmarked your site for regular checkup. It is not possible to successfully complete pursuing a certain course without doing assignments at one point or the other. Assignments assume different formats and they are used to test the extent to which a certain student has grasped the content that he/she has been taught. Read more on Capstone Writing Services

James Ian said...

What an informative article. Tell you what I have bookmarked your website for regular checkup. Thank you for taking time to share such a great content. Are you puzzling about who to contact for Nursing Writing Services? Could it be that you are working on a tight budget yet need high-quality nursing-related assignments? Is it the efficiency that you are looking for? Well, with the popularity that the nursing course has gained over the years, there are a lot of gaps to fill in the health sector. Read more on Nursing Writing Services.

joeharis said...

Asp .Net Development Services has the propelled aspect of Micro's.Net structure and it is viewed as the best application system for building dynamic asp.net web development services and Custom application development company. Subsequently the cutting edge asp.net advancement organizations that have dynamic website specialists and online application engineers profoundly depend on this. The accompanying focuses made ASP .Net a default decision for everybody. Asp .Net Development Company (articulated speck net) is a system that gives a programming rules that can be utilized to build up a wide scope of uses – from web to portable to Windows-based applications. The .NET system can work with a few programming dialects, for example, C#, VB.NET, C++ and F#. At Grand Circus, we use C#.

sowmi said...

I feel satisfied to read your blog, you have been delivering useful and unique information to our Vision keep blogging.
astrologers in india
astrology online
best astrologer in andhra pradesh
best astrology online
astrology
famous astrologer in andhra pradesh
best astrologer near me
top 10 astrologers in andhra pradesh

sashti said...

Nice information,thanks for given this useful message really it was helpful for
me

Selenium Course in Coimbatore | Selenium Training Course in Coimbatore | Best Selenium Training in Coimbatore | Selenium Training Institute in Coimbatore | Online Selenium Course Training in Coimbatore | Selenium Training in Saravanampatti | Selenium Testing Training Course in Coimbatore

sashti said...

Thank You for providing us with such an insightful information through this blog.

Data Science-Alteryx Training Course in Coimbatore | Online Data Science Course in Coimbatore | Data Science Training in Coimbatore | Best Data Science Training Institute | Data Science Course in Coimbatore Online Data Science Training in Coimbatore | Data Science with python Training Course in Coimbatore | Data Science Traning in saravanampatti

Ramya said...

Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
DevOps Training in Chennai

DevOps Online Training in Chennai

DevOps Training in Bangalore

DevOps Training in Hyderabad

DevOps Training in Coimbatore

DevOps Training

DevOps Online Training

bill.wood said...

With the gradual increase of popularity in social media and other internet platforms, customers, clients is gradually becoming socially interlinked for almost 24*7. From a business point of view, it is an immense opportunity to target the probable customers that surely affect the business outcome and image. digital marketing training in hyderabad

James Ian said...

Thank you for your outstanding article. It contains everything a nurse needs in their career. The idea is to collect everything and have it in one place to easily trace them whenever you need them. There are nursing students who finding compiling the documents and putting them in one place difficult and opt to look for help in a platform like Nursing Professional Portfolio Writing Help . Luckily, we are always here to help

Arif said...

Thank you for your outstanding article. It contains everything a nurse needs in their career. The idea is to collect everything and have it in one place to easily trace them whenever you need them. There are nursing students who finding compiling the documents and putting them in one place difficult and opt to look for help in a platform like Nursing Professional Portfolio Writing Help . Luckily, we are always here to help

John haris said...

asp net development company has the propelled aspect of Micro's.Net structure and it is viewed as the best application system for building dynamic dot net development services and dot net company. Subsequently the cutting edge asp.net advancement organizations that have dynamic website specialists and online application engineers profoundly depend on this. The accompanying focuses made ASP .Net a default decision for everybody. dot net development company (articulated speck net) is a system that gives a programming rules that can be utilized to build up a wide scope of uses – from web to portable to Windows-based applications. The .NET system can work with a few programming dialects, for example, C#, VB.NET, C++ and F#. At Grand Circus, we use C#.

Arif said...

Hi, this is a wonderful piece of writing. I want to say that a nursing professional portfolio is a must-have document for every nurse. It contains everything a nurse needs in their career. The idea is to collect everything and have it in one place to easily trace them whenever you need them. There are nursing students who finding compiling the documents and putting them in one place difficult and opt to look for help in a platform like Nursing Professional Portfolio Writing Help . Luckily, we are always here to help.

Sam Smith said...

Hi, this is a wonderful piece of writing. I want to say that a nursing professional portfolio is a must-have document for every nurse. It contains everything a nurse needs in their career. The idea is to collect everything and have it in one place to easily trace them whenever you need them. There are nursing students who finding compiling the documents and putting them in one place difficult and opt to look for help in a platform like Nursing Professional Portfolio . Luckily, we are always here to help.

Unknown said...

This must be a popular blog. Thank you for sharing such an informative article. The goal of every student is to attain high grades no matter the level they are in. However, they may find themselves in circumstances that prompt them to look for help in online platforms like CIPD Assignment Help. Below are some of the things that make students look for assignment help. Learn more on on CIPD Assignment Help AE .

haroon said...

I appreciate you for this blog. More informative, thanks for sharing with us.
Autocad centre in coimbatore
Autocad course in coimbatore
Autocad course fees in coimbatore
Electrical autocad course in coimbatore
Autocad course training in coimbatore
Best autocad course in coimbatore
Autocad course training with placement in coimbatore
Autocad online course in coimbatore
Autocad online training course in coimbatore
Autocad fees structure in coimbatore
Autocad solidworks jobs in coimbatore
cadd centre in coimbatore
cadd courses in coimbatore
cadd centre fees structure in coimbatore
Autocad training in coimbatore

Silvia said...

This must be a popular blog. Thank you for sharing such an informative article. CIPD is a professional body that conducts research about HR and gathers skills and knowledge that can ensure the growth of human resource managers who in return ensure that there is a positive change in the workplace. CIPD ensures that all HR professionals have attained the required qualifications before offering them CIPD membership. Their qualifications determine the type of membership they will be offered with. Read more on on CIPD Assignment Help .

svrtechnologies said...


Firstly talking about the Blog it is providing the great information providing by you . Thanks for that .Hope More articles from you . Next i want to share some information about Salesforce training in Banglore .

Unknown said...

Thank you for sharing such a great article. A critique is a document that provides a basic appraisal of a book or editorial, not a feedback. A scrutinize is a particular mode of exposition into which you recognize, assess, also react to a creator's thoughts, together decidedly also adversely. It is generally connected to scholarly sources. When you are writing a critique it has some steps. Read the book or article many time while you are selected. If you are more time read, you can get many points from that book or article. Write a rough note about the author's main points or thesis statements. Read more on Article Critique Help

Tyler said...

Thanks for sharing this amazing post. I am a Logo Designer at Logowizpro that is a free logo maker online tool used to design your own logo and make creative text logos. It has 10,000+ artistic logo designs template so you can make a brilliant logo design.

infotrenchseo said...

Infotrenchseo Provides the best seo services to user for obtaining high-ranking placements in organic search results. We are among the top search engine optimization, digital marketing, ppc advertising & SEO company in noida, delhi ncr, pune, gurugram, bareilly, chandigarh, bhopal, moradabad, lucknow, India.

PPC Advertising Company In Pune

Pankaj Singh said...

Great Post, thanks for sharing such an amazing blog with us. Visit Ogen Infosystem for creative website design and PPC Services in Delhi, India.
PPC Company in Delhi

siva said...

It is an excellent blog. Your post is very good and unique. I am eagerly waiting for your new post. Thanks for sharing and keep sharing more good blogs.
impact of social media
applications of artificial intelligence in real world
advantages of php
rpa roles and responsibilities
php technical interview questions
php interview questions and answers for experienced

Sarkari Result said...

Latest Government Jobs

siva said...

I was really impressed to see this blog, it was very interesting and it is very useful for all.
devops engineer skills
how to improve soft skills
tableau certification worth it
how to improve fluency in english
blue prism interview questions for experienced
blue prism interview questions and answers pdf free download

Arif said...

This article has it all, i recommend your blog to everyone reading this article. At first, it doesn’t feel like you’ll need capstone project assistance down the road. But as your capstone project trudges on, it demands different kinds of support at different times. How one finishes a journey matters more than how they began it. Your capstone project culminates your college career. Get Capstone Project Assistance

Williams said...

Awesome articles, new exciting information are learned from your blog.
software testing techniques
what is the latest version of angularjs
what programming language is google developed in
ccna cloud
data science interview questions and answers for experienced

Cubestech said...

WOW! Many thanks for keeping your content up to date. Your level of dedication is clearly visible through this blog!

Cheers!!

"Best mobile app development service in chennai
Best ERP software solutions in chennai
Digital Marketing Agency in Chennai
Best web development company in chennai"

Unknown said...

Excellent Post... Sarkari Career Job

siva said...

Learned a lot of new things in this post. Thanks for taking the time to share this blog..
cloud computing skills
scope of automation
google digital marketing certification
technical skills required for cloud computing
node js questions and answers

fuel digital vignesh said...

Thank you so much for this excellent Post and all the best for your future.

We are the Best Digital Marketing Agency in Chennai,Coimbatore,Madurai and change makers of digital! For Enquiry Contact us @+91 9791811111
Thanks for the article…
Best Digital Marketing Agency in Chennai
Best SEO Services in Chennai
seo specialist companies in chennai
Brand makers in chennai
Expert logo designers of chennai
Best seo analytics in chennai
leading digital marketing agencies in chennai
Best SEO Services in Chennai

diyaroy.com said...

I really loved your post so much that I cant resist writing comment...Please check mine as well
Escorts in Jaipur
Escorts in Jaipur
Escorts in Jaipur
Escorts in Delhi
Escorts in Guwahati
Escorts in Guwahati
Escorts in Guwahati
Escorts in Guwahati
Escorts in Lucknow
Escorts in Aerocity

meritstep Technology said...

Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
workday online training

fuel digital vignesh said...

This is very good post I have read and I must appreciate you to have written this for us.Its really informative.
Best Digital Marketing Agency in Chennai
website design in chennai

fuel digital vignesh said...

Thank you so much for this excellent Post and all the best for your future.

We are the Best Digital Marketing Agency in Chennai,Coimbatore,Madurai and change makers of digital! For Enquiry Contact us @+91 9791811111
Thanks for the article…
Best Digital Marketing Agency in Chennai
Best SEO Services in Chennai
seo specialist companies in chennai
Brand makers in chennai
Expert logo designers of chennai
Best seo analytics in chennai
leading digital marketing agencies in chennai
Best SEO Services in Chennai

Arif said...

I have been looking for this kind of information all over the internet. Thanks for being elaborative. A good provider of nursing capstone project service will check the instructions to determine the right approach when performing research. It is also paramount to adhere to writing instructions including length, citation, referencing and formatting style. Adhering to guidelines is one of the factors that contribute to scoring the best grade as tutors have a reason for requiring the student to write in a particular way. Get Capstone Writing Services

arshiya said...

Learned a lot of new things in this post. Thanks for taking the time to share this blog...
what does a devops engineer do
what is soft skill development
how to learn tableau
best way to improve spoken english
blue prism technical interview questions
blue prism interview questions for freshers
javascript basic interview questions

Qater said...

here you can get more info about Allama Iqbal open university result data and student ID process, application tracking, BA Admission
Allama iqbal open university

raza said...

Hi I read all about this which you explain on your site
Also, I love the way to explain things. I really like your
Work keep it up dude you are doing good!
i also explain about Join Pak Navy
Let me know if you like my work too.

«Oldest ‹Older   201 – 274 of 274   Newer› Newest»