WF4.0 Beta2:关于动态保存和装载XAML工作流
2010-09-30 21:05:54 来源:WEB开发网3.执行的结果如下:
--------------------------------------------------------------------------------------------
Getting Started
helloworld
result text is helloworld that's ok!
there are 3 arguments in the activity builder
press enter to exit
--------------------------------------------------------------------------------------------
4.生成的XAML如下:
<?xml version="1.0" encoding="utf-16"?>
<Activity x:Class="HelloWorldCary" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="input1" Type="InArgument(x:String)" />
<x:Property Name="input2" Type="InArgument(x:String)" />
<x:Property Name="output" Type="OutArgument(x:String)" />
</x:Members>
<Sequence>
<WriteLine Text="Getting Started" />
<Delay Duration="00:00:04" />
<WriteLine Text="[input1+input2]" />
<Assign x:TypeArguments="x:String" To="[output]" Value="[input1+input2+" that's ok!"]" />
</Sequence>
</Activity>
更多精彩
赞助商链接