Skip to content

Instantly share code, notes, and snippets.

@forki
Created March 22, 2012 18:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forki/2161552 to your computer and use it in GitHub Desktop.
Save forki/2161552 to your computer and use it in GitHub Desktop.
Starting the WPF app
open System
open System.Windows
open System.Windows.Controls
open FSharpx
type MainWindow = XAML<"Window.xaml">
let loadWindow() =
let window = MainWindow()
window.Button1.Click.Add(fun _ ->
MessageBox.Show("Hello world!")
|> ignore)
window.Root
[<STAThread>]
(new Application()).Run(loadWindow())
|> ignore
@Art
Copy link

Art commented Feb 1, 2013

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment