Alex Rivera | Logout

F#: is there no UI (like WPF) for it?

Asked 2009-06-28T11:41:22.357
19

i recently saw some videos on F#. it seems it used mainly for Service or Classes only? i see no "F# WPF" app in VS2010 Beta?

Edit
Report

2 Answers

14

You can certainly create GUIs in F# - it's just another .NET language, after all.

Tomas Petricek's book, Functional Programming for the Real World (which I've helped out with a little bit) has various GUI examples. The source code is available to download if you want to see examples.

Admittedly some aspects of GUI programming don't map terribly well to a functional style, as there's a lot of mutation involved, but there are ways and means around that :)

answered 2009-06-28T11:45:34.750
5

We sell a commercial library called F# for Visualization that is written in 100% F# code and uses WPF to provide interactive graphics with typeset mathematics from your F# code:

alt text
(source: ffconsultancy.com)

So it is certainly possible to write GUI apps in F# using WPF.

answered 2009-10-02T17:59:49.040

Your Answer