Fluent Xamarin Forms is a fluent interface for Xamarin.Forms to build the layout of your UI in a fluent way.
using FluentXamarinForms;
// Class for register custom controls
public class Create : FluentCreate
{}
public class SamplePage : ContentPAge
{
public SamplePage()
{
// Modify already created objects, like this ContentPage, with handover as a parameter
Create.ContentPage (this)
.Title("Todo List")
// Add directly a toolbar item and bind it
.AddToolbarItem (Create.ToolbarItem ()
.Text ("Add")
.BindCommand ("Add"))
// And define the content, like a list view and bind it to "Items"
.Content (Create.ListView ()
.BindItemSource ("Items")
.ItemTemplate (new DataTemplate (typeof(TodoItemCell)))
.SeperatorVisibility(SeparatorVisibility.None))
// With the final build the Xamarin.Forms controls are created
.Build ();
}
}
- Simple Todo App that create the UI with Fluent Xamarin Forms
All Xamarin.Forms Platforms are supported.
- Xamarin.iOS
- Xamarin.Android
- WinRT
- Binding & Style methods that make the life easier. Suggestions? Send me a message!
- A code generator to generate the Fluent classes for all Xamarin.Forms controls (and custom controls?) with reflection on the fly.
- @adamjwolf for the great articles on his blog with articles like Xinions – Xamarin.Forms style minions that do the dirty work for you and Xamarin.Forms - Nugget - Paddington.
- @marcelmalik | Twitter: @marcelmalik