open System
open System.Windows
+// Inspired by https://github.com/fsprojects/FSharp.ViewModule/blob/master/src/FSharp.ViewModule/FunCommand.fs
type FunCommand (execute : obj -> unit, canExecute : obj -> bool) =
let canExecuteChanged = Event<EventHandler, EventArgs> ()