Skip to content

MarcelMalik/Fluent-Xamarin-Forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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