1

我已添加TypeDescriptionProvider到我的活动课程 ( SequentialWorkflow)。我跟踪我有ActivityTrackingRecord记录。记录有ActivityType属性,但我看不到我添加的属性。如何从TypeDescriptionProvider工作流跟踪中读取值?

4

1 回答 1

0

您可以将元属性添加到您的属性

[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]

样本

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); }
}
于 2012-10-11T15:11:43.917 回答