Created
March 22, 2012 18:43
-
-
Save forki/2161552 to your computer and use it in GitHub Desktop.
Starting the WPF app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks