Tutorial by Examples

Create an F# console application. Change the Output type of the application to Windows Application. Add the FsXaml NuGet package. Add these four source files, in the order listed here. MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...
It's a good idea to keep all icons and images in one or more folders. Right click on the project, and use F# Power Tools / New Folder to create a folder named Images. On disk, place your icon in the new Images folder. Back in Visual Studio, right click on Images, and use Add / Existing Item, then...
Create a text file named AppIcon.rc, with the following content. 1 ICON "AppIcon.ico" You will need an icon file named AppIcon.ico for this to work, but of course you can adjust the names to your liking. Run the following command. "C:\Program Files (x86)\Windows Kits\10\bin\x64\...
Add these two files in this order above the files for the main window. MyControl.xaml <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc=&quo...
If you add controls from third party libraries in a C# WPF project, the XAML file will normally have lines like this one. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" This will perhaps not work with FsXaml. The designer and the compiler accepts that line, but there will prob...

Page 1 of 1