Wpf F#XAML数据网格组合框

Wpf F#XAML数据网格组合框,wpf,xaml,combobox,f#,Wpf,Xaml,Combobox,F#,你好,谢谢你的帮助 我有一个WPF应用程序,我试图在其中创建一个组合框,并向组合框传递一个字符串列表 下面是我的XAML代码,带有一个位于DataGrid.Columns内的 <DataGridTextColumn Header="Mapping Notes" Binding="{Binding Path=MappingNote}" /> <DataGridComboBoxColumn x:Name="functionArg1

你好,谢谢你的帮助

我有一个WPF应用程序,我试图在其中创建一个组合框,并向组合框传递一个字符串列表

下面是我的XAML代码,带有一个位于DataGrid.Columns内的

<DataGridTextColumn Header="Mapping Notes"  Binding="{Binding Path=MappingNote}" />
<DataGridComboBoxColumn x:Name="functionArg1Combobox" Header="Arg1" ItemsSource="{Binding ArgumentDropDownList}" SelectedItemBinding="{Binding Path=arg1}" />

在F#中,我在下面输入FDMappingRow,创建一个成员

type FDMappingRow() =
let mutable targetField: string = "initial target"
            let mutable speacialFunction: string = "innitial function"
            let mutable mappingNote: string = "ATesting"
            let mutable argumentDropDownList: System.Collections.Generic.List<string> = new List<string>()

 member x.MappingNote
                with get() = mappingNote
                and set(t) = 
                    mappingNote <- t
                    x.TriggerPropertyChanged "MappingNote"
        
        //Testing to see if I can get Combobox working
            member x.Argument1
                with get() = argumentDropDownList
                and set(t) = 
                    argumentDropDownList <- t
                    x.TriggerPropertyChanged "and pass it that list into to populate the combobox"
类型FDMappingRow()=
let mutable targetField:string=“初始目标”
让可变特殊函数:string=“初始函数”
让可变映射注意:string=“ATesting”
让可变参数DropDownList:System.Collections.Generic.List=新列表()
成员x.MappingNote
使用get()=mappingNote
和set(t)=
地图注释
member x.Argument1
                    with get() = argumentDropDownList
                    and set(t) = 
                        argumentDropDownList <- t
                        x.TriggerPropertyChanged "and pass it that list into to populate the combobox"