/// <summary></summary> protected virtual bool FrameSelectorForPropertySingle(IFocusFrame root, string propertyName, out IFocusFrameWithSelector frame) { frame = null; bool Found = false; if (root is IFocusSelectorPropertyFrame AsSelectorPropertyFrame) { Found = AsSelectorPropertyFrame.FrameSelectorForProperty(propertyName, out frame); } return(Found); }
/// <summary> /// Returns the frame associated to a property if it can have selectors. /// </summary> /// <param name="propertyName">Name of the property to look for.</param> /// <param name="frame">Frame found upon return. Null if not matching <paramref name="propertyName"/>.</param> public virtual bool FrameSelectorForProperty(string propertyName, out IFocusFrameWithSelector frame) { frame = null; bool Found = false; if (Root is IFocusSelectorPropertyFrame AsSelectorPropertyFrame) { Found = AsSelectorPropertyFrame.FrameSelectorForProperty(propertyName, out frame); } return(Found); }
/// <summary> /// Returns the frame associated to a property if it can have selectors. /// </summary> /// <param name="propertyName">Name of the property to look for.</param> /// <param name="frame">Frame found upon return. Null if not matching <paramref name="propertyName"/>.</param> public virtual bool FrameSelectorForProperty(string propertyName, out IFocusFrameWithSelector frame) { frame = null; bool IsFound = false; foreach (IFocusFrame Item in Items) { if (Item is IFocusSelectorPropertyFrame AsSelectorPropertyFrame) { if (AsSelectorPropertyFrame.FrameSelectorForProperty(propertyName, out frame)) { IsFound = true; break; } } } return(IsFound); }