Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

TabbedPage Icons

$
0
0

I have killed many, many hours now trying to make icons appear for Tabbed Pages on iOS. According to all of the forum and blog posts I've seen this is supposed to be super simple.

In fact my page is exactly this simple:

public class MainPage : TabbedPage
{
    public MainPage ()
    {
        Page page = new Page {
            Title = "Title",
            Icon = "clock.png"
        };

        this.Children.Add (page);
    }
}

The tab shows up, the "title" shows up, the icon never does.

The PNG is in the Resources folder of the iOS project and the build action is set to BundleResource.

I've tried:
- a wide variety of images for the icon - a txt.png that I got from a sample, varying sizes from 30x30 to 48x48.
- using icons from 3rd parties specifically designed to be beautiful, awesome, iOS icons for my app.
- ensuring that the filename is all lower case, no spaces, dashes, tildes, acronyms or puns.
- using a FileImageSource instead.
- cleaning the project, rebuilding the project, uninstalling the app, killing the emulator.
- Throwing salt over my shoulder, buying a rabbit's foot and throwing pennies in a fountain.

There is either some secret sauce to this or a bug ... would appreciate any suggestions.

Thanks,

Michael


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>