我在窗口工作流程中创建了一个自定义活动。在该活动中,有一个多选列表框。当我选择多个值并保存该工作流程时,下次从文件中打开该工作流程时,只选择了一个项目。它没有显示多个项目。
[Designer(typeof(StatusQueueDesigner))]
public sealed class StatusQueueCodeActivity : CodeActivity
{
[Description("Enter Queue Name")]
[RequiredArgument]
public InArgument<string> Queue { get; set; }
public string showInList { get; set; }
public string showInDropdown { get; set; }
}
在上面的代码中,showInDropdown变量与listbox绑定
<ListBox
Grid.Column="1"
x:Name="listbox"
SelectedValue="{Binding Path=ModelItem.showInDropdown, Mode=TwoWay, Converter={StaticResource ModelToObjectValueConverter} }"
SelectionMode="Multiple"
HorizontalAlignment="Left"
Height="100"
Margin="12,10,0,0"
Grid.Row="4"
VerticalAlignment="Top"
Width="278"
SelectionChanged="listbox_SelectionChanged"
/>
<FlowStep x:Name="__ReferenceID0">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">86,122</av:Point>
<av:Size x:Key="ShapeSize">448,356</av:Size>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<aa:StatusQueueCodeActivity DisplayName="Queue 1" sap:VirtualizedContainerService.HintSize="448,356" Queue="["Queue"]" showInDropdown="2" showInList="4">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</aa:StatusQueueCodeActivity>
如果您需要任何其他信息,请告诉我们。一个多星期以来,我陷入了这个问题。请提供解决方案。 提前致谢 问候