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 8289539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:31:49+00:00 2026-06-08T12:31:49+00:00

Old System.ComponentModel provides a DefaultValueAttribute that, when applied to a property, marks it as

  • 0

Old System.ComponentModel provides a DefaultValueAttribute that, when applied to a property, marks it as having a default value in tools such as the Windows Forms Designer.

Is there an equivalent attribute in the WPF/Workflow Foundation world? The following didn’t work as expected:

[DefaultValue('|')] // From System.ComponentModel
public InArgument<char> ColumnSeparator { get; set; }

The WPF Designer ignores this attribute declaration.

  • 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-06-08T12:31:50+00:00Added an answer on June 8, 2026 at 12:31 pm

    The equivalent is to implement IActivityTemplateFactory, and within the Create method set all your defaults.

    You can have your Activity implement this in order to keep the fuss and muss down.

    public sealed class MyActivity : NativeActvity, IActivityTemplateFactory
    {
        public Activity Create(DependencyObject target) { /*...*/ }
        // snip
    

    Doing your configuration/initialization in this method will help you avoid all the odd corner cases you may strike when trying to initialize your Activities. You can also perform a cast on that target and get everything you need from the state of the workflow within the design surface (e.g., automatically binding to properties).

    IActivityTemplateFactory is pretty powerful. It isn’t limited to just adding a single Activity. Hell, you could drop in a fully built out subassembly, so to speak, of a workflow. Its good stuff.

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

Sidebar

Related Questions

Is it possible to wrap the old System.Windows.Forms controls in System.Windows.UIElement? I know that
I have a templating system that looks similar to old-style ASP code. I run
I'm attempting to add a cmake build system to an old fortran code that
I have an old ASP 3.0 system that I want to move into a
The company I work for has a very old system that uses Paradox. I
why sql server 2005 so sucks? i should work on an old system that
I have an old system that uses XML for it's data storage. I'm going
I'm working on an old system that has multiple SQL injection risks. In order
I have an old web application that's being migrated to a different system, and
I need to upgrade an old system based on Zope, I need to be

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.