WF的问题

donkey301 2011-12-13 02:07:23
我的Winform中Rehosting了一个WF3.5的Designer和Property窗口。

现在我有个DependencyProperty,譬如

public static DependencyProperty MyPropertyProperty = DependencyProperty.Register("MyProperty", typeof(string), typeof(Activity1),...
public string MyProperty
{
get
{
return ((string)(base.GetValue(Activity1.MyPropertyProperty)));
}
set
{
base.SetValue(Activity1.MyPropertyProperty, value);
}
}


在Execute中更新了MyProperty的值,

 protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
{
MyProperty = "Test";
return ActivityExecutionStatus.Closed;
}


我执行流程后MyProperty的值更改了,但Property窗口中MyProperty的值依然没有变换,请问如何更新Property窗口中显示的MyProperty的值?多谢。
...全文
61 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
donkey301 2011-12-15
  • 打赏
  • 举报
回复
顶一下,随便说点什么好了,只要有人回答就正常结题。

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧