将 DataTable 传递到 UiPath WPF Form Creator activity

Passing DataTable into a UiPath WPF Form Creator activity

我正在使用这个 nuget UiPathTeam.WpfFormCreator.Activities,通过它我们可以显示一个 xaml 表单供有人值守的机器人进行用户输入。 我设法正确地处理类型(文本、图像、日期...)以按照下面的 link https://github.com/RaduPantelimon/UiPathActivities/blob/master/WpfFormCreator/XamlFormCreator.docx 填充 TextBoxes、DatePicker 等控件。现在我还需要填充 DataGrid 传递a DataTable.I 已经做了这么多,但是卡在了我们为 DataTable 指定类型的地方。对于字符串,它是 "Text",日期时间是 "Value"。到目前为止,我已经尝试过 (DataTable、List、Array..) 但我收到以下错误。

错误截图:

这是我的xaml

<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"                             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"   
  Margin="10" Width="1000" Height="1500" >                                      
    <DataGrid  Name="Table" ItemsSource="{Binding}" AutoGenerateColumns="True" />   

    <Button Grid.Row="4" Grid.Column="1" Margin="5" HorizontalAlignment="Center" Name="submitButton" Width="100" Height="30" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">Submit</Button>
</Grid>

这是我的Return字典

New Dictionary( Of String, Dictionary( Of String, Object))  From { 
{ "Table", New Dictionary( Of String, Object) From { { "DataTable",InvoiceDT 
} } }}

尝试将"DataContext"作为传递DataTable的类型

New Dictionary( Of String, Dictionary( Of String, Object))  From { 
{ "Table", New Dictionary( Of String, Object) From { { "DataContext", InvoiceDT } } }}