summaryrefslogtreecommitdiffstats
path: root/tools/Sandcastle/Source/MRefBuilder/XamlAttachedMembersAddIn.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Sandcastle/Source/MRefBuilder/XamlAttachedMembersAddIn.cs')
-rw-r--r--tools/Sandcastle/Source/MRefBuilder/XamlAttachedMembersAddIn.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Sandcastle/Source/MRefBuilder/XamlAttachedMembersAddIn.cs b/tools/Sandcastle/Source/MRefBuilder/XamlAttachedMembersAddIn.cs
index 79c7c76..7d2ad2c 100644
--- a/tools/Sandcastle/Source/MRefBuilder/XamlAttachedMembersAddIn.cs
+++ b/tools/Sandcastle/Source/MRefBuilder/XamlAttachedMembersAddIn.cs
@@ -79,7 +79,7 @@ namespace Microsoft.Ddue.Tools {
// make sure there isn't already such a property
Property existingProperty = type.GetProperty(new Identifier(name), new TypeNode[0]);
- if (existingProperty != null) continue;
+ if (existingProperty != null && existingProperty.IsVisibleOutsideAssembly) continue;
// okay, this really is an indication of an attached property, so create one
@@ -126,7 +126,7 @@ namespace Microsoft.Ddue.Tools {
// make sure there isn't already such an event
Event existingEvent = type.GetEvent(new Identifier(name));
- if (existingEvent != null) continue;
+ if (existingEvent != null && existingEvent.IsVisibleOutsideAssembly) continue;
// okay, this really is an indication of an attached event, so create one