Xamarin.Forms.InterfaceBuilder

InterfaceBuilder is an hepful api to write Xamarin.Forms user interfaces directly in sourcecode. It's heavly relying on the builder pattern. So you can write: var ui = new UI(); MainPage = ui.Page("MainPage", ui.Stack().With( ui.Label("A"), ui.Label("B"), ui.Label("C")) );


Keywords
License
Other
Install
Install-Package Xamarin.Forms.InterfaceBuilder -Version 0.5.9

Documentation

InterfaceBuilder

InterfaceBuilder is a handy wrapper around Xamrin.Forms to improve the writing of user interface code directly in C# (no XAML).

It's a combination of factory pattern (see UI.cs) and the builder pattern (extension methods defined mainly in ContentConfiguration.cs). So you can write:

var ui = new UI();

MainPage = ui.Page("MainPage", ui.Stack().Vertical().With(
  ui.Label("A"),
  ui.Label("B"),
  ui.Label("C"))
);

This package is used in several projects at Perpetual Mobile, licensed under APACHE LICENSE and is hopefully useful to you.

We have no proper documentation jet but provide some examples in the Demo project. Have a look at FundamentalsModule.cs to see how we implemented this screen:

And to see how to add images look at ImageModule.cs: