protected virtual bool IsValueValidForVerification(DocumentNode valueNode)
 {
     if (!DocumentNodeUtilities.IsBinding(valueNode) && !DocumentNodeUtilities.IsTemplateBinding(valueNode))
     {
         return(!DocumentNodeUtilities.IsStaticExtension(valueNode));
     }
     return(false);
 }
Beispiel #2
0
 private void ParseKeyString()
 {
     if (this.keyString.Length == 0)
     {
         this.parsedKeyString  = (DocumentNode)null;
         this.KeyStringIsValid = false;
     }
     else if ((int)this.keyString[0] != 123)
     {
         this.KeyStringIsValid = true;
         this.parsedKeyString  = (DocumentNode)this.resourceEntryNode.DocumentContext.CreateNode(this.keyString);
     }
     else
     {
         IList <XamlParseError> errors;
         DocumentNode           expressionFromString = XamlExpressionSerializer.GetExpressionFromString(this.keyString, this.resourceEntryNode.DocumentNode, typeof(string), out errors);
         this.parsedKeyString  = expressionFromString == null ? (DocumentNode)null : (!(expressionFromString is DocumentPrimitiveNode) || !(expressionFromString.TargetType == typeof(Type)) ? (!DocumentNodeUtilities.IsStaticExtension(expressionFromString) ? (DocumentNode)null : expressionFromString) : expressionFromString);
         this.KeyStringIsValid = this.parsedKeyString != null;
     }
 }