Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5973225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:46:12+00:00 2026-05-22T20:46:12+00:00

In Windows Workflow Foundation 3.x, you used to be able to create a BaseWorkflow

  • 0

In Windows Workflow Foundation 3.x, you used to be able to create a BaseWorkflow class where you could define some properties in that workflow.

And then when you create a workflow you can say it derives from BaseWorkflow class so it inherits all the properties from the base workflow.

Can we achieve the same thing in Windows Workflow Foundation 4 (WF 4)? Like defining InArgument and OutArgument on a BaseActivity then create another Activity that derives from the BaseActivity.

I tried by modify the XAML from let’s say <Activity></Activity> to like <BaseActivity></BaseActivity> … that was the way we did it in WF 3.x.

It doesn’t seem to work in WF 4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:46:13+00:00Added an answer on May 22, 2026 at 8:46 pm

    Found a solution to this. It’s actually quite easy. The class generated by the XAML declaration is marked as partial so you can create a class (also marked partial) for your activity (workflow) base. Then in XAML, just change the class attribute on your activity to the full namespace of the class you just created.

    Base Activity Example:

    public partial class OurBaseWorkflow : Activity
    {
         public InArgument<string> StandardInput { get;set; }
    }
    

    XAML example:

    <p:Activity x:Class="MyNamespace.OurBaseWorkflow"
                xmlns:s="clr-namespace:System;assembly=mscorlib"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
        ...
    </p:Activity>
    

    With this method, you can define both in and out arguments on the base class and they show up for your derived activities as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there support for attached properties in Windows Workflow Foundation 4? If not, how
Now that Microsoft has revamped their workflow framework in Windows Workflow Foundation 4, what
I read some blog that If we host workflow foundation in asp.net, there will
I heard from a friend that Microsoft rewrote all the Windows Workflow Foundation (WF)
I'm looking for visualization/simulation tools for Windows Workflow Foundation, which can show how certain
Can you recommend some resources (web or book) providing an introduction to Windows Workflow
I am implementing a Microsoft Speech Server application built on windows workflow foundation. The
I have a client who's interested in utilizing Windows Workflow Foundation (WF) technology in
I have a Windows Workflow application that uses classes I've written for COM automation.
Can you use Windows Workflow and Compact Framework 3.5? I've just got an evaluation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.