3 instantiations of XamlReader
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\AppModelKnownContentFactory.cs (1)
107XamlReader xr = new XamlReader();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11405bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlReader(); };
src\Framework\System\Windows\Markup\XamlReader.cs (1)
770XamlReader xamlReader = new XamlReader();
112 references to XamlReader
PresentationFramework (79)
src\Framework\MS\Internal\AppModel\AppModelKnownContentFactory.cs (5)
43internal static object BamlConverter(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter) 81internal static object XamlConverter(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter) 107XamlReader xr = new XamlReader(); 116return XamlReader.Load(stream, pc); 131internal static object HtmlXappConverter(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter)
src\Framework\MS\Internal\AppModel\MimeObjectFactory.cs (2)
27internal delegate object StreamToObjectFactoryDelegate(Stream s, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter); 41internal static object GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (1)
186WpfKnownType knownType = XamlReader.BamlSharedSchemaContext.GetKnownXamlType(type) as WpfKnownType;
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
383UIElement newElement = XamlReader.Load(new XmlTextReader(new StringReader(xml))) as UIElement;
src\Framework\MS\Internal\Ink\XamlClipboardData.cs (1)
138UIElement element = XamlReader.Load(new System.Xml.XmlTextReader(new System.IO.StringReader(xml)), useRestrictiveXamlReader) as UIElement;
src\Framework\System\Windows\Application.cs (3)
540XamlReader.LoadBaml(stream, pc, component, bCloseStream); 610return XamlReader.Load(stream, pc); 658rootElement = XamlReader.LoadBaml(stream, pc, null, true);
src\Framework\System\Windows\Documents\DocumentReference.cs (1)
313idp = XamlReader.LoadBaml(docStream, pc, null, true) as FixedDocument;
src\Framework\System\Windows\Documents\PageContent.cs (1)
633o = XamlReader.LoadBaml(pageStream, pc, null, true);
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (1)
1103object xamlObject = XamlReader.Load(new XmlTextReader(new System.IO.StringReader(pasteXaml)), useRestrictiveXamlReader);
src\Framework\System\Windows\Documents\TextRange.cs (1)
1372object xamlObject = XamlReader.Load(new XmlTextReader(new System.IO.StringReader(value)));
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
394embeddedObject = (DependencyObject)XamlReader.Load(new XmlTextReader(new StringReader(_xml)));
src\Framework\System\Windows\Documents\WpfPayload.cs (1)
352xamlObject = XamlReader.Load(xamlEntryPart.GetStream(), parserContext, useRestrictiveXamlReader);
src\Framework\System\Windows\Documents\XPSS0ValidatingLoader.cs (2)
64obj = XamlReader.Load(stream, pc); 151obj = XamlReader.Load(xpsSchemaValidator.XmlReader,
src\Framework\System\Windows\FrameworkElementFactory.cs (1)
109knownType = XamlReader.BamlSharedSchemaContext.GetKnownXamlType(_type) as WpfKnownType;
src\Framework\System\Windows\FrameworkTemplate.cs (2)
922XamlObjectWriterSettings settings = System.Windows.Markup.XamlReader.CreateObjectWriterSettings(_templateHolder.ObjectWriterParentSettings); 1101System.Windows.Markup.XamlReader.RewrapException(e, null);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
841case 749: t = () => typeof(System.Windows.Markup.XamlReader); break; // ambiguous
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
55var settings = System.Windows.Markup.XamlReader.CreateBamlReaderSettings(); 87schemaContext = new Baml2006SchemaContext(xamlReaderSettings.LocalAssembly, System.Windows.Markup.XamlReader.XamlV3SharedSchemaContext);
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (9)
23this(localAssembly, System.Windows.Markup.XamlReader.BamlSharedSchemaContext) 619if (_parentSchemaContext == System.Windows.Markup.XamlReader.BamlSharedSchemaContext) 621xamlType = System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetKnownBamlType(typeId); 649if (_parentSchemaContext == System.Windows.Markup.XamlReader.BamlSharedSchemaContext) 651xamlMember = System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetKnownBamlMember(propertyId); 690= new Lazy<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary))); 693= new Lazy<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter))); 702= new Lazy<XamlMember>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(FrameworkTemplate)).GetMember("Template")); 705= new Lazy<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11403typeof(System.Windows.Markup.XamlReader),
src\Framework\System\Windows\Markup\Baml2006\WpfKnownMember.cs (4)
149WpfSharedBamlSchemaContext schema = System.Windows.Markup.XamlReader.BamlSharedSchemaContext; 178WpfSharedBamlSchemaContext schema = System.Windows.Markup.XamlReader.BamlSharedSchemaContext; 193return System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(DependencyProperty.PropertyType); 195return System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(_type);
src\Framework\System\Windows\Markup\Baml2006\WpfKnownType.cs (2)
213WpfSharedBamlSchemaContext schema = System.Windows.Markup.XamlReader.BamlSharedSchemaContext; 254WpfSharedBamlSchemaContext schema = System.Windows.Markup.XamlReader.BamlSharedSchemaContext;
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (4)
370= new Lazy<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary))); 373= new Lazy<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter))); 382= new Lazy<XamlMember>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(FrameworkTemplate)).GetMember("Template")); 385= new Lazy<XamlType>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
src\Framework\System\Windows\Markup\Baml2006\WpfXamlMember.cs (6)
23System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(dp.OwnerType), 34System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(re.OwnerType), 154return System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(DependencyProperty.PropertyType); 158return System.Windows.Markup.XamlReader.GetWpfSchemaContext().GetXamlType(DependencyProperty.PropertyType); 165return System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(RoutedEvent.HandlerType); 169return System.Windows.Markup.XamlReader.GetWpfSchemaContext().GetXamlType(RoutedEvent.HandlerType);
src\Framework\System\Windows\Markup\Baml2006\WpfXamlType.cs (6)
236wpfXamlType = System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(re.OwnerType) as WpfXamlType; 240wpfXamlType = System.Windows.Markup.XamlReader.GetWpfSchemaContext().GetXamlType(re.OwnerType) as WpfXamlType; 305wpfXamlType = System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(property.OwnerType) as WpfXamlType; 309wpfXamlType = System.Windows.Markup.XamlReader.GetWpfSchemaContext().GetXamlType(property.OwnerType) as WpfXamlType; 467xamlMember = System.Windows.Markup.XamlReader.BamlSharedSchemaContext.CreateKnownMember(wpfXamlType.Name, name); 471xamlMember = System.Windows.Markup.XamlReader.BamlSharedSchemaContext.CreateKnownAttachableMember(wpfXamlType.Name, name);
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6293case KnownElements.XamlReader: t = typeof(System.Windows.Markup.XamlReader); break;
src\Framework\System\Windows\Markup\SetterTriggerConditionValueConverter.cs (1)
136typeConverter = XamlReader.BamlSharedSchemaContext.GetTypeConverter(xamlProperty.Type.UnderlyingType);
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (5)
19XamlObjectWriterSettings settings = XamlReader.CreateObjectWriterSettings(); 28XamlObjectWriterSettings settings = XamlReader.CreateObjectWriterSettings(parentSettings); 36XamlObjectWriterSettings settings = XamlReader.CreateObjectWriterSettingsForBaml(); 150if (MS.Internal.CriticalExceptions.IsCriticalException(e) || !XamlReader.ShouldReWrapException(e, baseUri)) 154XamlReader.RewrapException(e, xamlLineInfo, baseUri);
src\Framework\System\Windows\Markup\XamlReader.cs (7)
272System.Xaml.XamlObjectWriterSettings objectSettings = XamlReader.CreateObjectWriterSettings(); 475DispatchParserQueueEvent((XamlReader)o); 479private void DispatchParserQueueEvent(XamlReader xamlReader) 560if (CriticalExceptions.IsCriticalException(e) || !XamlReader.ShouldReWrapException(e, _baseUri)) 566_parseException = XamlReader.WrapException(e, null, _baseUri); 770XamlReader xamlReader = new XamlReader(); 994Baml2006ReaderSettings readerSettings = XamlReader.CreateBamlReaderSettings();
src\Framework\System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
33_sharedSchemaContext = (WpfSharedXamlSchemaContext)XamlReader.GetWpfSchemaContext();
src\Framework\System\Windows\Navigation\NavigationService.cs (1)
4371private XamlReader _asyncObjectConverter;
src\Framework\System\Windows\PropertyPath.cs (1)
905var wpfSharedSchemaContext = XamlReader.BamlSharedSchemaContext;
src\Framework\System\Windows\ResourceDictionary.cs (1)
227System.Windows.Markup.XamlReader asyncObjectConverter;
src\Framework\System\Windows\SystemResources.cs (1)
958System.Xaml.XamlObjectWriterSettings owSettings = XamlReader.CreateObjectWriterSettingsForBaml();
src\Framework\System\Windows\TemplateContent.cs (1)
219XamlObjectWriterSettings settings = System.Windows.Markup.XamlReader.
PresentationFramework.Aero (9)
parent\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (9)
16System.Windows.Markup.XamlReader.BamlSharedSchemaContext.ThemeKnownTypeHelpers.Add(helper); 95var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 111var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 132var bamlMember = new WpfKnownMember(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // Schema Context 133System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(Microsoft.Windows.Themes.ScrollChrome)), // DeclaringType 147var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 162var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 178var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 196var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext
PresentationFramework.Classic (6)
parent\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (6)
16System.Windows.Markup.XamlReader.BamlSharedSchemaContext.ThemeKnownTypeHelpers.Add(helper); 50var bamlMember = new WpfKnownMember( System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // Schema Context 51System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(Microsoft.Windows.Themes.ClassicBorderDecorator)), // DeclaringType 64var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 80var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 196var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext
PresentationFramework.Luna (8)
parent\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (8)
16System.Windows.Markup.XamlReader.BamlSharedSchemaContext.ThemeKnownTypeHelpers.Add(helper); 95var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 111var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 132var bamlMember = new WpfKnownMember(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // Schema Context 133System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(Microsoft.Windows.Themes.ScrollChrome)), // DeclaringType 147var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 162var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 196var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext
PresentationFramework.Royale (8)
parent\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (8)
16System.Windows.Markup.XamlReader.BamlSharedSchemaContext.ThemeKnownTypeHelpers.Add(helper); 95var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 111var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 132var bamlMember = new WpfKnownMember(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // Schema Context 133System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(Microsoft.Windows.Themes.ScrollChrome)), // DeclaringType 147var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 162var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext 196var bamlType = new ThemesKnownType(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // SchemaContext
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (1)
266_image = XamlReader.Load(stream);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
373Hashtable fontAndColorDictionary = (Hashtable)System.Windows.Markup.XamlReader.Load(xmlReader);