F# - Hello WPF

Download this episode

Download Video

Description

by Tabbles.net

In this "hello world" tutorial I am going to show you how to write a WPF application in F#.

The application will display a simple window containing one TextBlock and one Button. When you click the Button, the text in the TextBlock will change.

Since neither Visual Studio nor Blend are capable of producing f# code, we are not going to use any visual GUI editor, otherwise we would have to create two projects in Visual Studio, one in C# for the UI, and one in F# for the logic, which would make things more complicated for a hello world tutorial

Tags:

DPEDK, VS2010dk

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      Javaman59

      Pretty good, but two problems...

       

      1. You rushed past the change "w.Content <- sp" at 5:30, and I missed it first 5 times I watched the video. (which is how many times I watched it, trying to work out why my program didn't work) Having a download of the code would have been VERY helpful.

       

      2. I coudn't get it to work as an application in VS 2010. I had to use the interpreter (fsi).

       

      Thanks. At least it's working now! Smiley

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.