Example #1
0
        private static LoadOnDemandBehaviour GetOrCreateBehavior(DependencyObject element)
        {
            var behavior        = element.GetValue(LoadOnDemandCommandBehaviorProperty) as LoadOnDemandBehaviour;
            var specificControl = element as RadTreeView;

            if (behavior == null)
            {
                behavior = new LoadOnDemandBehaviour(specificControl);
                element.SetValue(LoadOnDemandCommandBehaviorProperty, behavior);
            }

            return(behavior);
        }
Example #2
0
 public static void SetLoadOnDemandCommandBehavior(DependencyObject obj, LoadOnDemandBehaviour value)
 {
     obj.SetValue(LoadOnDemandCommandBehaviorProperty, value);
 }