public static IList <ReferenceStep> GetBindableProperties(SceneNode sceneNode, IType targetPropertyType) { IList <ReferenceStep> sourceProperties = BindingPropertyHelper.GetBindableSourceProperties(sceneNode); for (int index = sourceProperties.Count - 1; index >= 0; --index) { if (!MiniSourceBindingDialogModel.IsValidProperty(sceneNode, sourceProperties[index], targetPropertyType)) { sourceProperties.RemoveAt(index); } } return(sourceProperties); }
public static bool AnyBindableProperties(SceneNode sceneNode, IType targetPropertyType) { return(Enumerable.Any <ReferenceStep>((IEnumerable <ReferenceStep>)BindingPropertyHelper.GetBindableSourceProperties(sceneNode), (Func <ReferenceStep, bool>)(prop => MiniSourceBindingDialogModel.IsValidProperty(sceneNode, prop, targetPropertyType)))); }