Exemplo n.º 1
0
        private void ReadPropertyWithStaticResourceId()
        {
            var node = new BamlPropertyWithStaticResourceId();

            node.DeclaringProperty = GetProperty(_accessor.ReadInt16());
            node.StaticResourceId  = _accessor.ReadInt16();

            AddNode(node);
        }
Exemplo n.º 2
0
 private void WritePropertyWithStaticResourceId(BamlPropertyWithStaticResourceId node)
 {
     _blob.Write(ref _pos, (byte)RecordType.PropertyWithStaticResourceId);
     _blob.Write(ref _pos, (short)GetPropertyId(node.DeclaringProperty));
     _blob.Write(ref _pos, (short)node.StaticResourceId);
 }