Skip to content

Commit

Permalink
Format templates
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLariviere committed Jan 16, 2022
1 parent 08e0938 commit 2c38bef
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/content/blank/NewApp/App.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace NewApp

open Xamarin.Forms
open Fabulous.XamarinForms

open type View

module App =
Expand All @@ -20,20 +21,21 @@ module App =

let view model =
Application(
ContentPage("NewApp",
ContentPage(
"NewApp",
VerticalStackLayout() {
Label("Hello from Fabulous v2!")
.font(namedSize = NamedSize.Title)
.centerTextHorizontal()
.centerTextHorizontal ()

(VerticalStackLayout() {
Label($"Count is {model.Count}")
.centerTextHorizontal()
.centerTextHorizontal ()

Button("Increment", Increment)
Button("Decrement", Decrement)
})
.centerVertical(expand = true)
})
.centerVertical (expand = true)
}
)
)
Expand Down

0 comments on commit 2c38bef

Please sign in to comment.