Wallace B. (Wally) McClure: Single Founder vs. CoFounders in a Startup – Some things to think about

You’re a developer who has just created a great idea and then verified that a marketplace exists for it. You’ve got an idea how to create income from it business. Now the problem is, you are just you and there is still lots of stuff to do. How do you move forward now? Let’s walk through a number of these issues in my article at Visual Studio Magazine.

James Montemagno: Add NuGets To All Projects In Xamarin Studio with 1 Click

I simply love Matt Ward, a wonderful developer who works on NuGet inside of Xamarin Studio. He is always blogging about all of the recent updates to NuGet in XS, so be sure to follow his blog. Matt does so much more though including an awesome add-in for Xamarin Studio to add some awesome new features when using Xamarin Studio. My favorite feature is Solution Level adding of NuGet packages. Why do I love this feature? Well because I use tons of Plugins for Xamarin (and so should you). 

Installing and Using The Add-in

To get started all you need to do is go to the Xamarin Studio Add-in Manager.

You will need to turn on the alpha channel under the Gallery tab by selecting Manage Repositories:

Then turn on Alpha Channel, Hit Close, and then Refresh the list.

You will now see the NuGet Package Manager Extensions available under IDE extensions:

With the add-in installed you can now open up your cross platform native mobile app or create a new one. Now if I want to add my Settings Plugin to all of my projects all I have to do is Right Click on your solution and you will see “Manage Packages”. 

This will bring up an older NuGet package manager (not the new fancy official one), but you can search for a NuGet and then hit Manage to select which projects you want to install them in.

There you have it, easily adding NuGet packages at a solution level to all of your projects. You will then receive all of your normal updates Xamarin Studio offers and still have access to the per platform NuGet Package Manager.

Xamarin: Join Xamarin at GOTO London & GOTO Copenhagen

Highly regarded in the software development community, the GOTO Conference series of annual events has been firmly established in Europe since 2009. This year, for the first time, the UK is getting it’s own three-day conference at GOTO London 2015. GOTO London 2015 – September 16th to 18th (Workshops Sept. 15-16) Join Xamarin Developer Evangelist […]

The post Join Xamarin at GOTO London & GOTO Copenhagen appeared first on Xamarin Blog.

Xamarin: Easily Automate Your Xamarin.Forms Apps

When developing mobile applications, it’s extremely time consuming and tedious to manually test your app for every new feature added or bug fixed. Of course, it’s possible to test an app’s business logic with common unit testing practices using nUnit or xUnit, but what about the user interface? How can we ensure that an application’s […]

The post Easily Automate Your Xamarin.Forms Apps appeared first on Xamarin Blog.

Gone Mobile: Episode 28: Behind the Scenes of Xamarin.Forms with Jason Smith

In this episode we’re talking about Xamarin.Forms again, but this time around it’s a bit different. We’re joined once again by Jason Smith, lead developer of Xamarin.Forms, to take a look behind the scenes of Xamarin.Forms. We get into where it came from, inspirations, design decisions, triumps, mistakes, and more. Join us for this peek behind the curtain of creating the Xamarin.Forms framework!

Hosts: Greg Shackles, Jon Dick

Guest: Jason Smith

Links:

Thanks to our Sponsors!

Raygun.io

Raygun.io – Exceptional Error Tracking
Raygun.io is the fastest and easiest way to track your application’s errors and get the level of detail you need to fix crashes quickly. Notifications are delivered right to your inbox and presented on a beautiful dashboard.

Xamarin: Mobile Apps with Visual Basic & Xamarin.Forms

If you are a Visual Basic developer, your options for becoming a mobile developer have historically been limited to targeting Windows Phone; however, with Xamarin.Forms, Portable Class Libraries, and Visual Studio, developing iOS and Android apps entirely in Visual Basic has become a real possibility. Last year I wrote about how Visual Basic Portable Class […]

The post Mobile Apps with Visual Basic & Xamarin.Forms appeared first on Xamarin Blog.

Johan Karlsson: Using iOS standard icons in Xamarin Forms

Have you ever wished for using the standard iOS icons in the toolbar for Xamarin Forms applications? Then you are reading the correct blog post. If not, then you are in the wrong place.

The problem

We want to utilize the built in icons for iOS in our Xamarin Forms application to create something like the image below.

The solution

The good news is that is isn’t really that complicated. Simply create a custom renderer and add some behavior to the NavigationRenderer.

First, the Xaml

The definition of our view looks like this.

xml version=1.0 encoding=UTF8?>
<ContentPage xmlns=http://xamarin.com/schemas/2014/forms 
    xmlns:x=http://schemas.microsoft.com/winfx/2009/xaml 
    Title = Welcome
    x:Class=Test.MyPage>

    <ContentPage.ToolbarItems>
        <ToolbarItem Name=Add />
        <ToolbarItem Name=Camera />
    </ContentPage.ToolbarItems>

    <ContentPage.Content>
        <Label Text=Wow, thats cool! HorizontalOptions=Center VerticalOptions=Center />
    </ContentPage.Content>

</ContentPage>

The key part here is to name your ToolbarItems to something useful and something that we can reference in the custom renderer. You also might want to make sure that the name works on Android and Windows Phone since those platforms won’t be affected by this change.

Then the renderer

Being a swede, I have trouble saying the word Renderer… Rendererrerr… Anyhow, this is what it looks like in code. The key is to look at the title for each UIBarButtonItem and replace the entire button with a new one. So we first define a new list to hold our new buttons and then recreate them, one by one to finally assign the new list to the NavigationItem.

The renderer goes in the iOS project since it’s iOS specific.

[assembly: ExportRenderer(typeof(NavigationPage), typeof(CustomNavigationRenderer))]

namespace ToolbarApp.iOS.Renderers
{
    public class CustomNavigationRenderer : NavigationRenderer
    {

        public override void PushViewController(UIKit.UIViewController viewController, bool animated)
        {
            base.PushViewController(viewController, animated);

            var list = new List<UIBarButtonItem>();

            foreach (var item in TopViewController.NavigationItem.RightBarButtonItems)
            {
                if(string.IsNullOrEmpty(item.Title))
                {
                    continue;
                }

                if (item.Title.ToLower() == add)
                {
                    var newItem = new UIBarButtonItem(UIBarButtonSystemItem.Add)
                    {
                        Action = item.Action,
                        Target = item.Target
                    };
                    
                    list.Add(newItem);
                }

                if (item.Title.ToLower() == camera)
                {
                    var newItem = new UIBarButtonItem(UIBarButtonSystemItem.Camera)
                        {
                            Action = item.Action,
                            Target = item.Target
                        };

                    list.Add(newItem);
                }

                TopViewController.NavigationItem.RightBarButtonItems = list.ToArray();
            }
        }
    }
}

Summary

It’s pretty simple to utilize platform specific stuff in Forms and you should do that in order keep that native feeling. The key to success is Custom Renderers. Learn to use them and you’ll excel in all parts of your life!

Resources

The original post from the Xamarin Forum. Thanks goes to Torben Kruse for initially answering this question.