我已添加TypeDescriptionProvider
到我的活动课程 ( SequentialWorkflow
)。我跟踪我有ActivityTrackingRecord
记录。记录有ActivityType
属性,但我看不到我添加的属性。如何从TypeDescriptionProvider
工作流跟踪中读取值?
问问题
84 次
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 回答