Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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))));
 }