internal BamlCollectionHolder(BamlRecordReader reader, object parent, short attributeId, bool needDefault)
        {
            _reader      = reader;
            _parent      = parent;
            _propDef     = new WpfPropertyDefinition(reader, attributeId, parent is DependencyObject);
            _attributeId = attributeId;

            if (needDefault)
            {
                InitDefaultValue();
            }
            
            CheckReadOnly();
        }
 internal BamlCollectionHolder(BamlRecordReader reader, object parent, short attributeId) :
     this(reader, parent, attributeId, true)
 {
 }
Exemplo n.º 3
0
        public WpfPropertyDefinition(BamlRecordReader reader, short attributeId, bool targetIsDependencyObject)
        { 
            _reader = reader;
            _attributeId = attributeId;
            _dependencyProperty = null;
            _attributeInfo = null; 

            if (_reader.MapTable != null && targetIsDependencyObject) 
            { 
                _dependencyProperty = _reader.MapTable.GetDependencyProperty(_attributeId);
            } 
        }
Exemplo n.º 4
0
 /// <summary>
 /// Create an instance of the BamlReader on the passed stream using
 /// the passed ParserContext.
 /// </summary>summary>
 public BamlReader(Stream bamlStream)
 {
     _parserContext = new ParserContext();
     _parserContext.XamlTypeMapper = XmlParserDefaults.DefaultMapper;
     _bamlRecordReader = new BamlRecordReader(bamlStream, _parserContext, false);
     _readState = ReadState.Initial;
     _bamlNodeType = BamlNodeType.None;
     _prefixDictionary = new XmlnsDictionary();
     _value = string.Empty;
     _assemblyName = string.Empty;
     _prefix = string.Empty;
     _xmlNamespace = string.Empty;
     _clrNamespace = string.Empty;
     _name = string.Empty;
     _localName = string.Empty;
     _ownerTypeName = string.Empty;
     _properties = new ArrayList();
     _haveUnprocessedRecord = false;
     _deferableContentBlockDepth = -1;
     _nodeStack = new Stack();
     _reverseXmlnsTable = new Dictionary<String, List<String>>();
 }
Exemplo n.º 5
0
        //+--------------------------------------------------------------------------------------------------------------
        //
        //  SetPreviousBamlRecordReader 
        //
        //  Link this nested BamlRecordReader to one that is higher in the stack. 
        // 
        //+-------------------------------------------------------------------------------------------------------------
 
        protected internal void SetPreviousBamlRecordReader( BamlRecordReader previousBamlRecordReader )
        {
            _previousBamlRecordReader = previousBamlRecordReader;
        }