Custom base class for workflow activity , how to declare dependecy property ?
Posted
by Ajax2020
on Stack Overflow
See other posts from Stack Overflow
or by Ajax2020
Published on 2010-04-12T09:35:12Z
Indexed on
2010/06/13
8:22 UTC
Read the original article
Hit count: 159
Generally we derive custom activity from Activity or CompositeActivity class, i want to have my custom base class for all activities :
like
public class BusinessActivity : Activity
{
}
then my custom activities will derive from BusinessActivity .
The quetions is if i want ErrorMessageProperty and RetryCountProperty as dependency properties then in the BusinessActivity how to declare third param in Register method
like
public static DependencyProperty RetryCountProperty = DependencyProperty.Register("RetryCount", typeof(int), typeof(**BusinessActivity**));
What will happen if i derive from BusinessActivity class ?
© Stack Overflow or respective owner