Skip to content

Instantly share code, notes, and snippets.

@gerardtoconnor
Last active January 23, 2019 23:03
Show Gist options
  • Save gerardtoconnor/06f9746fc006be642d07ce90b4af17f0 to your computer and use it in GitHub Desktop.
Save gerardtoconnor/06f9746fc006be642d07ce90b4af17f0 to your computer and use it in GitHub Desktop.
let MyView model =
stackPanel {
children [
label { content "FontSize is:" }
label { content <@ model.FontSize @> ; fontSize <@ model.FontSize @> }
button {
content "Increase Font Size"
onClick (<@ model.FontSize @> ,fun _ _ -> model.FontSize + 2.) }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment