Skip to content

Instantly share code, notes, and snippets.

@forki

forki/gist:2161552

Created Mar 22, 2012
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@Art Art commented Feb 1, 2013

Thanks

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