37 references to Format
PresentationCore (37)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (6)
902return new System.ArgumentException(SR.Format(SR.Media_InvalidArgument, null), exceptionForHR); 914return new System.Windows.Media.InvalidWmpVersionException(SR.Format(SR.Media_InvalidWmpVersion, null), exceptionForHR); 917return new System.NotSupportedException(SR.Format(SR.Media_InsufficientVideoResources, null), exceptionForHR); 920return new System.NotSupportedException(SR.Format(SR.Media_HardwareVideoAccelerationNotAvailable, null), exceptionForHR); 923return new System.NotSupportedException(SR.Format(SR.Media_PlayerIsClosed, null), exceptionForHR); 926return new System.IO.FileNotFoundException(SR.Format(SR.Media_DownloadFailed, null), exceptionForHR);
System\IO\Packaging\PackWebResponse.cs (1)
885_responseException = new WebException(SR.Format(SR.WebRequestTimeout, null), WebExceptionStatus.Timeout);
System\Windows\Media\Color.cs (12)
70throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 75throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 380throw new InvalidOperationException(SR.Format(SR.Color_NullColorContext, null)); 488throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 522throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 605throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 824throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 848throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 872throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 926throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 951throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 976throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null));
System\Windows\Media\Effects\BitmapEffect.cs (1)
102throw new InvalidOperationException(SR.Format(SR.Effect_No_ContextInputSource, null));
System\Windows\Media\GeneralTransform.cs (1)
46throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media\Imaging\BitmapEncoder.cs (2)
332throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null)); 338throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null));
System\Windows\Media\Imaging\BitmapInitialize.cs (6)
21throw new InvalidOperationException(SR.Format(SR.Image_OnlyOneInit, null)); 24throw new InvalidOperationException(SR.Format(SR.Image_InInitialize, null)); 32throw new InvalidOperationException(SR.Format(SR.Image_EndInitWithoutBeginInit, null)); 42throw new InvalidOperationException(SR.Format(SR.Image_SetPropertyOutsideBeginEndInit, null)); 65throw new InvalidOperationException(SR.Format(SR.Image_InitializationIncomplete, null)); 68throw new InvalidOperationException(SR.Format(SR.Image_NotInitialized, null));
System\Windows\Media\Imaging\BitmapPalette.cs (2)
37throw new InvalidOperationException(SR.Format(SR.Image_PaletteZeroColors, null)); 306throw new InvalidOperationException(SR.Format(SR.Image_PaletteZeroColors, null));
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
32throw new ArgumentException(SR.Format(SR.Image_CantBeFrozen, null));
System\Windows\Media\MediaPlayerState.cs (1)
818_mediaEventsHelper.RaiseMediaFailed(new System.NotSupportedException(SR.Format(SR.Media_PackURIsAreNotSupported, null)));
System\Windows\Media3D\GeneralTransform2DTo3D.cs (1)
98throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media3D\GeneralTransform3D.cs (1)
52throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media3D\GeneralTransform3DTo2D.cs (1)
63throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media3D\Matrix3D.cs (1)
651throw new InvalidOperationException(SR.Format(SR.Matrix3D_NotInvertible, null));