Ejemplo n.º 1
0
 /// <summary>
 /// Write the start of a constructor parameter section
 /// </summary>
 public virtual void WriteConstructorParametersStart(XamlConstructorParametersStartNode xamlConstructorParametersStartNode)
 {
     if (BamlRecordWriter != null)
     {
         BamlRecordWriter.WriteConstructorParametersStart(xamlConstructorParametersStartNode);
     }
 }
Ejemplo n.º 2
0
        /// <summary> 
        /// Write the start of a constructor parameter section
        /// </summary>
        public override void WriteConstructorParametersStart(XamlConstructorParametersStartNode xamlConstructorParametersStartNode)
        { 
#if PBTCOMPILER
            if (_styleModeStack.Mode == StyleMode.DataTypeProperty && 
                InDeferLoadedSection && 
                !_defNameFound)
            { 
                // We have to treat DataType="{x:Type SomeType}" as a key in a
                // resource dictionary, if one is present.  This means generating
                // a series of baml records to use as the key for the defer loaded
                // body of the Style in addition to generating the records to set 
                // the TargetType value.
                base.WriteConstructorParametersStart(xamlConstructorParametersStartNode); 
            } 
#endif
            _styleModeStack.Push(); 
            base.WriteConstructorParametersStart(xamlConstructorParametersStartNode);
        }
        /// <summary>
        /// Write the start of a constructor parameter section
        /// </summary>
        internal void WriteConstructorParametersStart(
            XamlConstructorParametersStartNode xamlConstructorParametersStartNode)
        {
            // Create a new baml record
            BamlConstructorParametersStartRecord startRecord =
                (BamlConstructorParametersStartRecord) BamlRecordManager.GetWriteRecord(
                     BamlRecordType.ConstructorParametersStart);

            WriteAndReleaseRecord(startRecord, xamlConstructorParametersStartNode);
        }