F# - Hello WPF
- Posted: Mar 01, 2010 at 2:54 AM
- 10,137 Views
- 1 Comment
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- WMV (WMV Video)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
- Mid Quality WMV (Lo-band, Mobile)
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
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
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.
Follow the Discussion
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!
Remove this comment
Remove this thread
close