Hi team,
I am new to WF, I have created a model which has 2 InArgument
public InArgument FText { get; set; }
public InArgument LText { get; set; }
I wan to read this from xaml,
I am able to get one value however not for both proerties.
Please help me with the sample.
Regards,
Pradeep

KevejohnPosted Oct 27, 2025, 10:42 AM
To get values for several InArguments, you need to understand how data moves and how variables work in your workflow. Staying organized and assigning each argument properly will help you avoid mistakes. In the same way, a uk gpa calculator can help you keep your academic results accurate and make it easier to see how you are doing.uk gpa calculator
Sandhiya PriyaPosted Oct 27, 2025, 9:19 AM
you’re working with Windows Workflow Foundation (WF), and you’ve built a custom activity that defines two
InArgumentproperties:FTextandLText.You’re now trying to pass both arguments from XAML (for example, from a workflow
.xamlfile), but only one seems to get through.Let’s fix that — and I’ll show you a complete working example.
1. Your custom activity class
Here’s a minimal version of your custom WF activity:
2. Using it from XAML
Now, in your workflow XAML file, you can define and use this activity like this:
3. Passing values to it
If you want to hardcode values directly inside XAML:
This will print:
4. Passing variables defined in the workflow
If your workflow defines variables (say
FirstName,LastName), you can bind them like so:That syntax —
FText="[FirstName]"— is very important: it binds the argument to the workflow variable.5. Common gotchas
6. If you’re invoking workflow from code
Here’s a quick example to run that
.xamland pass arguments at runtime:Summary
Define your custom activity with
InArgumentproperties.Use
property.Get(context)to read values inExecute().In XAML:
Use
property="LiteralValue"for constants.Use
property="[VariableName]"for variables.