Skip to content

Instantly share code, notes, and snippets.

@giuliohome
Created August 2, 2018 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giuliohome/d6584961cecfa5ef816ebd4d44de3382 to your computer and use it in GitHub Desktop.
Save giuliohome/d6584961cecfa5ef816ebd4d44de3382 to your computer and use it in GitHub Desktop.
Model with composition
type Back2UI() =
inherit SimpleViewModelBase()
let mutable _msg = ""
member this.msg
with get() = _msg
and set value =
_msg <- value
this.OnPropertyChanged(<@ this.msg @>)
type ActivePassive = Active | Passive
type Invoice = { CptyName: string; CptyNum: int; InvoiceNr: string; amount : decimal; curr: string; buysell: ActivePassive; ui: Back2UI}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment