Ejemplo n.º 1
0
 public XamlDomObject(bool isGetObject, params XamlDomMember[] members)
 {
     foreach (var memberNode in members)
     {
         MemberNodes.Add(memberNode);
     }
     _isGetObject = isGetObject;
 }
Ejemplo n.º 2
0
        public XamlDomObject(Type type, params XamlDomMember[] members)
        {
            foreach (var memberNode in members)
            {
                MemberNodes.Add(memberNode);
            }

            _unresolvedType = type;
        }
Ejemplo n.º 3
0
        public XamlDomObject(Type type, XamlSchemaContext schemaContext, params XamlDomMember[] members)
            : this(type, schemaContext)
        {
            foreach (var memberNode in members)
            {
                MemberNodes.Add(memberNode);
            }

            Resolve();
        }
Ejemplo n.º 4
0
        public XamlDomObject(XamlType xamlType, params XamlDomMember[] members)
            : this(xamlType)
        {
            foreach (var memberNode in members)
            {
                MemberNodes.Add(memberNode);
            }

            // We can't rely on setting the SchemaContext to force a resolve since we haven't assigned
            // the members yet.  Therefore, we need to resolve here.
            Resolve();
        }
Ejemplo n.º 5
0
        public virtual void SetMemberValue(XamlMember xamlMember, object value)
        {
            if (xamlMember == null)
            {
                throw new ArgumentNullException("xamlMember");
            }

            var node = GetMemberNode(xamlMember);

            if (node == null)
            {
                node = new XamlDomMember(xamlMember);
                MemberNodes.Add(node);
            }

            node.Item = new XamlDomValue(value);
        }