Example #1
0
        XamlTextNode getPropertyValueNode()
        {
            XamlTextNode n = new XamlTextNode(
                reader.LineNumber,
                reader.LinePosition,
                getDepth(),
                reader.Value);

            if (n.TextContent.StartsWith("{StaticResource "))
            {
                n.setkeyText(n.TextContent.Remove(0, "{StaticResource ".Length).TrimEnd('}'));
            }
            return(n);
        }
Example #2
0
		XamlTextNode getPropertyValueNode()
		{
			XamlTextNode n = new XamlTextNode(
						reader.LineNumber,
						reader.LinePosition,
						getDepth(),
						reader.Value);
			if (n.TextContent.StartsWith("{StaticResource ")) {
				n.setkeyText(n.TextContent.Remove(0, "{StaticResource ".Length).TrimEnd('}'));
			}
			return n;
		}