Skip to content

Instantly share code, notes, and snippets.

@ReedCopsey
Last active December 18, 2018 16:37
Show Gist options
  • Save ReedCopsey/ccbe5494122d44dedd811a27b7084b63 to your computer and use it in GitHub Desktop.
Save ReedCopsey/ccbe5494122d44dedd811a27b7084b63 to your computer and use it in GitHub Desktop.
FsAdvent 2018 Code
[<STAThread>]
[<EntryPoint>]
let main _ =
let app () =
AppBuilder.Configure<App>().UsePlatformDetect().LogToDebug().SetupWithoutStarting().Instance
let nav = Gjallarhorn.Avalonia.Navigation.singleView app MainWindow
let app' = Program.application nav.Navigate
Gjallarhorn.Avalonia.Framework.RunApplication<Forest,unit,ForestMessage> (nav, app')
0
[<STAThread>]
[<EntryPoint>]
let main _ =
// Run using the WPF wrappers around the basic application framework
let nav = Gjallarhorn.Wpf.Navigation.singleView System.Windows.Application MainWindow
let app = Program.application nav.Navigate
Gjallarhorn.Wpf.Framework.RunApplication<Forest,unit,ForestMessage> (nav, app)
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment