Example #1
0
 /// <summary>
 /// Write the end of a constructor parameter section
 /// </summary>
 public virtual void WriteConstructorParametersEnd(XamlConstructorParametersEndNode xamlConstructorParametersEndNode)
 {
     if (BamlRecordWriter != null)
     {
         BamlRecordWriter.WriteConstructorParametersEnd(xamlConstructorParametersEndNode);
     }
 }
Example #2
0
        /// <summary> 
        /// Write the end of a constructor parameter section
        /// </summary> 
        public override void WriteConstructorParametersEnd(XamlConstructorParametersEndNode xamlConstructorParametersEndNode) 
        {
#if PBTCOMPILER 
            if (_styleModeStack.Mode == StyleMode.DataTypeProperty &&
                InDeferLoadedSection &&
                !_defNameFound &&
                _styleModeStack.Depth > 2) 
            {
                // 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.WriteConstructorParametersEnd(xamlConstructorParametersEndNode);
            }
#endif 

            base.WriteConstructorParametersEnd(xamlConstructorParametersEndNode); 
            _styleModeStack.Pop(); 
        }
        /// <summary>
        /// Write the end of a constructor parameter section
        /// </summary>
        internal void WriteConstructorParametersEnd(
            XamlConstructorParametersEndNode xamlConstructorParametersEndNode)
        {
            // Create a new baml record
            BamlConstructorParametersEndRecord startRecord =
                (BamlConstructorParametersEndRecord) BamlRecordManager.GetWriteRecord(
                     BamlRecordType.ConstructorParametersEnd);

            WriteAndReleaseRecord(startRecord, xamlConstructorParametersEndNode);
        }