Skip to content

Latest commit

 

History

History
63 lines (52 loc) · 3.4 KB

README.md

File metadata and controls

63 lines (52 loc) · 3.4 KB

Fluent Xamarin Forms

NuGet (master):

MyGet (dev):

Fluent Xamarin Forms is a fluent interface for Xamarin.Forms to build the layout of your UI in a fluent way.

Usage

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 ();
    }
}

Samples

Supported Plattforms

All Xamarin.Forms Platforms are supported.

  • Xamarin.iOS
  • Xamarin.Android
  • WinRT

Planned Features

  • 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.

Thanks to

Maintainer(s)

License