Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLariviere authored Feb 13, 2019
1 parent 3344d7c commit 8eb4ab3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,16 @@ let update (msg: Msg) (model: Model) =
/// The view function giving updated content for the page
let view (model: Model) dispatch =
if model.Pressed then
View.Label(text="I was pressed!")
else
View.Button(text="Press Me!", command=(fun () -> dispatch Pressed))
View.ContentPage(
content=View.StackLayout(
children=[
if model.Pressed then
yield View.Label(text="I was pressed!")
else
yield View.Button(text="Press Me!", command=(fun () -> dispatch Pressed))
]
)
)
type App () as app =
inherit Application ()
Expand Down

0 comments on commit 8eb4ab3

Please sign in to comment.