Custom base class for workflow activity , how to declare dependency property?
Generally we derive a custom activity from Activity or CompositeActivity class, I want to have my custom base class for all ac开发者_运维百科tivities like:
public class BusinessActivity : Activity
{
}
then my custom activities will derive from BusinessActivity.
The question is if I want ErrorMessageProperty and RetryCountProperty as dependency properties, then in the BusinessActivity, how do I declare the third param in Register method:
public static DependencyProperty RetryCountProperty = DependencyProperty.Register("RetryCount", typeof(int), typeof(**BusinessActivity**));
What will happen if I derive from BusinessActivity class?
精彩评论