|
|
@ -398,7 +398,7 @@ namespace Ricciolo.StylesExplorer.MarkupReflection |
|
|
|
this.ReadXmlnsProperty(); |
|
|
|
this.ReadXmlnsProperty(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BamlRecordType.ConnectionId: |
|
|
|
case BamlRecordType.ConnectionId: |
|
|
|
reader.ReadInt32(); |
|
|
|
this.ReadConnectionId(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case BamlRecordType.DeferableContentStart: |
|
|
|
case BamlRecordType.DeferableContentStart: |
|
|
|
Current.IsDeferred = true; |
|
|
|
Current.IsDeferred = true; |
|
|
@ -505,6 +505,12 @@ namespace Ricciolo.StylesExplorer.MarkupReflection |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ReadConnectionId() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
int id = reader.ReadInt32(); |
|
|
|
|
|
|
|
nodes.Enqueue(new XmlBamlSimpleProperty(XWPFNamespace, "ConnectionId", id.ToString())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void ReadTextWithId() |
|
|
|
void ReadTextWithId() |
|
|
|
{ |
|
|
|
{ |
|
|
|
short textId = reader.ReadInt16(); |
|
|
|
short textId = reader.ReadInt16(); |
|
|
@ -1489,19 +1495,16 @@ namespace Ricciolo.StylesExplorer.MarkupReflection |
|
|
|
bool isAttached = (descriptor != null && descriptor.IsAttached); |
|
|
|
bool isAttached = (descriptor != null && descriptor.IsAttached); |
|
|
|
bool differentType = ((propertyDeclaration.DeclaringType != propertyDeclaration.DeclaringType || !isDescendant)); |
|
|
|
bool differentType = ((propertyDeclaration.DeclaringType != propertyDeclaration.DeclaringType || !isDescendant)); |
|
|
|
|
|
|
|
|
|
|
|
if (withPrefix) |
|
|
|
if (withPrefix) { |
|
|
|
{ |
|
|
|
|
|
|
|
XmlPIMapping mapping = FindByClrNamespaceAndAssemblyId(propertyDeclaration.DeclaringType.Namespace, propertyDeclaration.DeclaringType.AssemblyId); |
|
|
|
XmlPIMapping mapping = FindByClrNamespaceAndAssemblyId(propertyDeclaration.DeclaringType.Namespace, propertyDeclaration.DeclaringType.AssemblyId); |
|
|
|
string prefix = (mapping != null) ? this.LookupPrefix(mapping.XmlNamespace, false) : null; |
|
|
|
string prefix = (mapping != null) ? this.LookupPrefix(mapping.XmlNamespace, false) : null; |
|
|
|
|
|
|
|
|
|
|
|
if (!String.IsNullOrEmpty(prefix)) |
|
|
|
if (!String.IsNullOrEmpty(prefix)) { |
|
|
|
{ |
|
|
|
|
|
|
|
sb.Append(prefix); |
|
|
|
sb.Append(prefix); |
|
|
|
sb.Append(":"); |
|
|
|
sb.Append(":"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ((differentType || isAttached || !checkType) && propertyDeclaration.DeclaringType.Name.Length > 0) |
|
|
|
if ((differentType || isAttached || !checkType) && propertyDeclaration.DeclaringType.Name.Length > 0) { |
|
|
|
{ |
|
|
|
|
|
|
|
sb.Append(propertyDeclaration.DeclaringType.Name); |
|
|
|
sb.Append(propertyDeclaration.DeclaringType.Name); |
|
|
|
sb.Append("."); |
|
|
|
sb.Append("."); |
|
|
|
} |
|
|
|
} |
|
|
|