Com.Aote.ObjectTools.GeneralObject.OnPathChanged C# (CSharp) Method

OnPathChanged() private static method

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