private static void OnPathChanged(DependencyObject dp, DependencyPropertyChangedEventArgs args) { GeneralObject go = (GeneralObject)dp; //如果指明Path改变时,不加载数据,则只有当外界要求,加载数据时,才加载 if (go.loadOnPathChanged) { go.Load(); } }