private bool IsCandidateSpecialFolderItem(IProjectTreeCustomizablePropertyContext propertyContext, ProjectTreeFlags flags) { // We're a special folder item if our parent is the special folder. We rely on // the fact that "VisibleOnlyInShowAllFiles" is transitive; that is, if a parent // is marked with it, its children are also implicitly marked with it. if (propertyContext.ParentNodeFlags.Contains(FolderFlags)) { return(flags.IsIncludedInProject()); } return(false); }
protected sealed override bool IsCandidateSpecialFolder(IProjectTreeCustomizablePropertyContext propertyContext, ProjectTreeFlags flags) { if (propertyContext.ParentNodeFlags.IsProjectRoot() && flags.IsFolder() && flags.IsIncludedInProject()) { string folderName = propertyContext.ProjectTreeSettings[AppDesigner.FolderNameProperty]; return(StringComparers.Paths.Equals(folderName, propertyContext.ItemName)); } return(false); }