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