Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
extensions
samples
src
templates
tests
tools/Fabulous.XamarinForms.Generator
Directory.Build.props
README.md
paket.dependencies

README.md

Fabulous for Xamarin.Forms

Write cross-platform apps with Xamarin.Forms, using MVU architecture and dynamic UI

Fabulous.XamarinForms NuGet version Build Status Join the chat at https://gitter.im/fsprojects/Fabulous

This library allows you to use the ultra-simple Model-View-Update architecture to build applications for iOS, Android, Mac, WPF and more using Xamarin.Forms. It is built on Fabulous.

The amount of code I'm not writing is great! @jimbobbennett

With Fabulous for Xamarin.Forms, you will be able to write complete applications fully in F#, like this:

type Model = { Text: string }
type Msg = ButtonClicked

let init () = { Text = "Hello Fabulous!" }

let update msg model =
    match msg with
    | ButtonClicked -> { model with Text = "Thanks for using Fabulous!" }

let view model dispatch =
    View.ContentPage(
        View.StackLayout(
            children=[
                View.Image(source = "fabulous.png")
                View.Label(text = model.Text, fontSize = 22.)
                View.Button(text = "Click me", command = (fun () -> dispatch ButtonClicked))
            ]
        )
    )

For more information, please take a look at the documentation.

Roadmap

Contributing

Please contribute to this library through issue reports, pull requests, code reviews and discussion.

You can’t perform that action at this time.