Xamarin.Forms Book hello F - 代码示例

分享于 

1分钟阅读

Microsoft

  繁體
浏览代码下载ZIP

简单Xamarin.Forms应用程序,Android和iOS都可以运行,用F#编写:


type App() =
 inherit Application()

 let stack = StackLayout(VerticalOptions = LayoutOptions.Center)
 let label = Label(HorizontalTextAlignment = TextAlignment.Center,
 Text = "Welcome to F# Xamarin.Forms!")
 do stack.Children.Add(label)
 do base.MainPage <- ContentPage(Content = stack)


cod  for  BOO  form  sam  表单