Help! a confused trouble about my cumstom activity.
hi,
I am coding a custom activity, which has a DependencyProperty named myProperty1. and this myProperty1 is a subclass of DependencyObject in the same assembly. My custom activity works well with Designer. However, while i run the assembly compiled from the XAML file generated by Designer, it allways fails. Then i disamble this assembly by Reflector, it confused me that Compiler DOESN'T generate a field matched with myProperty1. Why? Is it a BUG?
Some codes as following:
public class myCustomActivity: Activity
{
...
public myClass1 myProperty1
{
get{...}
set{...}
}
...
}
pubic class myClass1: DependencyObject
{
public string Name
{
get{...}
set{...}
}
}
//generated some codes by compiler as following
//Note: myProperty1 not GENERATED!
private void InitializeComponent()
{
base.CanModifyActivities = true;
this.myCustomActivity1 = new myCustomActivity();
....
base.Activities.Add(this.myCustomActivity1);
....
base.Name = "Workflow1";
base.CanModifyActivities = false;
}
Thanks in advance!

