Question

I've added TypeDescriptionProvider to my activity class (SequentialWorkflow). I tracking I have ActivityTrackingRecord record. Record has ActivityType and in it attributes but I cannot see attribute added by me. How can I read value from TypeDescriptionProvider in workflow tracking ?

Was it helpful?

Solution

You can add meta attribute to your property

[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]

Sample

public static DependencyProperty TestProperty 
  = DependencyProperty.Register(
      "Test", typeof(string), typeof(YourActivity));


[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[ValidationOption(ValidationOption.Optional)]
[Browsable(true)]
[Description("Enter ....")]
public string Test
{
   get { return ((string)(base.GetValue(YourActivity.TestProperty))); }
   set { base.SetValue(YourActivity.TestProperty, value); }
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top