I want to declare an event in a XAML file and then add a handler in a fs file.
The upper part of the XAML file would be something like (MouseRightButtonDown):
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="AboutStack" MouseRightButtonDown="AboutStack_MouseRightButtonDown"
Title="About" SizeToContent="WidthAndHeight">
<StackPanel>...
The F# file contains:
open FsXaml
type MainWindow = XAML<"MainWindow.xaml", true>
let mainwnd = new MainWindow()
let wnd = mainwnd.Root
Is there an easy way to make the link?