当前位置:编程学习 > C#/ASP.NET >>

WF的问题

我的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的值?多谢。 --------------------编程问答-------------------- 顶一下,随便说点什么好了,只要有人回答就正常结题。 --------------------编程问答--------------------
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,