29 references to MimeTypeMapper
PresentationCore (7)
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
165_contentType = MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(Uri);
MS\Internal\WpfWebRequestHelper.cs (6)
254if (MimeTypeMapper.OctetMime.AreTypeAndSubTypeEqual(contentType, true) || 255MimeTypeMapper.TextPlainMime.AreTypeAndSubTypeEqual(contentType, true)) 257string extension = MimeTypeMapper.GetFileExtension(response.ResponseUri); 258if (string.Equals(extension, MimeTypeMapper.XamlExtension, StringComparison.OrdinalIgnoreCase) || 259string.Equals(extension, MimeTypeMapper.XbapExtension, StringComparison.OrdinalIgnoreCase)) 284contentType = MimeTypeMapper.GetMimeTypeFromUri(response.ResponseUri);
PresentationFramework (22)
MS\Internal\AppModel\ContentFilePart.cs (1)
83return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(Uri.ToString(), UriKind.RelativeOrAbsolute)).ToString();
MS\Internal\AppModel\ResourcePart.cs (2)
72if (MimeTypeMapper.BamlMime.AreTypeAndSubTypeEqual(curContent)) 86return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(_name, UriKind.RelativeOrAbsolute)).ToString();
MS\Internal\Utility\BindUriHelper.cs (4)
186if (MimeTypeMapper.XamlMime.AreTypeAndSubTypeEqual(mimeType) 187|| MimeTypeMapper.FixedDocumentSequenceMime.AreTypeAndSubTypeEqual(mimeType) 188|| MimeTypeMapper.FixedDocumentMime.AreTypeAndSubTypeEqual(mimeType) 189|| MimeTypeMapper.FixedPageMime.AreTypeAndSubTypeEqual(mimeType))
System\Windows\Application.cs (12)
416if (!MimeTypeMapper.BamlMime.AreTypeAndSubTypeEqual(contentType)) 483if (MimeTypeMapper.BamlMime.AreTypeAndSubTypeEqual(contentType)) 487else if (MimeTypeMapper.XamlMime.AreTypeAndSubTypeEqual(contentType)) 1981MimeObjectFactory.RegisterCore(MimeTypeMapper.BamlMime, new StreamToObjectFactoryDelegateCore(AppModelKnownContentFactory.BamlConverterCore)); 1985MimeObjectFactory.RegisterCore(MimeTypeMapper.XamlMime, xamlFactoryDelegate); 1986MimeObjectFactory.RegisterCore(MimeTypeMapper.FixedDocumentMime, xamlFactoryDelegate); 1987MimeObjectFactory.RegisterCore(MimeTypeMapper.FixedDocumentSequenceMime, xamlFactoryDelegate); 1988MimeObjectFactory.RegisterCore(MimeTypeMapper.FixedPageMime, xamlFactoryDelegate); 1989MimeObjectFactory.RegisterCore(MimeTypeMapper.ResourceDictionaryMime, xamlFactoryDelegate); 1992MimeObjectFactory.RegisterCore(MimeTypeMapper.HtmMime, htmlxappFactoryDelegate); 1993MimeObjectFactory.RegisterCore(MimeTypeMapper.HtmlMime, htmlxappFactoryDelegate); 1994MimeObjectFactory.RegisterCore(MimeTypeMapper.XbapMime, htmlxappFactoryDelegate);
System\Windows\Documents\DocumentReference.cs (1)
285else if (MS.Internal.MimeTypeMapper.BamlMime.AreTypeAndSubTypeEqual(mimeType))
System\Windows\Documents\PageContent.cs (1)
599else if (MS.Internal.MimeTypeMapper.BamlMime.AreTypeAndSubTypeEqual(mimeType))
System\Windows\Navigation\NavigationService.cs (1)
2863bool sandBoxContent = SandboxExternalContent && (! BaseUriHelper.IsPackApplicationUri(destinationUri)) && MimeTypeMapper.XamlMime.AreTypeAndSubTypeEqual(contentType);