Recent snippets

Popular snippets

  • ObservableObject

    The ObservableObject type implements the INotifyPropertyChanged interface used in WPF and Silverlight to notify on changes to properties that are bound to a control. Specify property names type safely using F# Quotations, i.e. <@ this.PropertyName @> when invoking the NotifyPropertyChanged method. If you are following the MVVM pattern then your View Model class can inherit from the ObservableObject type.

    67 people like this

    Posted: 14 years ago by Phillip Trelford

  • Factory Pattern

    Factory pattern in F#

    81 people like this

    Posted: 14 years ago by Tao Liu

  • WPF / SilverLight Converter II

    version 1 is http://fssnip.net/62. This new version support convert from any existing function to a converter function by using composition and pipeline. The convert function is to make the function signature agree to the IValueConverter interface. You can add new functions in the FunctionLibrary module and reuse the class definition to reduce the coding effort. The first sample is to show how to make the converter pipeline work, the second one is a debugger converter used to debug the data binding problem.

    90 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

computation expression (15) staging (18) async (98) web (29) learning f# (16) tutorial (17) array (22) list (56) lazy (20) game (32) pattern matching (15) wpf (20) silverlight (22) sequences (48) sequence (32) seq (54) string (29) dsl (23) http (18) generic programming (17)

View all...

Database contains 3205 snippets out of which 1719 is public.