1968 references to SR
PresentationCore (1968)
GlobalUsings.cs (1)
22global using SR = MS.Internal.PresentationCore.SR;
MS\Internal\Automation\ElementUtil.cs (2)
227throw new InvalidOperationException(SR.AutomationDispatcherShutdown); 231throw new TimeoutException(SR.AutomationTimeout);
MS\Internal\Automation\EventMap.cs (1)
110throw new ArgumentException(SR.Automation_InvalidEventId, nameof(eventId));
MS\Internal\Automation\SynchronizedInputAdaptor.cs (5)
38throw new ArgumentException(SR.Format(SR.Automation_InvalidSynchronizedInputType, inputType)); 46throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 56throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 64throw new InvalidOperationException(SR.Automation_RecursivePublicCall);
MS\Internal\Automation\TextProviderWrapper.cs (2)
56throw new ArgumentException(SR.Format(SR.TextProvider_InvalidChild, "childElement"));
MS\Internal\Automation\TextRangeProviderWrapper.cs (6)
50throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "range")); 60throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange")); 123throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange"));
MS\Internal\CustomCategoryAttribute.cs (1)
30string s = SR.GetResourceString(value);
MS\Internal\FontCache\DWriteFactory.cs (2)
25Text.TextInterface.LocalizedErrorMsgs.EnumeratorNotStarted = SR.Enumerator_NotStarted; 26Text.TextInterface.LocalizedErrorMsgs.EnumeratorReachedEnd = SR.Enumerator_ReachedEnd;
MS\Internal\FontCache\FontCacheUtil.cs (19)
495throw new ArgumentException(SR.FaceIndexMustBePositiveOrZero, nameof(fontUri)); 748throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, fileName), fileName); 751throw new DirectoryNotFoundException(SR.Format(SR.DirectoryNotFoundExceptionWithFileName, fileName)); 754throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccessExceptionWithFileName, fileName)); 757throw new PathTooLongException(SR.Format(SR.PathTooLongExceptionWithFileName, fileName)); 760throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), NativeMethods.MakeHRFromErrorCode(errorCode)); 776return new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), e); 833throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName)); 849throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName)); 853throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
720throw new ArgumentException(SR.Collection_BadRank);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
48throw new ArgumentException(SR.FamilyMap_TargetNotSet);
MS\Internal\FontFace\CompositeFontParser.cs (24)
25throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 41throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 49throw new ArgumentException(SR.Format(SR.PropertyMustBeGreaterThanZero, propertyName)); 57throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 65throw new ArgumentException(SR.Format(SR.PropertyCannotBeNegative, propertyName)); 861Fail(SR.Format(SR.CompositeFontMissingElement, FamilyMapElement)); 864Fail(SR.Format(SR.CompositeFontMissingElement, StringElement)); 880Fail(SR.Format( 881SR.CompositeFontAttributeValue1, 890Fail(SR.Format( 891SR.CompositeFontAttributeValue2, 902Fail(SR.Format( 903SR.CompositeFontUnknownElement, 913Fail(SR.Format( 914SR.CompositeFontUnknownAttribute, 925Fail(SR.Format(SR.CompositeFontMissingAttribute, name));
MS\Internal\FontFace\FontDriver.cs (1)
158throw new ArgumentOutOfRangeException(nameof(faceIndex), SR.FaceIndexValidOnlyForTTC);
MS\Internal\FontFace\TypefaceCollection.cs (1)
61throw new ArgumentException(SR.Collection_BadRank);
MS\Internal\IListConverters.cs (2)
55throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value));
MS\Internal\Ink\ExtendedProperty.cs (2)
23throw new ArgumentException(SR.InvalidGuid); 204throw new InvalidOperationException(SR.InvalidDataTypeForExtendedProperty);
MS\Internal\Ink\ExtendedPropertyCollection.cs (3)
150throw new ArgumentException(SR.EPExists, nameof(id)); 168throw new ArgumentException(SR.EPGuidNotFound, nameof(id)); 228throw new ArgumentException(SR.EPNotFound, nameof(attributeId));
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (8)
51throw new InvalidOperationException(SR.UnspecifiedGestureConstructionException); 103throw new InvalidOperationException(SR.UnspecifiedSetEnabledGesturesException); 125throw new ArgumentException(SR.StrokeCollectionCountTooBig, nameof(strokes)); 178throw new InvalidOperationException(SR.UnspecifiedGestureException); 209throw new ArgumentException(SR.ApplicationGestureArrayLengthIsZero, nameof(applicationGestures)); 218throw new ArgumentException(SR.ApplicationGestureIsInvalid, nameof(applicationGestures)); 230throw new ArgumentException(SR.DuplicateApplicationGestureFound, nameof(applicationGestures)); 240throw new ArgumentException(SR.AllGesturesMustExistAlone, nameof(applicationGestures));
MS\Internal\Ink\InkSerializedFormat\Compress.cs (3)
89throw new InvalidOperationException(StrokeCollectionSerializer.ISFDebugMessage(SR.DecompressPacketDataFailed)); 158throw new InvalidOperationException(StrokeCollectionSerializer.ISFDebugMessage(SR.DecompressPropertyFailed)); 288throw new InvalidOperationException(SR.IsfOperationFailed);
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (33)
292throw new InvalidOperationException(SR.InvalidEpInIsf); 411throw new InvalidOperationException(SR.EmptyDataToLoad); 420throw new ArgumentException(SR.InvalidSizeSpecified, nameof(cbSize)); 437throw new ArgumentException(SR.InvalidSizeSpecified, nameof(cbSize)); 686throw new InvalidOperationException(SR.InvalidEpInIsf); 773throw new ArgumentException(SR.InvalidGuid); 780throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(System.Windows.Media.Color)), nameof(value)); 788throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(int)), nameof(value)); 796throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(DrawingFlags)), nameof(value)); 807throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(StylusTip), typeof(int)), nameof(value)); 811throw new ArgumentException(SR.Format(SR.InvalidValueOfType, value, typeof(StylusTip)), nameof(value)); 822throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(String), typeof(Matrix)), nameof(value)); 829throw new ArgumentException(SR.MatrixNotInvertible, nameof(value)); 833throw new ArgumentException(SR.InvalidMatrixContainsNaN, nameof(value)); 837throw new ArgumentException(SR.InvalidMatrixContainsInfinity, nameof(value)); 845throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(bool)), nameof(value)); 852throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(double)), nameof(value)); 861throw new ArgumentOutOfRangeException(nameof(value), SR.InvalidDrawingAttributesHeight); 868throw new ArgumentOutOfRangeException(nameof(value), SR.InvalidDrawingAttributesWidth); 876throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte)), nameof(value)); 889throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte[])), nameof(value)); 949throw new ArgumentException(SR.InvalidDataInISF, ex); 954throw new ArgumentException(SR.InvalidDataInISF, ex);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
133throw new ArgumentException(SR.IsfOperationFailed, ex); 138throw new ArgumentException(SR.IsfOperationFailed, ex); 143throw new ArgumentException(SR.IsfOperationFailed, ex); 148throw new ArgumentException(SR.IsfOperationFailed, ex); 153throw new ArgumentException(SR.IsfOperationFailed, ex); 158throw new ArgumentException(SR.IsfOperationFailed, ex); 342throw new ArgumentException(SR.InvalidStream);
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (1)
322throw new ArgumentException(SR.InvalidDataTypeForExtendedProperty);
MS\Internal\Ink\Renderer.cs (5)
289throw new System.InvalidOperationException(SR.CannotAttachVisualTwice); 325throw new System.InvalidOperationException(SR.VisualCannotBeDetached); 436throw new System.ArgumentException(SR.DuplicateStrokeAdded); 464throw new System.ArgumentException(SR.UnknownStroke3); 481throw new System.ArgumentException(SR.UnknownStroke1);
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (16)
57throw new ArgumentException(SR.InvalidTempFileName, nameof(tempFileName)); 302throw new InvalidOperationException(SR.RequestAlreadyStarted); 333throw new InvalidOperationException(SR.RequestAlreadyStarted); 390throw new ObjectDisposedException(null, SR.ByteRangeDownloaderDisposed); 404throw new ArgumentException(SR.InvalidScheme, nameof(requestedUri)); 411throw new ArgumentException(SR.InvalidEventHandle, nameof(eventHandle)); 427throw new InvalidOperationException(SR.ByteRangeDownloaderErroredOut, _erroredOutException); 544_erroredOutException = new NotSupportedException(SR.ByteRangeRequestIsNotSupported); 695throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 702throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 720throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 727throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges"));
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (5)
72throw new NotSupportedException(SR.WriteNotSupported); 95throw new NotSupportedException(SR.SetLengthNotSupported); 203throw new InvalidOperationException(SR.InvalidPartName); 269throw new ObjectDisposedException(null, SR.Media_StreamClosed); 325throw new ArgumentException(SR.InvalidPartName);
MS\Internal\IO\Packaging\NetStream.cs (6)
141throw new ArgumentException(SR.IOBufferOverflow, nameof(buffer)); 250throw new ArgumentOutOfRangeException(nameof(origin), SR.SeekOriginInvalid); 256throw new ArgumentException(SR.SeekNegative); 283throw new ArgumentException(SR.SeekNegative); 301throw new NotSupportedException(SR.SetLengthNotSupported); 311throw new NotSupportedException(SR.WriteNotSupported);
MS\Internal\IO\Packaging\PreloadedPackages.cs (1)
154throw new ArgumentException(SR.UriMustBeAbsolute, nameof(uri));
MS\Internal\Media\ParserStreamGeometryContext.cs (1)
715throw new ArgumentException(SR.UnknownPathOperationType);
MS\Internal\Media\VisualTreeUtils.cs (3)
219throw new ArgumentException(SR.Visual_NotAVisual); 253throw new System.InvalidOperationException(SR.Format(SR.Visual_NotAVisual, element.GetType()));
MS\Internal\Media\XamlSerializationHelper.cs (1)
345throw new ArgumentException(SR.FloatUnknownBamlType);
MS\Internal\PartialArray.cs (9)
61throw new NotSupportedException(SR.CollectionIsFixedSize); 66throw new NotSupportedException(SR.CollectionIsFixedSize); 76throw new NotSupportedException(SR.CollectionIsFixedSize); 81throw new NotSupportedException(SR.CollectionIsFixedSize); 129SR.Collection_CopyTo_ArrayCannotBeMultidimensional, 138SR.Format( 139SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, 148SR.Format( 149SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength,
MS\Internal\TextFormatting\FullTextBreakpoint.cs (6)
97TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateBreaksFailure, lserr), lserr); 217throw new ObjectDisposedException(SR.TextBreakpointHasBeenDisposed); 235throw new ObjectDisposedException(SR.TextBreakpointHasBeenDisposed); 241TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.RelievePenaltyResourceFailure, lserr), lserr);
MS\Internal\TextFormatting\FullTextLine.cs (21)
308TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr); 539throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 627TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr); 700throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 814throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 838throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 971throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 1131throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 1224throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 1484throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 2053throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 2113throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 2158TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.EnumLineFailure, lserr), lserr); 2177throw new ObjectDisposedException(SR.TextLineHasBeenDisposed); 2463TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr); 2520TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr);
MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
3395Exception e = new System.Exception(SR.NonCLSException);
MS\Internal\TextFormatting\LineServicesRun.cs (1)
918throw new ArgumentException(SR.CompileFeatureSet_InvalidTypographyProperties);
MS\Internal\TextFormatting\TextFormatterImp.cs (2)
376throw new ArgumentException(SR.OptimalParagraphMustWrap); 549throw new InvalidOperationException(SR.TextFormatterReentranceProhibited);
MS\Internal\TextFormatting\TextMetrics.cs (2)
295TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.AcquireBreakRecordFailure, lserr), lserr);
MS\Internal\TextFormatting\TextPenaltyModule.cs (5)
29TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.AcquirePenaltyModuleFailure, lserr), lserr); 76throw new ObjectDisposedException(SR.TextPenaltyModuleHasBeenDisposed); 83TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.GetPenaltyModuleHandleFailure, lserr), lserr);
MS\Internal\TextFormatting\TextRunCacheImp.cs (9)
115throw new ArgumentException(SR.TextRunPropertiesCannotBeNull); 118throw new ArgumentException(SR.Format(SR.PropertyOfClassMustBeGreaterThanZero, "FontRenderingEmSize", "TextRunProperties")); 123throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeGreaterThan, "FontRenderingEmSize", "TextRunProperties", realMaxFontRenderingEmSize)); 128throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "CultureInfo", "TextRunProperties")); 131throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "Typeface", "TextRunProperties"));
MS\Internal\TextFormatting\TextStore.cs (1)
2362throw new ArgumentException(SR.TextObjectMetrics_WidthOutOfRange);
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (9)
170SR.Collection_CopyTo_ArrayCannotBeMultidimensional, 179SR.Format( 180SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, 189SR.Format( 190SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, 220throw new NotSupportedException(SR.CollectionIsFixedSize); 226throw new NotSupportedException(SR.CollectionIsFixedSize); 232throw new NotSupportedException(SR.CollectionIsFixedSize); 238throw new NotSupportedException(SR.CollectionIsFixedSize);
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (9)
115SR.Collection_CopyTo_ArrayCannotBeMultidimensional, 124SR.Format( 125SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, 134SR.Format( 135SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, 164throw new NotSupportedException(SR.CollectionIsFixedSize); 170throw new NotSupportedException(SR.CollectionIsFixedSize); 176throw new NotSupportedException(SR.CollectionIsFixedSize); 182throw new NotSupportedException(SR.CollectionIsFixedSize);
MS\Internal\WpfWebRequestHelper.cs (4)
190throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 206throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString()));
MS\Win32\UnsafeNativeMethodsPenimc.cs (2)
108throw new InvalidOperationException(SR.Format(SR.PenImcSxSRegistrationFailed, ExternDll.Penimc));
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (59)
797return new System.InvalidOperationException(SR.Image_WrongState, exceptionForHR); 801return new System.OverflowException(SR.Image_Overflow, exceptionForHR); 804return new System.IO.FileFormatException(null, SR.Image_UnknownFormat, exceptionForHR); 807return new System.IO.FileLoadException(SR.MilErr_UnsupportedVersion, exceptionForHR); 810return new System.InvalidOperationException(SR.WIC_NotInitialized, exceptionForHR); 813return new System.ArgumentException(SR.Image_PropertyNotFound, exceptionForHR); 816return new System.NotSupportedException(SR.Image_PropertyNotSupported, exceptionForHR); 819return new System.ArgumentException(SR.Image_PropertySize, exceptionForHR); 822return new System.InvalidOperationException(SR.Image_CodecPresent, exceptionForHR); 825return new System.NotSupportedException(SR.Image_NoThumbnail, exceptionForHR); 828return new System.InvalidOperationException(SR.Image_NoPalette, exceptionForHR); 831return new System.ArgumentException(SR.Image_TooManyScanlines, exceptionForHR); 834return new System.InvalidOperationException(SR.Image_InternalError, exceptionForHR); 837return new System.ArgumentException(SR.Image_BadDimensions, exceptionForHR); 841return new System.NotSupportedException(SR.Image_ComponentNotFound, exceptionForHR); 845return new System.IO.FileFormatException(null, SR.Image_DecoderError, exceptionForHR); 848return new System.IO.FileFormatException(null, SR.Image_HeaderError, exceptionForHR); 851return new System.ArgumentException(SR.Image_FrameMissing, exceptionForHR); 854return new System.ArgumentException(SR.Image_BadMetadataHeader, exceptionForHR); 857return new System.ArgumentException(SR.Image_BadStreamData, exceptionForHR); 860return new System.InvalidOperationException(SR.Image_StreamWrite, exceptionForHR); 863return new System.NotSupportedException(SR.Image_UnsupportedPixelFormat, exceptionForHR); 866return new System.NotSupportedException(SR.Image_UnsupportedOperation, exceptionForHR); 869return new System.ArgumentException(SR.Image_SizeOutOfRange, exceptionForHR); 872return new System.IO.IOException(SR.Image_StreamRead, exceptionForHR); 875return new System.IO.IOException(SR.Image_InvalidQueryRequest, exceptionForHR); 878return new System.IO.FileFormatException(null, SR.Image_UnexpectedMetadataType, exceptionForHR); 881return new System.IO.FileFormatException(null, SR.Image_RequestOnlyValidAtMetadataRoot, exceptionForHR); 884return new System.IO.IOException(SR.Image_InvalidQueryCharacter, exceptionForHR); 887return new System.IO.FileFormatException(null, SR.Image_DuplicateMetadataPresent, exceptionForHR); 890return new System.IO.FileFormatException(null, SR.Image_PropertyUnexpectedType, exceptionForHR); 893return new System.IO.FileFormatException(null, SR.Image_TooMuchMetadata, exceptionForHR); 896return new System.NotSupportedException(SR.Image_StreamNotAvailable, exceptionForHR); 899return new System.ArgumentException(SR.Image_InsufficientBuffer, exceptionForHR); 902return new System.ArgumentException(SR.Format(SR.Media_InvalidArgument, null), exceptionForHR); 905return new System.IO.FileFormatException(null, SR.Image_InvalidColorContext, exceptionForHR); 908return new System.InvalidOperationException(SR.Image_DisplayStateInvalid, exceptionForHR); 911return new System.ArithmeticException(SR.Image_SingularMatrix, 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); 929return new System.Security.SecurityException(SR.Media_LogonFailure, exceptionForHR); 932return new System.IO.FileNotFoundException(SR.Media_FileNotFound, exceptionForHR); 936return new System.IO.FileFormatException(SR.Media_FileFormatNotSupported, exceptionForHR); 939return new System.IO.FileFormatException(SR.Media_PlaylistFormatNotSupported, exceptionForHR); 942return new System.ArithmeticException(SR.Geometry_BadNumber, exceptionForHR); 945return new System.ArgumentException(SR.D3DImage_InvalidUsage, exceptionForHR); 947return new System.ArgumentException(SR.D3DImage_SurfaceTooBig, exceptionForHR); 949return new System.ArgumentException(SR.D3DImage_InvalidPool, exceptionForHR); 951return new System.ArgumentException(SR.D3DImage_InvalidDevice, exceptionForHR); 953return new System.ArgumentException(SR.D3DImage_AARequires9Ex, exceptionForHR);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (12)
56throw new ArgumentOutOfRangeException(nameof(bufferLengthInBits), SR.InvalidBufferLength); 70throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 99throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 127throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 157throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 185throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 230throw new System.IO.EndOfStreamException(SR.EndOfStreamReached); 236throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 241throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsGreatThanRemainingBits); 370throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 409throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange); 438throw new ArgumentOutOfRangeException(nameof(countOfBits), countOfBits, SR.CountOfBitsOutOfRange);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
107throw new SecurityException( SR.Invalid_URI );
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
40throw new ArgumentException(SR.Collection_BadRank);
System\IO\Packaging\PackageStore.cs (3)
95throw new ArgumentException(SR.NotAllowedPackageUri, nameof(uri)); 109throw new InvalidOperationException(SR.PackageAlreadyExists); 144throw new ArgumentException(SR.UriMustBeAbsolute, nameof(uri));
System\IO\Packaging\PackWebRequest.cs (4)
133throw new WebException(SR.ResourceNotFoundUnderCacheOnlyPolicy); 143throw new WebException(SR.PackWebRequestCachePolicyIllegal); 164throw new InvalidOperationException(SR.SchemaInvalidForTransport); 209throw new WebException(SR.PackWebRequestCachePolicyIllegal);
System\IO\Packaging\PackWebRequestFactory.cs (3)
55throw new ArgumentException(SR.UriMustBeAbsolute, nameof(uri)); 60throw new ArgumentException(SR.Format(SR.UriSchemeMismatch, PackUriHelper.UriSchemePack), nameof(uri));
System\IO\Packaging\PackWebResponse.cs (4)
233throw new WebException(SR.WebResponsePartNotFound); 847throw new WebException(SR.WebResponseFailure); 885_responseException = new WebException(SR.Format(SR.WebRequestTimeout, null), WebExceptionStatus.Timeout);
System\Windows\Automation\Peers\AutomationPeer.cs (30)
742throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 760throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 780throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 800throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 820throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 838throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 858throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 878throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 897throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 915throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 935throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 955throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 973throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 993throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1013throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1033throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1057throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1082throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1102throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1122throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1142throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1162throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1187throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1205throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1229throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1281throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1309throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1379throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1407throw new InvalidOperationException(SR.Automation_RecursivePublicCall); 1431throw new InvalidOperationException(SR.Automation_RecursivePublicCall);
System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
307throw new InvalidOperationException(SR.SetFocusFailed);
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
409throw new InvalidOperationException(SR.SetFocusFailed);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
517throw new InvalidOperationException(SR.SetFocusFailed);
System\Windows\CoreCompatibilityPreferences.cs (6)
67throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "IsAltKeyRequiredInAccessKeyDefaultScope", "CoreCompatibilityPreferences")); 107throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "IncludeAllInkInBoundingBox", "CoreCompatibilityPreferences")); 148throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "DisableMultimonDisplayClipping", "CoreCompatibilityPreferences"));
System\Windows\DataFormat.cs (1)
22throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed);
System\Windows\DataFormats.cs (1)
29throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed);
System\Windows\DataObjectExtensions.cs (1)
22SR.ITypeDataObject_Not_Implemented,
System\Windows\DataObjectPastingEventArgs.cs (6)
55throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 60throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, formatToApply)); 128throw new ArgumentException(SR.DataObject_DataObjectMustHaveAtLeastOneFormat); 157throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, value));
System\Windows\Diagnostics\VisualDiagnostics.cs (6)
213throw new InvalidOperationException(SR.Format(SR.ReentrantVisualTreeChangeError, nameof(VisualTreeChanged))); 254throw new InvalidOperationException(SR.Format(SR.MethodCallNotAllowed, nameof(VisualDiagnostics.EnableVisualTreeChanged))); 288System.Diagnostics.Debug.WriteLine(SR.Format(SR.ReentrantVisualTreeChangeWarning, nameof(VisualTreeChanged)));
System\Windows\Documents\DocumentPaginator.cs (1)
77throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.PaginatorNegativePageNumber);
System\Windows\Documents\DynamicDocumentPaginator.cs (1)
76throw new ArgumentException(SR.PaginatorMissingContentPosition, nameof(contentPosition));
System\Windows\DragDrop.cs (8)
393throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, nameof(dragSource)); 424throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, nameof(dragSource)); 709throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 732throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 766throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 789throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 1168throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 1192throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope");
System\Windows\DragEventArgs.cs (2)
147throw new ArgumentException(SR.Format(SR.DragDrop_DragDropEffectsInvalid, "value"));
System\Windows\Duration.cs (4)
26throw new ArgumentException(SR.Timing_InvalidArgNonNegative, nameof(timeSpan)); 62throw new ArgumentException(SR.Timing_InvalidArgNonNegative, nameof(timeSpan)); 395return HasTimeSpan ? _timeSpan : throw new InvalidOperationException(SR.Format(SR.Timing_NotTimeSpan, this));
System\Windows\EventHandlersStore.cs (2)
147throw new ArgumentException(SR.HandlerTypeIllegal); 181throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventManager.cs (4)
70throw new ArgumentException(SR.Format(SR.DuplicateEventName, name, ownerType)); 159throw new ArgumentException(SR.ClassTypeIllegal); 164throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventRoute.cs (2)
128throw new ArgumentException(SR.SourceNotSet); 133throw new ArgumentException(SR.Mismatched_RoutedEvent);
System\Windows\FontStretchConverter.cs (3)
65throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value)); 70throw new FormatException(SR.Parsers_IllegalToken);
System\Windows\FontStyleConverter.cs (3)
65throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value)); 70throw new FormatException(SR.Parsers_IllegalToken);
System\Windows\FontWeightConverter.cs (3)
65throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value)); 70throw new FormatException(SR.Parsers_IllegalToken);
System\Windows\FreezableCollection.cs (17)
81throw new System.ArgumentException(SR.Collection_NoNull); 193throw new System.ArgumentException(SR.Collection_NoNull); 310throw new System.ArgumentException(SR.Collection_NoNull); 481throw new ArgumentException(SR.Collection_BadRank); 496throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 639throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "T")); 695throw new System.ArgumentException(SR.Collection_NoNull); 754throw new InvalidOperationException(SR.Freezable_UnexpectedChange); 826throw new InvalidOperationException(SR.Format(SR.Freezable_CloneInvalidType, typeof(T).Name)); 933throw new InvalidOperationException(SR.Freezable_Reentrant); 1022throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 1040throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 1074throw new InvalidOperationException(SR.Enumerator_NotStarted); 1079throw new InvalidOperationException(SR.Enumerator_ReachedEnd);
System\Windows\Generated\ContentElement.cs (26)
71throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp)); 77throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), nameof(clock)); 82throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 87throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 136throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp)); 142throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), nameof(animation)); 147throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 152throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 521throw new ArgumentException(SR.HandlerTypeIllegal); 576throw new ArgumentException(SR.HandlerTypeIllegal); 2044[CustomCategory(nameof(SR.Touch_Category))] 2064[CustomCategory(nameof(SR.Touch_Category))] 2084[CustomCategory(nameof(SR.Touch_Category))] 2104[CustomCategory(nameof(SR.Touch_Category))] 2124[CustomCategory(nameof(SR.Touch_Category))] 2144[CustomCategory(nameof(SR.Touch_Category))] 2164[CustomCategory(nameof(SR.Touch_Category))] 2184[CustomCategory(nameof(SR.Touch_Category))] 2204[CustomCategory(nameof(SR.Touch_Category))] 2224[CustomCategory(nameof(SR.Touch_Category))]
System\Windows\Generated\TextDecorationCollection.cs (14)
119throw new System.ArgumentException(SR.Collection_NoNull); 227throw new System.ArgumentException(SR.Collection_NoNull); 393throw new ArgumentException(SR.Collection_BadRank); 408throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 497throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextDecoration")); 523throw new System.ArgumentException(SR.Collection_NoNull); 788throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 806throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 840throw new InvalidOperationException(SR.Enumerator_NotStarted); 845throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 923throw new System.ArgumentException(SR.Collection_NoNull); 941throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Generated\UIElement.cs (26)
71throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp)); 77throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), nameof(clock)); 82throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 87throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 136throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp)); 142throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), nameof(animation)); 147throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 152throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 521throw new ArgumentException(SR.HandlerTypeIllegal); 576throw new ArgumentException(SR.HandlerTypeIllegal); 3997[CustomCategory(nameof(SR.Touch_Category))] 4017[CustomCategory(nameof(SR.Touch_Category))] 4037[CustomCategory(nameof(SR.Touch_Category))] 4057[CustomCategory(nameof(SR.Touch_Category))] 4077[CustomCategory(nameof(SR.Touch_Category))] 4097[CustomCategory(nameof(SR.Touch_Category))] 4117[CustomCategory(nameof(SR.Touch_Category))] 4137[CustomCategory(nameof(SR.Touch_Category))] 4157[CustomCategory(nameof(SR.Touch_Category))] 4177[CustomCategory(nameof(SR.Touch_Category))]
System\Windows\Generated\UIElement3D.cs (12)
327throw new ArgumentException(SR.HandlerTypeIllegal); 382throw new ArgumentException(SR.HandlerTypeIllegal); 1774[CustomCategory(nameof(SR.Touch_Category))] 1794[CustomCategory(nameof(SR.Touch_Category))] 1814[CustomCategory(nameof(SR.Touch_Category))] 1834[CustomCategory(nameof(SR.Touch_Category))] 1854[CustomCategory(nameof(SR.Touch_Category))] 1874[CustomCategory(nameof(SR.Touch_Category))] 1894[CustomCategory(nameof(SR.Touch_Category))] 1914[CustomCategory(nameof(SR.Touch_Category))] 1934[CustomCategory(nameof(SR.Touch_Category))] 1954[CustomCategory(nameof(SR.Touch_Category))]
System\Windows\GlobalEventManager.cs (1)
439throw new InvalidOperationException(SR.TooManyRoutedEvents);
System\Windows\Ink\DrawingAttributes.cs (8)
133throw new ArgumentException(SR.InvalidSttValue, nameof(value)); 161throw new ArgumentOutOfRangeException("Height", SR.InvalidDrawingAttributesHeight); 188throw new ArgumentOutOfRangeException("Width", SR.InvalidDrawingAttributesWidth); 590throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 619throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 708throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(Matrix)), nameof(propertyData)); 943throw new ArgumentException(SR.EPGuidNotFound, nameof(id));
System\Windows\Ink\Events.cs (4)
37throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "added", "removed")); 103throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "newValue", "previousValue"));
System\Windows\Ink\GestureRecognizer.cs (2)
164throw new ArgumentException(SR.StrokeCollectionCountTooBig, nameof(strokes)); 253throw new InvalidOperationException(SR.GestureRecognizerNotAvailable);
System\Windows\Ink\IncrementalHitTester.cs (4)
41throw new System.ArgumentException(SR.EmptyArrayNotAllowedAsArgument, nameof(points)); 46throw new System.InvalidOperationException(SR.EndHitTestingCalled); 64throw new System.ArgumentException(SR.EmptyArrayNotAllowedAsArgument, nameof(stylusPoints)); 69throw new System.InvalidOperationException(SR.EndHitTestingCalled);
System\Windows\Ink\Stroke.cs (10)
50throw new ArgumentException(SR.InvalidStylusPointCollectionZeroCount, nameof(stylusPoints)); 144throw new ArgumentException(SR.MatrixNotInvertible, nameof(transformMatrix)); 148throw new ArgumentException(SR.InvalidMatrixContainsNaN, nameof(transformMatrix)); 152throw new ArgumentException(SR.InvalidMatrixContainsInfinity, nameof(transformMatrix)); 506throw new ArgumentException(SR.InvalidStylusPointCollectionZeroCount); 586throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 617throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 632throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 649throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 667throw new ArgumentNullException(nameof(e), SR.EventArgIsNull);
System\Windows\Ink\Stroke2.cs (3)
120throw new ArgumentException(SR.EmptyArray); 151throw new ArgumentException(SR.EmptyArray); 195throw new ArgumentOutOfRangeException(nameof(diameter), SR.InvalidDiameter);
System\Windows\Ink\StrokeCollection.cs (19)
47throw new ArgumentException(SR.StrokeIsDuplicated, nameof(strokes)); 60throw new ArgumentException(SR.Image_StreamRead, nameof(stream)); 66throw new ArgumentException(SR.Invalid_isfData_Length, nameof(stream)); 84throw new ArgumentException(SR.Image_StreamWrite, nameof(stream)); 187throw new ArgumentException(SR.InvalidGuid, nameof(propertyDataId)); 225throw new ArgumentException(SR.MatrixNotInvertible, nameof(transformMatrix)); 309throw new ArgumentException(SR.StrokeIsDuplicated, nameof(stroke)); 327throw new ArgumentException(SR.StrokeIsDuplicated, nameof(stroke)); 383ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, nameof(strokes)); 427throw new ArgumentException(SR.StrokeIsDuplicated, nameof(strokes)); 448throw new ArgumentNullException(SR.EmptyScToReplace); 465throw new ArgumentNullException(SR.EmptyScToReplace); 469throw new ArgumentNullException(SR.EmptyScToReplaceWith); 475ArgumentException ae = new ArgumentException(SR.EmptyScToReplace, nameof(strokesToReplace)); 488ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, nameof(strokesToReplace)); 504throw new ArgumentException(SR.StrokeIsDuplicated, nameof(strokesToReplaceWith)); 617throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 674throw new ArgumentNullException(nameof(e), SR.EventArgIsNull); 858throw new NotSupportedException(SR.StrokeCollectionIsReadOnly);
System\Windows\Ink\StrokeCollection2.cs (5)
66throw new ArgumentOutOfRangeException(nameof(diameter), SR.InvalidDiameter); 225throw new ArgumentException(SR.EmptyArray); 275throw new ArgumentException(SR.EmptyArray); 318throw new System.ArgumentNullException(SR.SCEraseShape); 322throw new System.ArgumentNullException(SR.SCErasePath);
System\Windows\Input\AccessKeyManager.cs (2)
125throw new ArgumentException(SR.Format(SR.AccessKeyManager_NotAUnicodeCharacter, "key"));
System\Windows\Input\Command\ApplicationCommands.cs (43)
263case CommandId.Cut: uiText = SR.CutText; break; 264case CommandId.Copy: uiText = SR.CopyText;break; 265case CommandId.Paste: uiText = SR.PasteText;break; 266case CommandId.Undo: uiText = SR.UndoText;break; 267case CommandId.Redo: uiText = SR.RedoText; break; 268case CommandId.Delete: uiText = SR.DeleteText; break; 269case CommandId.Find: uiText = SR.FindText; break; 270case CommandId.Replace: uiText = SR.ReplaceText; break; 271case CommandId.SelectAll: uiText = SR.SelectAllText; break; 272case CommandId.Help: uiText = SR.HelpText; break; 273case CommandId.New: uiText = SR.NewText; break; 274case CommandId.Open: uiText = SR.OpenText; break; 275case CommandId.Save: uiText = SR.SaveText; break; 276case CommandId.SaveAs: uiText = SR.SaveAsText; break; 277case CommandId.Print: uiText = SR.PrintText; break; 278case CommandId.CancelPrint: uiText = SR.CancelPrintText; break; 279case CommandId.PrintPreview: uiText = SR.PrintPreviewText; break; 280case CommandId.Close: uiText = SR.CloseText; break; 281case CommandId.ContextMenu: uiText = SR.ContextMenuText; break; 282case CommandId.CorrectionList: uiText = SR.CorrectionListText; break; 283case CommandId.Properties: uiText = SR.PropertiesText; break; 284case CommandId.Stop: uiText = SR.StopText; break; 285case CommandId.NotACommand: uiText = SR.NotACommandText; break; 301SR.CutKeyDisplayString, 307SR.CopyKeyDisplayString, 313SR.PasteKeyDisplayString, 319SR.UndoKeyDisplayString, 325SR.RedoKeyDisplayString, 331SR.DeleteKeyDisplayString, 337SR.FindKeyDisplayString, 343SR.ReplaceKeyDisplayString, 349SR.SelectAllKeyDisplayString, 355SR.HelpKeyDisplayString, 361SR.NewKeyDisplayString, 367SR.OpenKeyDisplayString, 373SR.SaveKeyDisplayString, 381SR.PrintKeyDisplayString, 389SR.PrintPreviewKeyDisplayString, 397SR.ContextMenuKeyDisplayString, 402SR.CorrectionListKey, 403SR.CorrectionListKeyDisplayString, 409SR.PropertiesKeyDisplayString, 415SR.StopKeyDisplayString,
System\Windows\Input\Command\CommandBindingCollection.cs (4)
130throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings); 166throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings); 192throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings); 210throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings);
System\Windows\Input\Command\ComponentCommands.cs (57)
291case CommandId.ScrollPageUp: uiText = SR.ScrollPageUpText; break; 292case CommandId.ScrollPageDown: uiText = SR.ScrollPageDownText; break; 293case CommandId.ScrollPageLeft: uiText = SR.ScrollPageLeftText; break; 294case CommandId.ScrollPageRight: uiText = SR.ScrollPageRightText; break; 295case CommandId.ScrollByLine: uiText = SR.ScrollByLineText; break; 296case CommandId.MoveLeft:uiText = SR.MoveLeftText;break; 297case CommandId.MoveRight:uiText = SR.MoveRightText;break; 298case CommandId.MoveUp: uiText = SR.MoveUpText; break; 299case CommandId.MoveDown: uiText = SR.MoveDownText; break; 300case CommandId.ExtendSelectionUp: uiText = SR.ExtendSelectionUpText; break; 301case CommandId.ExtendSelectionDown: uiText = SR.ExtendSelectionDownText; break; 302case CommandId.ExtendSelectionLeft: uiText = SR.ExtendSelectionLeftText; break; 303case CommandId.ExtendSelectionRight: uiText = SR.ExtendSelectionRightText; break; 304case CommandId.MoveToHome: uiText = SR.MoveToHomeText; break; 305case CommandId.MoveToEnd: uiText = SR.MoveToEndText; break; 306case CommandId.MoveToPageUp: uiText = SR.MoveToPageUpText; break; 307case CommandId.MoveToPageDown: uiText = SR.MoveToPageDownText; break; 308case CommandId.SelectToHome: uiText = SR.SelectToHomeText; break; 309case CommandId.SelectToEnd: uiText = SR.SelectToEndText; break; 310case CommandId.SelectToPageDown: uiText = SR.SelectToPageDownText; break; 311case CommandId.SelectToPageUp: uiText = SR.SelectToPageUpText; break; 312case CommandId.MoveFocusUp: uiText = SR.MoveFocusUpText; break; 313case CommandId.MoveFocusDown: uiText = SR.MoveFocusDownText; break; 314case CommandId.MoveFocusBack: uiText = SR.MoveFocusBackText; break; 315case CommandId.MoveFocusForward: uiText = SR.MoveFocusForwardText; break; 316case CommandId.MoveFocusPageUp: uiText = SR.MoveFocusPageUpText; break; 317case CommandId.MoveFocusPageDown: uiText = SR.MoveFocusPageDownText; break; 333SR.ScrollPageUpKeyDisplayString, 339SR.ScrollPageDownKeyDisplayString, 344SR.ScrollPageLeftKey, 345SR.ScrollPageLeftKeyDisplayString, 350SR.ScrollPageRightKey, 351SR.ScrollPageRightKeyDisplayString, 356SR.ScrollByLineKey, 357SR.ScrollByLineKeyDisplayString, 363SR.MoveLeftKeyDisplayString, 369SR.MoveRightKeyDisplayString, 375SR.MoveUpKeyDisplayString, 381SR.MoveDownKeyDisplayString, 387SR.ExtendSelectionUpKeyDisplayString, 393SR.ExtendSelectionDownKeyDisplayString, 399SR.ExtendSelectionLeftKeyDisplayString, 405SR.ExtendSelectionRightKeyDisplayString, 411SR.MoveToHomeKeyDisplayString, 417SR.MoveToEndKeyDisplayString, 423SR.MoveToPageUpKeyDisplayString, 429SR.MoveToPageDownKeyDisplayString, 435SR.SelectToHomeKeyDisplayString, 441SR.SelectToEndKeyDisplayString, 447SR.SelectToPageDownKeyDisplayString, 453SR.SelectToPageUpKeyDisplayString, 459SR.MoveFocusUpKeyDisplayString, 465SR.MoveFocusDownKeyDisplayString, 471SR.MoveFocusBackKeyDisplayString, 477SR.MoveFocusForwardKeyDisplayString, 483SR.MoveFocusPageUpKeyDisplayString, 489SR.MoveFocusPageDownKeyDisplayString,
System\Windows\Input\Command\InputBindingCollection.cs (4)
144throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings); 207throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings); 261throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings); 276throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings);
System\Windows\Input\Command\InputGestureCollection.cs (13)
99throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 111throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 123throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 141throw new NotSupportedException(SR.CollectionOnlyAcceptsInputGestures); 174throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 223throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 247throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 267throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 287throw new NotSupportedException(SR.CollectionOnlyAcceptsInputGestures); 301throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 304throw new NotSupportedException(SR.CollectionOnlyAcceptsInputGestures); 328throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 357throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection);
System\Windows\Input\Command\KeyBinding.cs (2)
88throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(KeyGesture)));
System\Windows\Input\Command\KeyGesture.cs (2)
100throw new NotSupportedException(SR.Format(SR.KeyGesture_Invalid, modifiers, key));
System\Windows\Input\Command\MediaCommands.cs (72)
252case CommandId.Play: uiText = SR.MediaPlayText; break; 253case CommandId.Pause: uiText = SR.MediaPauseText; break; 254case CommandId.Stop: uiText = SR.MediaStopText; break; 255case CommandId.Record: uiText = SR.MediaRecordText; break; 256case CommandId.NextTrack: uiText = SR.MediaNextTrackText; break; 257case CommandId.PreviousTrack: uiText = SR.MediaPreviousTrackText; break; 258case CommandId.FastForward: uiText = SR.MediaFastForwardText; break; 259case CommandId.Rewind: uiText = SR.MediaRewindText; break; 260case CommandId.ChannelUp: uiText = SR.MediaChannelUpText; break; 261case CommandId.ChannelDown: uiText = SR.MediaChannelDownText; break; 262case CommandId.TogglePlayPause: uiText = SR.MediaTogglePlayPauseText; break; 263case CommandId.IncreaseVolume: uiText = SR.MediaIncreaseVolumeText; break; 264case CommandId.DecreaseVolume: uiText = SR.MediaDecreaseVolumeText; break; 265case CommandId.MuteVolume: uiText = SR.MediaMuteVolumeText; break; 266case CommandId.IncreaseTreble: uiText = SR.MediaIncreaseTrebleText; break; 267case CommandId.DecreaseTreble: uiText = SR.MediaDecreaseTrebleText; break; 268case CommandId.IncreaseBass: uiText = SR.MediaIncreaseBassText; break; 269case CommandId.DecreaseBass: uiText = SR.MediaDecreaseBassText; break; 270case CommandId.BoostBass: uiText = SR.MediaBoostBassText; break; 271case CommandId.IncreaseMicrophoneVolume: uiText = SR.MediaIncreaseMicrophoneVolumeText; break; 272case CommandId.DecreaseMicrophoneVolume: uiText = SR.MediaDecreaseMicrophoneVolumeText; break; 273case CommandId.MuteMicrophoneVolume: uiText = SR.MediaMuteMicrophoneVolumeText; break; 274case CommandId.ToggleMicrophoneOnOff: uiText = SR.MediaToggleMicrophoneOnOffText; break; 275case CommandId.Select:uiText = SR.MediaSelectText;break; 289SR.MediaPlayKey, 290SR.MediaPlayKeyDisplayString, 295SR.MediaPauseKey, 296SR.MediaPauseKeyDisplayString, 301SR.MediaStopKey, 302SR.MediaStopKeyDisplayString, 307SR.MediaRecordKey, 308SR.MediaRecordKeyDisplayString, 313SR.MediaNextTrackKey, 314SR.MediaNextTrackKeyDisplayString, 319SR.MediaPreviousTrackKey, 320SR.MediaPreviousTrackKeyDisplayString, 325SR.MediaFastForwardKey, 326SR.MediaFastForwardKeyDisplayString, 331SR.MediaRewindKey, 332SR.MediaRewindKeyDisplayString, 337SR.MediaChannelUpKey, 338SR.MediaChannelUpKeyDisplayString, 343SR.MediaChannelDownKey, 344SR.MediaChannelDownKeyDisplayString, 349SR.MediaTogglePlayPauseKey, 350SR.MediaTogglePlayPauseKeyDisplayString, 355SR.MediaIncreaseVolumeKey, 356SR.MediaIncreaseVolumeKeyDisplayString, 361SR.MediaDecreaseVolumeKey, 362SR.MediaDecreaseVolumeKeyDisplayString, 367SR.MediaMuteVolumeKey, 368SR.MediaMuteVolumeKeyDisplayString, 373SR.MediaIncreaseTrebleKey, 374SR.MediaIncreaseTrebleKeyDisplayString, 379SR.MediaDecreaseTrebleKey, 380SR.MediaDecreaseTrebleKeyDisplayString, 385SR.MediaIncreaseBassKey, 386SR.MediaIncreaseBassKeyDisplayString, 391SR.MediaDecreaseBassKey, 392SR.MediaDecreaseBassKeyDisplayString, 397SR.MediaBoostBassKey, 398SR.MediaBoostBassKeyDisplayString, 403SR.MediaIncreaseMicrophoneVolumeKey, 404SR.MediaIncreaseMicrophoneVolumeKeyDisplayString, 409SR.MediaDecreaseMicrophoneVolumeKey, 410SR.MediaDecreaseMicrophoneVolumeKeyDisplayString, 415SR.MediaMuteMicrophoneVolumeKey, 416SR.MediaMuteMicrophoneVolumeKeyDisplayString, 421SR.MediaToggleMicrophoneOnOffKey, 422SR.MediaToggleMicrophoneOnOffKeyDisplayString, 427SR.MediaSelectKey, 428SR.MediaSelectKeyDisplayString,
System\Windows\Input\Command\MouseActionConverter.cs (2)
70_ => throw new NotSupportedException(SR.Format(SR.Unsupported_MouseAction, mouseActionToken.ToString()))
System\Windows\Input\Command\MouseBinding.cs (2)
104throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(MouseGesture)));
System\Windows\Input\Command\NavigationCommands.cs (41)
195case CommandId.BrowseBack: uiText = SR.BrowseBackText; break; 196case CommandId.BrowseForward: uiText = SR.BrowseForwardText; break; 197case CommandId.BrowseHome: uiText = SR.BrowseHomeText; break; 198case CommandId.BrowseStop: uiText = SR.BrowseStopText; break; 199case CommandId.Refresh: uiText = SR.RefreshText; break; 200case CommandId.Favorites: uiText = SR.FavoritesText; break; 201case CommandId.Search: uiText = SR.SearchText; break; 202case CommandId.IncreaseZoom: uiText = SR.IncreaseZoomText; break; 203case CommandId.DecreaseZoom: uiText = SR.DecreaseZoomText; break; 204case CommandId.Zoom: uiText = SR.ZoomText; break; 205case CommandId.NextPage: uiText = SR.NextPageText; break; 206case CommandId.PreviousPage: uiText = SR.PreviousPageText; break; 207case CommandId.FirstPage: uiText = SR.FirstPageText; break; 208case CommandId.LastPage: uiText = SR.LastPageText; break; 209case CommandId.GoToPage: uiText = SR.GoToPageText; break; 210case CommandId.NavigateJournal: uiText = SR.NavigateJournalText; break; 225SR.BrowseBackKeyDisplayString, 231SR.BrowseForwardKeyDisplayString, 237SR.BrowseHomeKeyDisplayString, 243SR.BrowseStopKeyDisplayString, 249SR.RefreshKeyDisplayString, 255SR.FavoritesKeyDisplayString, 261SR.SearchKeyDisplayString, 266SR.IncreaseZoomKey, 267SR.IncreaseZoomKeyDisplayString, 272SR.DecreaseZoomKey, 273SR.DecreaseZoomKeyDisplayString, 278SR.ZoomKey, 279SR.ZoomKeyDisplayString, 284SR.NextPageKey, 285SR.NextPageKeyDisplayString, 290SR.PreviousPageKey, 291SR.PreviousPageKeyDisplayString, 296SR.FirstPageKey, 297SR.FirstPageKeyDisplayString, 302SR.LastPageKey, 303SR.LastPageKeyDisplayString, 308SR.GoToPageKey, 309SR.GoToPageKeyDisplayString, 314SR.NavigateJournalKey, 315SR.NavigateJournalKeyDisplayString,
System\Windows\Input\Command\RoutedCommand.cs (5)
50throw new ArgumentException(SR.StringEmpty, nameof(name)); 122throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, target.GetType())); 158throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, target.GetType()));
System\Windows\Input\Cursor.cs (10)
32throw new ArgumentException(SR.Format(SR.InvalidCursorType, cursorType)); 63throw new ArgumentException(SR.Format(SR.Cursor_UnsupportedFormat , cursorFile)); 189throw new Win32Exception(errorCode, SR.Format(SR.Cursor_LoadImageFailure, fileName)); 198throw new ArgumentException(SR.Format(SR.Cursor_LoadImageFailure, fileName)); 252throw new ArgumentException(SR.Cursor_InvalidStream); 298throw new ArgumentException(SR.Cursor_InvalidStream);
System\Windows\Input\FocusChangedEventArgs.cs (4)
29throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldFocus.GetType())); 32throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, newFocus.GetType()));
System\Windows\Input\InputLanguageManager.cs (1)
459throw new InvalidOperationException(SR.InputLanguageManager_NotReadyToChangeCurrentLanguage);
System\Windows\Input\InputManager.cs (1)
144throw new InvalidOperationException(SR.RequiresSTA);
System\Windows\Input\InputMethod.cs (4)
811throw new ArgumentException(SR.Format(SR.InputMethod_InvalidConversionMode, value)); 1062throw new ArgumentException(SR.Format(SR.InputMethod_InvalidSentenceMode, value));
System\Windows\Input\InputProviderSite.cs (1)
80throw new ObjectDisposedException(SR.InputProviderSiteDisposed);
System\Windows\Input\InputScope.cs (2)
171throw new ArgumentException(SR.Format(SR.InputScope_InvalidInputScopeName, "value"));
System\Windows\Input\KeyboardDevice.cs (6)
120throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, element.GetType())); 406throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, o.GetType())); 432throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, o.GetType()));
System\Windows\Input\Manipulation.cs (7)
73throw new InvalidOperationException(SR.Manipulation_ManipulationNotActive); 105throw new InvalidOperationException(SR.Manipulation_ManipulationNotActive); 146throw new InvalidOperationException(SR.Manipulation_ManipulationNotActive); 185throw new InvalidOperationException(SR.Manipulation_ManipulationNotActive); 219throw new InvalidOperationException(SR.Manipulation_ManipulationNotEnabled); 239throw new InvalidOperationException(SR.Manipulation_ManipulationNotActive); 273throw new InvalidOperationException(SR.Manipulation_ManipulationNotActive);
System\Windows\Input\ManipulationStartingEventArgs.cs (1)
32throw new ArgumentException(SR.Manipulation_InvalidManipulationMode, nameof(value));
System\Windows\Input\MouseDevice.cs (4)
299throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, eltDO.GetType())); 546throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, relativeTo.GetType()));
System\Windows\Input\ProcessInputEventArgs.cs (4)
50throw new InvalidOperationException(SR.NotAllowedToAccessStagingArea); 70throw new InvalidOperationException(SR.NotAllowedToAccessStagingArea); 88throw new InvalidOperationException(SR.NotAllowedToAccessStagingArea); 106throw new InvalidOperationException(SR.NotAllowedToAccessStagingArea);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
249throw new ArgumentException(SR.Stylus_MustBeDownToCallReset, nameof(stylusDevice));
System\Windows\Input\Stylus\Common\RawStylusInput.cs (4)
29throw new ArgumentException(SR.Stylus_MatrixNotInvertable, nameof(tabletToElementTransform)); 103throw new ArgumentException(SR.IncompatibleStylusPointDescriptions, nameof(stylusPoints)); 107throw new ArgumentException(SR.Stylus_StylusPointsCantBeEmpty, nameof(stylusPoints)); 121throw new InvalidOperationException(SR.Stylus_CanOnlyCallForDownMoveOrUp);
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (4)
181throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(actions))); 237throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(actions)));
System\Windows\Input\Stylus\Common\RawStylusSystemGestureInputReport.cs (2)
157throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(systemGesture)));
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (4)
38throw new ArgumentNullException(nameof(plugIn), SR.Stylus_PlugInIsNull); 43throw new ArgumentException(SR.Stylus_PlugInIsDuplicated, nameof(plugIn)); 171throw new ArgumentNullException(nameof(plugIn), SR.Stylus_PlugInIsNull); 176throw new ArgumentException(SR.Stylus_PlugInIsDuplicated, nameof(plugIn));
System\Windows\Input\Stylus\Common\StylusPoint.cs (10)
72throw new ArgumentOutOfRangeException(nameof(x), SR.InvalidStylusPointXYNaN); 76throw new ArgumentOutOfRangeException(nameof(y), SR.InvalidStylusPointXYNaN); 84throw new ArgumentOutOfRangeException(nameof(pressureFactor), SR.InvalidPressureValue); 119throw new ArgumentException(SR.InvalidAdditionalDataForStylusPoint, nameof(additionalValues)); 166throw new ArgumentOutOfRangeException("X", SR.InvalidStylusPointXYNaN); 186throw new ArgumentOutOfRangeException("Y", SR.InvalidStylusPointXYNaN); 221throw new ArgumentOutOfRangeException("PressureFactor", SR.InvalidPressureValue); 292throw new ArgumentException(SR.InvalidStylusPointProperty, nameof(stylusPointProperty)); 375throw new ArgumentException(SR.InvalidStylusPointProperty, "propertyId"); 381throw new ArgumentOutOfRangeException(nameof(value), SR.InvalidMinMaxForButton);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (10)
45throw new ArgumentException(SR.InvalidStylusPointConstructionZeroLengthCollection, nameof(initialCapacity)); 70throw new ArgumentException(SR.InvalidStylusPointConstructionZeroLengthCollection, nameof(initialCapacity)); 88throw new ArgumentException(SR.InvalidStylusPointConstructionZeroLengthCollection, nameof(stylusPoints)); 123throw new ArgumentException(SR.InvalidStylusPointConstructionZeroLengthCollection, nameof(points)); 204throw new ArgumentException(SR.IncompatibleStylusPointDescriptions, nameof(stylusPoints)); 252throw new InvalidOperationException(SR.InvalidStylusPointCollectionZeroCount); 269throw new InvalidOperationException(SR.InvalidStylusPointCollectionZeroCount); 282throw new ArgumentException(SR.IncompatibleStylusPointDescriptions, nameof(stylusPoint)); 300throw new ArgumentException(SR.IncompatibleStylusPointDescriptions, nameof(stylusPoint)); 448throw new ArgumentException(SR.InvalidStylusPointDescriptionSubset, nameof(subsetToReformatTo));
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (4)
55throw new ArgumentException(SR.InvalidStylusPointDescription, nameof(stylusPointPropertyInfos)); 71throw new ArgumentException(SR.InvalidStylusPointDescriptionDuplicatesFound, nameof(stylusPointPropertyInfos)); 82throw new ArgumentException(SR.InvalidStylusPointDescriptionButtonsMustBeLast, nameof(stylusPointPropertyInfos)); 89throw new ArgumentException(SR.InvalidStylusPointDescriptionTooManyButtons, nameof(stylusPointPropertyInfos));
System\Windows\Input\Stylus\Common\StylusPointProperty.cs (2)
55throw new ArgumentException(SR.InvalidIsButtonForId, nameof(isButton)); 63throw new ArgumentException(SR.InvalidIsButtonForId2, nameof(isButton));
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (2)
56throw new ArgumentException(SR.Stylus_InvalidMax, nameof(maximum)); 62throw new ArgumentException(SR.InvalidStylusPointPropertyInfoResolution, nameof(resolution));
System\Windows\Input\Stylus\Common\StylusSystemGestureEventArgs.cs (4)
35throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "systemGesture")); 77throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "systemGesture"));
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (2)
73throw new ArgumentException(SR.Format(SR.Stylus_IndexOutOfRange, index.ToString(System.Globalization.CultureInfo.InvariantCulture)), nameof(index));
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (10)
535throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldCapture.GetType())); 561throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusCapture.GetType())); 626throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldOver.GetType())); 655throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusOver.GetType())); 791throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusCapture.GetType()));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
552throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, doStylusCapture.GetType()));
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
18throw new InvalidOperationException(SR.Stylus_PenContextFailure);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (2)
511throw new ObjectDisposedException(null, SR.Penservice_Disposed); 783throw new InvalidOperationException(SR.PenService_InvalidPacketData);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (12)
2087throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldCapture.GetType())); 2116throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusCapture.GetType())); 2175throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldOver.GetType())); 2204throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusOver.GetType())); 2444throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusCapture.GetType())); 3157throw new InvalidOperationException(SR.PenService_WindowAlreadyRegistered); 3226throw new InvalidOperationException(SR.PenService_WindowNotRegistered);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
245throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, doStylusCapture.GetType())); 1162throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, relativeTo.GetType()));
System\Windows\Input\TextComposition.cs (1)
103throw new ArgumentException(SR.TextComposition_NullResultText);
System\Windows\Input\TextCompositionManager.cs (16)
314throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 319throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasStarted, "composition")); 337throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 342throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 347throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition")); 364throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 369throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 374throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition"));
System\Windows\Input\TouchDevice.cs (4)
331throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, element.GetType()), nameof(element)); 694throw new InvalidOperationException(SR.Touch_DeviceAlreadyActivated); 719throw new InvalidOperationException(SR.Touch_DeviceNotActivated);
System\Windows\InterOp\D3DImage.cs (5)
129throw new InvalidOperationException(SR.Image_MustBeLocked); 258throw new InvalidOperationException(SR.Image_MustBeLocked); 293throw new InvalidOperationException(SR.Image_MustBeLocked); 298throw new InvalidOperationException(SR.D3DImage_MustHaveBackBuffer); 587throw new InvalidOperationException(SR.Image_LockCountLimit);
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
694throw new ArgumentException(SR.OnlyAcceptsKeyMessages);
System\Windows\InterOp\HwndSource.cs (6)
673throw new ArgumentException(SR.NullHwnd); 1913throw new ArgumentException(SR.KeyboardSinkAlreadyOwned); 2092throw new ArgumentException(SR.OnlyAcceptsKeyMessages); 2238throw new InvalidOperationException(SR.KeyboardSinkNotAChild); 2280throw new ArgumentException(SR.OnlyAcceptsKeyMessages); 2634throw new ObjectDisposedException(null, SR.HwndSourceDisposed);
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (1)
16throw new ArgumentException(SR.KeyboardSinkMustBeAnElement, nameof(sink));
System\Windows\InterOp\HwndSourceParameters.cs (1)
301throw new InvalidOperationException(SR.UsesPerPixelOpacityIsObsolete);
System\Windows\InterOp\HwndTarget.cs (5)
525SR.HwndTarget_InvalidWindowHandle, 532SR.HwndTarget_InvalidWindowProcess, 539SR.HwndTarget_InvalidWindowThread, 551SR.HwndTarget_WindowAlreadyHasContent 591throw new InvalidOperationException(SR.HwndTarget_HardwareNotSupportDueToProtocolMismatch);
System\Windows\LayoutManager.cs (4)
132throw new InvalidOperationException(SR.Format(SR.LayoutManager_DeepRecursion, s_LayoutRecursionLimit)); 149throw new InvalidOperationException(SR.Format(SR.LayoutManager_DeepRecursion, s_LayoutRecursionLimit));
System\Windows\Markup\XamlSerializerUtil.cs (2)
56throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Markup\XmlLanguage.cs (10)
200throw new InvalidOperationException(SR.Format(SR.XmlLangGetCultureFailure, lowerCaseTag), e); 236throw new InvalidOperationException(SR.Format(SR.XmlLangGetSpecificCulture, _lowerCaseTag)); 253throw new InvalidOperationException(SR.Format(SR.XmlLangGetSpecificCulture, _lowerCaseTag), e); 519throw new InvalidOperationException(SR.Enumerator_NotStarted); 523throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 792throw new ArgumentException(SR.Format(SR.XmlLangMalformed, ietfLanguageTag), nameof(ietfLanguageTag));
System\Windows\Media\Animation\AnimationStorage.cs (8)
337SR.Format( 338SR.Animation_CalculatedValueIsInvalidForProperty, 489SR.Format( 490SR.Animation_Exception, 985throw new InvalidOperationException(SR.Format( 986SR.Animation_ReturnedUnsetValueInstance, 1012SR.Format( 1013SR.Animation_CalculatedValueIsInvalidForProperty,
System\Windows\Media\Animation\Clock.cs (6)
583SR.Format( 584SR.Timing_CreateClockMustReturnNewClock, 613throw new NotSupportedException(SR.Timing_CanSlipOnlyOnSimpleTimelines); 626throw new System.InvalidOperationException(SR.Timing_SlipBehavior_SyncOnlyWithSimpleParents); 969throw new InvalidOperationException(SR.Timing_SkipToFillDestinationIndefinite); 3217throw new InvalidOperationException(SR.Timing_SeekDestinationAmbiguousDueToSlip);
System\Windows\Media\Animation\ClockController.cs (9)
156throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin")); 167throw new InvalidOperationException(SR.Timing_SeekDestinationIndefinite); 179throw new InvalidOperationException(SR.Timing_SeekDestinationNegative); 198throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin")); 209throw new InvalidOperationException(SR.Timing_SeekDestinationIndefinite); 221throw new InvalidOperationException(SR.Timing_SeekDestinationNegative); 279throw new ArgumentException(SR.Timing_InvalidArgFinitePositive, nameof(value));
System\Windows\Media\Animation\ClockGroup.cs (1)
127throw new NotSupportedException(SR.Timing_SlipBehavior_SlipOnlyOnSimpleTimelines);
System\Windows\Media\Animation\Generated\Animatable.cs (14)
70throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp)); 76throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), nameof(clock)); 81throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 86throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 135throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp)); 141throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), nameof(animation)); 146throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 151throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\ByteAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\ColorAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\DecimalAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\DoubleAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\Int16Animation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\Int32Animation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\Int64Animation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\Point3DAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\PointAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\RectAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\SingleAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\SizeAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (14)
118throw new System.ArgumentException(SR.Collection_NoNull); 226throw new System.ArgumentException(SR.Collection_NoNull); 392throw new ArgumentException(SR.Collection_BadRank); 407throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 496throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Timeline")); 522throw new System.ArgumentException(SR.Collection_NoNull); 787throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 805throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 839throw new InvalidOperationException(SR.Enumerator_NotStarted); 844throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 922throw new System.ArgumentException(SR.Collection_NoNull); 940throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\Generated\VectorAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\KeySpline.cs (8)
57throw new ArgumentException(SR.Format( 58SR.Animation_KeySpline_InvalidValue, 65throw new ArgumentException(SR.Format( 66SR.Animation_KeySpline_InvalidValue, 167throw new ArgumentException(SR.Format( 168SR.Animation_KeySpline_InvalidValue, 199throw new ArgumentException(SR.Format( 200SR.Animation_KeySpline_InvalidValue,
System\Windows\Media\Animation\KeySplineConverter.cs (1)
67throw new NotSupportedException(SR.Converter_ConvertFromNotSupported);
System\Windows\Media\Animation\KeyTime.cs (4)
30throw new ArgumentOutOfRangeException(nameof(percent), SR.Format(SR.Animation_KeyTime_InvalidPercentValue, percent)); 50throw new ArgumentOutOfRangeException(nameof(timeSpan), SR.Format(SR.Animation_KeyTime_LessThanZero, timeSpan));
System\Windows\Media\Animation\RepeatBehavior.cs (8)
39throw new ArgumentOutOfRangeException(nameof(count), SR.Format(SR.Timing_RepeatBehaviorInvalidIterationCount, count)); 54throw new ArgumentOutOfRangeException(nameof(duration), SR.Format(SR.Timing_RepeatBehaviorInvalidRepeatDuration, duration)); 110throw new InvalidOperationException(SR.Format(SR.Timing_RepeatBehaviorNotIterationCount, this)); 126throw new InvalidOperationException(SR.Format(SR.Timing_RepeatBehaviorNotRepeatDuration, this));
System\Windows\Media\Animation\Timeline.cs (3)
212throw new ArgumentException(SR.Timing_InvalidArgAccelAndDecel, nameof(value)); 601throw new ArgumentException(SR.Timing_InvalidArgFinitePositive, nameof(value)); 720throw new InvalidOperationException(SR.Timing_AccelAndDecelGreaterThanOne);
System\Windows\Media\Animation\TimelineClockCollection.cs (2)
344throw new InvalidOperationException(SR.Timing_EnumeratorOutOfRange); 386throw new InvalidOperationException(SR.Timing_EnumeratorInvalidated);
System\Windows\Media\Animation\TimelineGroup.cs (2)
145throw new ArgumentException(SR.Timing_ChildMustBeTimeline, nameof(child)); 203throw new InvalidOperationException(SR.Timing_NoTextChildren);
System\Windows\Media\Animation\TimeManager.cs (2)
257throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
System\Windows\Media\BitmapCacheBrush.cs (3)
353throw new InvalidOperationException(SR.BitmapCacheBrush_OpacityChanged); 362throw new InvalidOperationException(SR.BitmapCacheBrush_TransformChanged); 371throw new InvalidOperationException(SR.BitmapCacheBrush_RelativeTransformChanged);
System\Windows\Media\ByteStreamGeometryContext.cs (4)
203throw new InvalidOperationException(SR.StreamGeometry_NeedBeginFigure); 264throw new InvalidOperationException(SR.StreamGeometry_NeedBeginFigure); 627throw new InvalidOperationException(SR.StreamGeometry_NeedBeginFigure); 670throw new InvalidOperationException(SR.StreamGeometry_NeedBeginFigure);
System\Windows\Media\CacheMode.cs (1)
29throw new FormatException(SR.Parsers_IllegalToken);
System\Windows\Media\CharacterMetrics.cs (7)
104throw new ArgumentException(SR.CharacterMetrics_NegativeHorizontalAdvance); 110throw new ArgumentException(SR.CharacterMetrics_NegativeVerticalAdvance); 165throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, field.ToString(), "double")); 171throw new ArgumentException(SR.CharacterMetrics_MissingRequiredField); 180throw new ArgumentException(SR.CharacterMetrics_TooManyFields); 190throw new ArgumentException(SR.CharacterMetrics_MissingRequiredField);
System\Windows\Media\CharacterMetricsDictionary.cs (24)
121throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 178throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 181throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 196throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 201throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 355throw new ArgumentOutOfRangeException(SR.Format(SR.CodePointOutOfRange, key)); 363throw new ArgumentException(SR.Format(SR.CollectionDuplicateKey, key)); 492throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, s, "int"), nameof(key)); 500throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), "int"), nameof(key)); 504throw new ArgumentException(SR.Format(SR.CodePointOutOfRange, value), nameof(key)); 517throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CharacterMetrics), value.GetType())); 576throw new InvalidOperationException(SR.Enumerator_VerifyContext);
System\Windows\Media\Color.cs (24)
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\ColorContext.cs (4)
487throw new ArgumentException(SR.UriNotAbsolute, nameof(profileUri)); 529throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, profileUri.AbsolutePath), profileUri.AbsolutePath); 613throw new ArgumentException(SR.ColorContext_FileTooLarge, filename);
System\Windows\Media\ColorContextHelper.cs (2)
73throw new InvalidOperationException(SR.Image_ColorContextInvalid); 86throw new InvalidOperationException(SR.Image_ColorContextInvalid);
System\Windows\Media\ColorConverter.cs (2)
79throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value));
System\Windows\Media\ColorTransformHelper.cs (1)
110throw new InvalidOperationException(SR.Image_ColorTransformInvalid);
System\Windows\Media\CompositionTarget.cs (1)
461throw new System.ArgumentException(SR.CompositionTarget_RootVisual_HasParent);
System\Windows\Media\CultureSpecificStringDictionary.cs (16)
113throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 116throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 147throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 150throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 165throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 170throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 312throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(string)), nameof(value)); 325throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), typeof(XmlLanguage)), nameof(key)); 393throw new InvalidOperationException(SR.Enumerator_VerifyContext);
System\Windows\Media\DrawingDrawingContext.cs (1)
1052throw new InvalidOperationException(SR.DrawingContext_TooManyPops);
System\Windows\Media\DrawingGroup.cs (3)
117throw new InvalidOperationException(SR.DrawingGroup_CannotAppendToNullCollection); 122throw new InvalidOperationException(SR.DrawingGroup_CannotAppendToFrozenCollection); 287throw new InvalidOperationException(SR.DrawingGroup_AlreadyOpen);
System\Windows\Media\Effects\BitmapEffect.cs (4)
28throw new InvalidOperationException(SR.RequiresSTA); 97throw new ArgumentException(SR.Effect_No_InputSource, nameof(input)); 102throw new InvalidOperationException(SR.Format(SR.Effect_No_ContextInputSource, null));
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (14)
121throw new System.ArgumentException(SR.Collection_NoNull); 229throw new System.ArgumentException(SR.Collection_NoNull); 395throw new ArgumentException(SR.Collection_BadRank); 410throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 499throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "BitmapEffect")); 525throw new System.ArgumentException(SR.Collection_NoNull); 790throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 808throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 842throw new InvalidOperationException(SR.Enumerator_NotStarted); 847throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 925throw new System.ArgumentException(SR.Collection_NoNull); 943throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Effects\PixelShader.cs (3)
90throw new ArgumentException(SR.Effect_SourceUriMustBeFileOrPack); 116throw new InvalidOperationException(SR.Effect_ShaderSeekableStream); 123throw new InvalidOperationException(SR.Effect_ShaderBytecodeSize);
System\Windows\Media\Effects\ShaderEffect.cs (17)
44throw new ArgumentOutOfRangeException(nameof(value), value, SR.Effect_ShaderEffectPadding); 71throw new ArgumentOutOfRangeException(nameof(value), value, SR.Effect_ShaderEffectPadding); 98throw new ArgumentOutOfRangeException(nameof(value), value, SR.Effect_ShaderEffectPadding); 125throw new ArgumentOutOfRangeException(nameof(value), value, SR.Effect_ShaderEffectPadding); 192throw new InvalidOperationException(SR.Effect_20ShaderUsing30Registers); 344throw new InvalidOperationException(SR.Format(SR.Effect_ShaderConstantType, dp.PropertyType.Name)); 352string srid = nameof(SR.Effect_Shader20ConstantRegisterLimit); 362srid = nameof(SR.Effect_Shader30FloatConstantRegisterLimit); 367srid = nameof(SR.Effect_Shader30IntConstantRegisterLimit); 372srid = nameof(SR.Effect_Shader30BoolConstantRegisterLimit); 378throw new ArgumentException(SR.GetResourceString(srid), nameof(dp)); 429throw new ArgumentException(SR.Effect_ShaderSamplerType, nameof(dp)); 437string srid = nameof(SR.Effect_Shader20SamplerRegisterLimit); 442srid = nameof(SR.Effect_Shader30SamplerRegisterLimit); 447throw new ArgumentException(SR.GetResourceString(srid)); 560throw new InvalidOperationException(SR.Effect_ShaderPixelShaderSet);
System\Windows\Media\EllipseGeometry.cs (2)
30throw new System.ArgumentException(SR.Format(SR.Rect_Empty, "rect"));
System\Windows\Media\FamilyMap.cs (1)
221throw new FormatException(SR.CompositeFontInvalidUnicodeRange);
System\Windows\Media\FamilyMapCollection.cs (16)
77throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 80throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 91throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 95throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType)); 98throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 101throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 255throw new InvalidOperationException(SR.CompositeFont_TooManyFamilyMaps); 358throw new NotSupportedException(SR.General_ObjectIsReadOnly); 367throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FontFamilyMap))); 419throw new InvalidOperationException(SR.Enumerator_VerifyContext);
System\Windows\Media\FamilyTypeface.cs (1)
270throw new NotSupportedException(SR.General_ObjectIsReadOnly);
System\Windows\Media\FamilyTypefaceCollection.cs (12)
241throw new ArgumentException(SR.CompositeFont_DuplicateTypeface); 350throw new NotSupportedException(SR.General_ObjectIsReadOnly); 359throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FamilyTypeface))); 369throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 373throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface[]), elementType)); 376throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 379throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 435throw new InvalidOperationException(SR.Enumerator_VerifyContext);
System\Windows\Media\FontEmbeddingManager.cs (1)
87throw new ArgumentException(SR.GlyphTypefaceNotRecorded, nameof(glyphTypeface));
System\Windows\Media\FontFamily.cs (2)
71throw new ArgumentException(SR.UriNotAbsolute, nameof(baseUri)); 301throw new NotSupportedException(SR.FontFamily_ReadOnly);
System\Windows\Media\FontFamilyConverter.cs (2)
120throw new ArgumentException(SR.Format(SR.General_Expected_Type, "FontFamily"), nameof(value));
System\Windows\Media\Fonts.cs (5)
84throw new ArgumentException(SR.UriNotAbsolute, nameof(baseUri)); 92throw new ArgumentException(SR.InvalidAbsoluteUriInFontFamilyName, nameof(location)); 102throw new ArgumentNullException(nameof(baseUri), SR.Format(SR.NullBaseUriParam, "baseUri", "location")); 315throw new ArgumentException(SR.Collection_BadRank);
System\Windows\Media\FormattedText.cs (4)
1310throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.PropertyMustBeGreaterThanZero, "MaxTextHeight")); 1313throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.PropertyValueCannotBeNaN, "MaxTextHeight"));
System\Windows\Media\GeneralTransform.cs (2)
46throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media\Generated\BrushConverter.cs (3)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Brush"), nameof(context)); 137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\CacheModeConverter.cs (3)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "CacheMode"), nameof(context)); 137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\DoubleCollection.cs (9)
367throw new ArgumentException(SR.Collection_BadRank); 382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 455throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "double")); 815throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 833throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 867throw new InvalidOperationException(SR.Enumerator_NotStarted); 872throw new InvalidOperationException(SR.Enumerator_ReachedEnd);
System\Windows\Media\Generated\DrawingCollection.cs (14)
140throw new System.ArgumentException(SR.Collection_NoNull); 248throw new System.ArgumentException(SR.Collection_NoNull); 414throw new ArgumentException(SR.Collection_BadRank); 429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 518throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Drawing")); 544throw new System.ArgumentException(SR.Collection_NoNull); 832throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 850throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 884throw new InvalidOperationException(SR.Enumerator_NotStarted); 889throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 967throw new System.ArgumentException(SR.Collection_NoNull); 985throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeneralTransformCollection.cs (14)
128throw new System.ArgumentException(SR.Collection_NoNull); 236throw new System.ArgumentException(SR.Collection_NoNull); 402throw new ArgumentException(SR.Collection_BadRank); 417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 506throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform")); 532throw new System.ArgumentException(SR.Collection_NoNull); 797throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 815throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 849throw new InvalidOperationException(SR.Enumerator_NotStarted); 854throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 932throw new System.ArgumentException(SR.Collection_NoNull); 950throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeometryCollection.cs (14)
140throw new System.ArgumentException(SR.Collection_NoNull); 248throw new System.ArgumentException(SR.Collection_NoNull); 414throw new ArgumentException(SR.Collection_BadRank); 429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 518throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Geometry")); 544throw new System.ArgumentException(SR.Collection_NoNull); 832throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 850throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 884throw new InvalidOperationException(SR.Enumerator_NotStarted); 889throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 967throw new System.ArgumentException(SR.Collection_NoNull); 985throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeometryConverter.cs (3)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Geometry"), nameof(context)); 137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\GradientStopCollection.cs (14)
128throw new System.ArgumentException(SR.Collection_NoNull); 236throw new System.ArgumentException(SR.Collection_NoNull); 402throw new ArgumentException(SR.Collection_BadRank); 417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 506throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GradientStop")); 532throw new System.ArgumentException(SR.Collection_NoNull); 900throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 918throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 952throw new InvalidOperationException(SR.Enumerator_NotStarted); 957throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 1035throw new System.ArgumentException(SR.Collection_NoNull); 1053throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\Int32Collection.cs (9)
367throw new ArgumentException(SR.Collection_BadRank); 382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 455throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "int")); 815throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 833throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 867throw new InvalidOperationException(SR.Enumerator_NotStarted); 872throw new InvalidOperationException(SR.Enumerator_ReachedEnd);
System\Windows\Media\Generated\PathFigureCollection.cs (14)
129throw new System.ArgumentException(SR.Collection_NoNull); 237throw new System.ArgumentException(SR.Collection_NoNull); 403throw new ArgumentException(SR.Collection_BadRank); 418throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 507throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathFigure")); 533throw new System.ArgumentException(SR.Collection_NoNull); 887throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 905throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 939throw new InvalidOperationException(SR.Enumerator_NotStarted); 944throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 1022throw new System.ArgumentException(SR.Collection_NoNull); 1040throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (3)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "PathFigureCollection"), nameof(context)); 137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\PathSegmentCollection.cs (14)
128throw new System.ArgumentException(SR.Collection_NoNull); 236throw new System.ArgumentException(SR.Collection_NoNull); 402throw new ArgumentException(SR.Collection_BadRank); 417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 506throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathSegment")); 532throw new System.ArgumentException(SR.Collection_NoNull); 797throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 815throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 849throw new InvalidOperationException(SR.Enumerator_NotStarted); 854throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 932throw new System.ArgumentException(SR.Collection_NoNull); 950throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\PointCollection.cs (9)
367throw new ArgumentException(SR.Collection_BadRank); 382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 455throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point")); 817throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 835throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 869throw new InvalidOperationException(SR.Enumerator_NotStarted); 874throw new InvalidOperationException(SR.Enumerator_ReachedEnd);
System\Windows\Media\Generated\RenderDataDrawingContext.cs (1)
1347throw new InvalidOperationException(SR.DrawingContext_TooManyPops);
System\Windows\Media\Generated\TextEffectCollection.cs (14)
128throw new System.ArgumentException(SR.Collection_NoNull); 236throw new System.ArgumentException(SR.Collection_NoNull); 402throw new ArgumentException(SR.Collection_BadRank); 417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 506throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextEffect")); 532throw new System.ArgumentException(SR.Collection_NoNull); 797throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 815throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 849throw new InvalidOperationException(SR.Enumerator_NotStarted); 854throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 932throw new System.ArgumentException(SR.Collection_NoNull); 950throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\TransformCollection.cs (14)
140throw new System.ArgumentException(SR.Collection_NoNull); 248throw new System.ArgumentException(SR.Collection_NoNull); 414throw new ArgumentException(SR.Collection_BadRank); 429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 518throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform")); 544throw new System.ArgumentException(SR.Collection_NoNull); 832throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 850throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 884throw new InvalidOperationException(SR.Enumerator_NotStarted); 889throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 967throw new System.ArgumentException(SR.Collection_NoNull); 985throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\TransformConverter.cs (3)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Transform"), nameof(context)); 137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\VectorCollection.cs (9)
367throw new ArgumentException(SR.Collection_BadRank); 382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 455throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector")); 817throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 835throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 869throw new InvalidOperationException(SR.Enumerator_NotStarted); 874throw new InvalidOperationException(SR.Enumerator_ReachedEnd);
System\Windows\Media\GlyphRun.cs (24)
384throw new ArgumentException(SR.ClusterMapEntriesShouldNotDecrease, nameof(clusterMap)); 387throw new ArgumentException(SR.ClusterMapEntryShouldPointWithinGlyphIndices, nameof(clusterMap)); 393throw new ArgumentException(SR.ClusterMapFirstEntryMustBeZero, nameof(clusterMap)); 398throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, characters.Count), nameof(clusterMap)); 404throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, GlyphCount), nameof(clusterMap)); 411throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, CodepointCount + 1), nameof(caretStops)); 415throw new ArgumentException(SR.SidewaysRTLTextIsNotSupported); 433throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, nameof(glyphIndices)); 437throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, MaxGlyphCount), nameof(glyphIndices)); 443throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), nameof(advanceWidths)); 446throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), nameof(glyphOffsets)); 1084throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, nameof(value)); 1114throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, nameof(value)); 2291throw new InvalidOperationException(SR.OnlyOneInitialization); 2297throw new InvalidOperationException(SR.InInitialization); 2308throw new InvalidOperationException(SR.NotInInitialization); 2344throw new InvalidOperationException(SR.InitializationIncomplete); 2355throw new InvalidOperationException(SR.NotInInitialization);
System\Windows\Media\GlyphTypeface.cs (14)
116throw new ArgumentException(SR.UriNotAbsolute, nameof(typefaceSource)); 228throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, nameof(glyphs)); 231throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, ushort.MaxValue), nameof(glyphs)); 293throw new ArgumentException(SR.UriNotAbsolute, nameof(value)); 1061throw new ArgumentOutOfRangeException(nameof(glyphIndex), SR.Format(SR.GlyphIndexOutOfRange, glyphIndex)); 1650throw new InvalidOperationException(SR.OnlyOneInitialization); 1656throw new InvalidOperationException(SR.InInitialization); 1667throw new InvalidOperationException(SR.NotInInitialization); 1677throw new InvalidOperationException(SR.InitializationIncomplete); 1685throw new InvalidOperationException(SR.NotInInitialization); 1813throw new ArgumentException(SR.Collection_BadRank); 1898throw new ArgumentException(SR.Collection_BadRank);
System\Windows\Media\HostVisual.cs (1)
146SR.VisualTarget_AnotherTargetAlreadyConnected
System\Windows\Media\ImageSourceConverter.cs (3)
55throw new ArgumentException(SR.Format(SR.General_Expected_Type, "ImageSource"), nameof(context)); 197throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Imaging\BitmapDecoder.cs (6)
93throw new FileFormatException(bitmapUri, SR.Image_CantDealWithUri); 137throw new FileFormatException(null, SR.Image_CantDealWithStream); 979throw new System.InvalidOperationException(SR.Image_OriginalStreamReadOnly); 1525SR.Image_CantDealWithStream); 1544SR.Image_CantDealWithStream); 1552SR.Image_CantDealWithStream);
System\Windows\Media\Imaging\BitmapDownload.cs (1)
153throw new IOException(SR.Image_CannotCreateTempFile);
System\Windows\Media\Imaging\BitmapEncoder.cs (12)
76SR.Format(SR.Image_GuidEmpty, "containerFormat"), 134throw new InvalidOperationException(SR.Image_EncoderNoColorContext); 161throw new InvalidOperationException(SR.Image_EncoderNoGlobalThumbnail); 190throw new InvalidOperationException(SR.Image_MetadataNotCompatible); 195throw new InvalidOperationException(SR.Image_EncoderNoGlobalMetadata); 222throw new InvalidOperationException(SR.Image_EncoderNoPreview); 327throw new InvalidOperationException(SR.Image_OnlyOneSave); 332throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null)); 338throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null));
System\Windows\Media\Imaging\BitmapFrame.cs (2)
63throw new System.ArgumentException(SR.Image_NoDecodeFrames, nameof(uri)); 80throw new System.ArgumentException(SR.Image_NoDecodeFrames, nameof(stream));
System\Windows\Media\Imaging\BitmapImage.cs (4)
74throw new InvalidOperationException(SR.Format(SR.Image_NeitherArgument, "UriSource", "StreamSource")); 135throw new System.NotSupportedException(SR.Image_MetadataNotSupported); 368throw new System.ArgumentException(SR.Image_NoDecodeFrames);
System\Windows\Media\Imaging\BitmapInitialize.cs (12)
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\BitmapMetadata.cs (3)
1018throw new System.InvalidOperationException(SR.Image_MetadataReadOnly); 1135throw new System.InvalidOperationException(SR.Image_MetadataReadOnly); 1505throw new System.InvalidOperationException(SR.Image_MetadataInitializationIncomplete);
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (2)
126throw new InvalidOperationException(SR.Enumerator_NotStarted); 130throw new InvalidOperationException(SR.Enumerator_ReachedEnd);
System\Windows\Media\Imaging\BitmapPalette.cs (6)
37throw new InvalidOperationException(SR.Format(SR.Image_PaletteZeroColors, null)); 115throw new System.ArgumentException(SR.Format(SR.Image_PaletteFixedType, paletteType)); 306throw new InvalidOperationException(SR.Format(SR.Image_PaletteZeroColors, null));
System\Windows\Media\Imaging\BitmapSizeOptions.cs (1)
176throw new ArgumentException(SR.Image_SizeOptionsAngle, nameof(rotation));
System\Windows\Media\Imaging\BitmapSource.cs (2)
643throw new ArgumentException(SR.Collection_BadRank, nameof(pixels)); 662throw new ArgumentException(SR.Image_InvalidArrayForPixel);
System\Windows\Media\Imaging\BitmapVisualManager.cs (3)
32throw new ArgumentException(SR.Format(SR.Image_CantBeFrozen, null)); 69throw new ArgumentException(SR.Image_CantBeFrozen);
System\Windows\Media\Imaging\CachedBitmap.cs (5)
116throw new ArgumentException(SR.Collection_BadRank, nameof(pixels)); 130throw new ArgumentException(SR.Image_InvalidArrayForPixel); 344throw new InvalidOperationException(SR.Image_IndexedPixelFormatRequiresPalette); 349SR.Format(SR.Effect_PixelFormat, pixelFormat),
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (5)
138throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source")); 147throw new InvalidOperationException(SR.Color_NullColorContext); 156throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "DestinationColorContext"));
System\Windows\Media\Imaging\CroppedBitmap.cs (2)
154throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source"));
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (5)
37throw new ArgumentException(SR.Image_AlphaThresholdOutOfRange); 169throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source")); 179throw new InvalidOperationException(SR.Image_IndexedPixelFormatRequiresPalette); 187throw new InvalidOperationException(SR.Image_PaletteColorsDoNotMatchFormat);
System\Windows\Media\Imaging\InplaceBitmapMetadataWriter.cs (5)
133throw new InvalidOperationException(SR.Image_InplaceMetadataNoCopy); 141throw new InvalidOperationException(SR.Image_InplaceMetadataNoCopy); 149throw new InvalidOperationException(SR.Image_InplaceMetadataNoCopy); 157throw new InvalidOperationException(SR.Image_InplaceMetadataNoCopy); 165throw new InvalidOperationException(SR.Image_InplaceMetadataNoCopy);
System\Windows\Media\Imaging\PropVariant.cs (4)
105throw new InvalidOperationException(SR.Image_InsufficientBufferSize); 309throw new System.InvalidOperationException(SR.Image_PropertyNotSupported); 420throw new System.InvalidOperationException(SR.Image_PropertyNotSupported); 741throw new System.NotSupportedException(SR.Image_PropertyNotSupported);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
39SR.Format(SR.Effect_PixelFormat, pixelFormat),
System\Windows\Media\Imaging\TransformedBitmap.cs (8)
36throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Transform")); 41throw new InvalidOperationException(SR.Image_OnlyOrthogonal); 277throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source")); 287throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Transform")); 296throw new InvalidOperationException(SR.Image_OnlyOrthogonal);
System\Windows\Media\Imaging\WriteableBitmap.cs (11)
71throw new InvalidOperationException(SR.Image_IndexedPixelFormatRequiresPalette); 77throw new ArgumentException(SR.Effect_PixelFormat, nameof(pixelFormat)); 160throw new InvalidOperationException(SR.Image_MustBeLocked); 243throw new InvalidOperationException(SR.Image_LockCountLimit); 307throw new InvalidOperationException(SR.Image_MustBeLocked); 392throw new ArgumentException(SR.Image_InvalidArrayForPixel); 488throw new ArgumentException(SR.Image_InvalidArrayForPixel); 860throw new ArgumentException(SR.Image_InsufficientBufferSize, nameof(sourceBufferSize)); 1064throw new ArgumentException(SR.Image_InsufficientBuffer, nameof(sourceBuffer)); 1092throw new ArgumentException(SR.Image_InsufficientBuffer, nameof(sourceBuffer)); 1108throw new ArgumentException(SR.Collection_BadRank, backwardsCompat ? "pixels" : "sourceBuffer");
System\Windows\Media\MediaContext.cs (6)
403throw new InvalidOperationException(SR.MediaContext_NoBadShaderHandler); 426throw new System.OutOfMemoryException(SR.MediaContext_OutOfVideoMemory); 428throw new System.InvalidOperationException(SR.MediaContext_RenderThreadError); 1795throw new InvalidOperationException(SR.MediaContext_InfiniteTickLoop); 1934throw new InvalidOperationException(SR.MediaContext_InfiniteLayoutLoop); 2304throw new InvalidOperationException(SR.MediaContext_APINotAllowed);
System\Windows\Media\MediaPlayer.cs (1)
801throw new System.NotSupportedException(SR.Media_UnknownChannelType);
System\Windows\Media\MediaPlayerState.cs (4)
818_mediaEventsHelper.RaiseMediaFailed(new System.NotSupportedException(SR.Format(SR.Media_PackURIsAreNotSupported, null))); 966throw new System.NotSupportedException(SR.Image_BadVersion); 980throw new InvalidOperationException(SR.Media_NotAllowedWhileTimingEngineInControl);
System\Windows\Media\MediaSystem.cs (2)
189throw new System.InvalidOperationException(SR.MediaSystem_OutOfOrderConnectOrDisconnect); 279throw new ArgumentException(SR.MediaSystem_ApiInvalidContext);
System\Windows\Media\MediaTimeline.cs (2)
125throw new InvalidOperationException(SR.Media_UriNotSpecified); 246throw new InvalidOperationException(SR.Media_UriNotSpecified);
System\Windows\Media\Parsers.cs (10)
35throw new FormatException(SR.Parsers_IllegalToken); 87throw new FormatException(SR.Parsers_IllegalToken); 95throw new FormatException(SR.Parsers_IllegalToken); 133throw new FormatException(SR.Parsers_IllegalToken); 143throw new FormatException(SR.Parsers_IllegalToken); 164throw new FormatException(SR.Parsers_IllegalToken); 204throw new FormatException(SR.Parsers_IllegalToken); 226throw new FormatException(SR.Parsers_IllegalToken); 249throw new FormatException(SR.Parser_Empty); 282throw new FormatException(SR.Parsers_IllegalToken);
System\Windows\Media\ParsersCommon.cs (5)
138throw new FormatException(SR.Parsers_IllegalToken); 195throw new System.FormatException(SR.Format(SR.Parser_UnexpectedToken, _pathString, _curIndex - 1)); 434throw new System.FormatException(SR.Format(SR.Parser_UnexpectedToken, _pathString, start), except);
System\Windows\Media\PathFigure.cs (1)
74throw new InvalidOperationException(SR.PathGeometry_InternalReadBackError);
System\Windows\Media\PathGeometry.cs (3)
460throw new System.InvalidOperationException(SR.PathGeometry_InternalReadBackError); 491throw new System.InvalidOperationException(SR.PathGeometry_InternalReadBackError); 524throw new System.InvalidOperationException(SR.PathGeometry_InternalReadBackError);
System\Windows\Media\PixelFormat.cs (5)
223_ => throw new ArgumentException(SR.Format(SR.Image_BadPixelFormat, pixelFormatString), nameof(pixelFormatString)), 259_ => throw new ArgumentException(SR.Format(SR.Image_BadPixelFormat, format), nameof(format)) 405throw new NotSupportedException(SR.Image_NoPixelFormatFound);
System\Windows\Media\PixelFormatConverter.cs (2)
78throw new ArgumentException(SR.Format(SR.General_Expected_Type, nameof(PixelFormat)));
System\Windows\Media\RequestCachePolicyConverter.cs (2)
72throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value));
System\Windows\Media\SolidColorBrush.cs (1)
155throw new Exception(SR.BrushUnknownBamlType);
System\Windows\Media\StreamAsIStream.cs (1)
501throw new System.ObjectDisposedException(SR.Media_StreamClosed);
System\Windows\Media\textformatting\NumberSubstitution.cs (1)
83throw new ArgumentException(SR.SpecificNumberCultureRequired);
System\Windows\Media\textformatting\TextFormatter.cs (1)
122throw new ArgumentException(SR.CurrentDispatcherNotFound);
System\Windows\Media\textformatting\TextFormatterContext.cs (8)
121ThrowExceptionFromLsError(SR.Format(SR.CreateContextFailure, lserr), lserr); 261ThrowExceptionFromLsError(SR.Format(SR.SetBreakingFailure, lserr), lserr); 363ThrowExceptionFromLsError(SR.Format(SR.SetDocFailure, lserr), lserr); 383ThrowExceptionFromLsError(SR.Format(SR.SetTabsFailure, lserr), lserr);
System\Windows\Media\textformatting\TextLineBreak.cs (2)
77TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CloneBreakRecordFailure, lserr), lserr);
System\Windows\Media\textformatting\TextParagraphCache.cs (4)
76throw new InvalidOperationException(SR.Format(SR.CreateParaBreakingSessionFailure, lserr), callbackException); 81TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateParaBreakingSessionFailure, lserr), lserr);
System\Windows\Media\textformatting\TextSimpleMarkerProperties.cs (2)
48throw new ArgumentException(SR.Format(SR.Enum_Invalid, typeof(TextMarkerStyle)), nameof(style));
System\Windows\Media\Visual.cs (16)
2514throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 2579throw new ArgumentException(SR.Visual_HasParent); 2648throw new ArgumentException(SR.Visual_NotChild); 2733throw new InvalidOperationException(SR.Format(SR.LayoutManager_DeepRecursion, TreeLevelLimit)); 2878throw new Exception(SR.Effect_CombinedLegacyAndNew); 3010throw new Exception(SR.Effect_CombinedLegacyAndNew); 3107throw new Exception(SR.Effect_CombinedLegacyAndNew); 4364throw new System.InvalidOperationException(SR.Visual_NoCommonAncestor); 4573throw new System.InvalidOperationException(inverse ? SR.Visual_NotADescendant : SR.Visual_NotAnAncestor); 4666throw new System.InvalidOperationException(SR.Visual_NotAnAncestor); 4723throw new InvalidOperationException(SR.Visual_NoPresentationSource); 4730throw new InvalidOperationException(SR.Visual_CannotTransformPoint); 4752throw new InvalidOperationException(SR.Visual_NoPresentationSource); 4763throw new InvalidOperationException(SR.Visual_CannotTransformPoint);
System\Windows\Media\VisualCollection.cs (13)
98throw new InvalidOperationException(SR.VisualCollection_ReadOnly); 174throw new ArgumentException(SR.Collection_BadRank); 246throw new ArgumentOutOfRangeException(nameof(value), SR.VisualCollection_NotEnoughCapacity); 337throw new System.ArgumentException(SR.VisualCollection_EntryInUse); 342throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 375throw new InvalidOperationException(SR.CannotModifyVisualChildrenDuringTreeWalk); 415throw new InvalidOperationException(SR.CannotModifyVisualChildrenDuringTreeWalk); 443throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 687throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 920throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 947throw new InvalidOperationException(SR.Enumerator_NotStarted); 953throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 970throw new InvalidOperationException(SR.Enumerator_CollectionChanged);
System\Windows\Media3D\GeneralTransform2DTo3D.cs (2)
98throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media3D\GeneralTransform3D.cs (2)
52throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media3D\GeneralTransform3DTo2D.cs (2)
63throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (14)
126throw new System.ArgumentException(SR.Collection_NoNull); 234throw new System.ArgumentException(SR.Collection_NoNull); 400throw new ArgumentException(SR.Collection_BadRank); 415throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 504throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform3D")); 530throw new System.ArgumentException(SR.Collection_NoNull); 795throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 813throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 847throw new InvalidOperationException(SR.Enumerator_NotStarted); 852throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 930throw new System.ArgumentException(SR.Collection_NoNull); 948throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\MaterialCollection.cs (14)
138throw new System.ArgumentException(SR.Collection_NoNull); 246throw new System.ArgumentException(SR.Collection_NoNull); 412throw new ArgumentException(SR.Collection_BadRank); 427throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 516throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Material")); 542throw new System.ArgumentException(SR.Collection_NoNull); 830throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 848throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 882throw new InvalidOperationException(SR.Enumerator_NotStarted); 887throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 965throw new System.ArgumentException(SR.Collection_NoNull); 983throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Model3DCollection.cs (14)
138throw new System.ArgumentException(SR.Collection_NoNull); 246throw new System.ArgumentException(SR.Collection_NoNull); 412throw new ArgumentException(SR.Collection_BadRank); 427throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 516throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Model3D")); 542throw new System.ArgumentException(SR.Collection_NoNull); 830throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 848throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 882throw new InvalidOperationException(SR.Enumerator_NotStarted); 887throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 965throw new System.ArgumentException(SR.Collection_NoNull); 983throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Point3DCollection.cs (9)
365throw new ArgumentException(SR.Collection_BadRank); 380throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 453throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point3D")); 816throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 834throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 868throw new InvalidOperationException(SR.Enumerator_NotStarted); 873throw new InvalidOperationException(SR.Enumerator_ReachedEnd);
System\Windows\Media3D\Generated\Transform3DCollection.cs (14)
138throw new System.ArgumentException(SR.Collection_NoNull); 246throw new System.ArgumentException(SR.Collection_NoNull); 412throw new ArgumentException(SR.Collection_BadRank); 427throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 516throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform3D")); 542throw new System.ArgumentException(SR.Collection_NoNull); 830throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 848throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 882throw new InvalidOperationException(SR.Enumerator_NotStarted); 887throw new InvalidOperationException(SR.Enumerator_ReachedEnd); 965throw new System.ArgumentException(SR.Collection_NoNull); 983throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Vector3DCollection.cs (9)
365throw new ArgumentException(SR.Collection_BadRank); 380throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 453throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector3D")); 816throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 834throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 868throw new InvalidOperationException(SR.Enumerator_NotStarted); 873throw new InvalidOperationException(SR.Enumerator_ReachedEnd);
System\Windows\Media3D\Generated\Visual3D.cs (14)
70throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp)); 76throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), nameof(clock)); 81throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 86throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 135throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), nameof(dp)); 141throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), nameof(animation)); 146throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 151throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Media3D\Matrix3D.cs (2)
651throw new InvalidOperationException(SR.Format(SR.Matrix3D_NotInvertible, null));
System\Windows\Media3D\MatrixCamera.cs (1)
103throw new NotSupportedException(SR.HitTest_Singular);
System\Windows\Media3D\ModelVisual3D.cs (4)
79throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, nameof(Visual3D))); 92throw new System.InvalidOperationException(SR.Format(SR.AddText_Invalid, this.GetType().Name));
System\Windows\Media3D\Quaternion.cs (1)
72throw new System.InvalidOperationException(SR.Quaternion_ZeroAxisSpecified);
System\Windows\Media3D\Rect3D.cs (13)
58throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 143throw new System.InvalidOperationException(SR.Rect3D_CannotModifyEmptyRect); 174throw new System.InvalidOperationException(SR.Rect3D_CannotModifyEmptyRect); 197throw new System.InvalidOperationException(SR.Rect3D_CannotModifyEmptyRect); 202throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 222throw new System.InvalidOperationException(SR.Rect3D_CannotModifyEmptyRect); 227throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 247throw new System.InvalidOperationException(SR.Rect3D_CannotModifyEmptyRect); 252throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 272throw new System.InvalidOperationException(SR.Rect3D_CannotModifyEmptyRect); 292throw new System.InvalidOperationException(SR.Rect3D_CannotModifyEmptyRect); 312throw new System.InvalidOperationException(SR.Rect3D_CannotModifyEmptyRect); 521throw new System.InvalidOperationException(SR.Rect3D_CannotCallMethod);
System\Windows\Media3D\Size3D.cs (7)
24throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 80throw new System.InvalidOperationException(SR.Size3D_CannotModifyEmptySize); 85throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 105throw new System.InvalidOperationException(SR.Size3D_CannotModifyEmptySize); 110throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 131throw new System.InvalidOperationException(SR.Size3D_CannotModifyEmptySize); 136throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative);
System\Windows\Media3D\Viewport2DVisual3D.cs (6)
364throw new ArgumentException(SR.Visual_HasParent); 395throw new ArgumentException(SR.Visual_NotChild); 504throw new ArgumentException(SR.Viewport2DVisual3D_MaterialGroupIsInteractiveMaterial, nameof(material)); 528throw new ArgumentException(SR.Viewport2DVisual3D_MultipleInteractiveMaterials, nameof(material)); 829throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 861throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Media3D\Viewport3DVisual.cs (4)
322throw new InvalidOperationException(SR.CannotModifyVisualChildrenDuringTreeWalk); 370throw new InvalidOperationException(SR.CannotModifyVisualChildrenDuringTreeWalk); 495throw new NotSupportedException(SR.Format(SR.HitTest_Invalid, nameof(GeometryHitTestParameters), this.GetType().Name));
System\Windows\Media3D\Visual3D.cs (5)
230throw new InvalidOperationException(SR.CannotModifyVisualChildrenDuringTreeWalk); 281throw new InvalidOperationException(SR.CannotModifyVisualChildrenDuringTreeWalk); 989throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 1729throw new System.InvalidOperationException(inverse ? SR.Visual_NotADescendant : SR.Visual_NotAnAncestor);
System\Windows\Media3D\Visual3DCollection.cs (10)
159throw new ArgumentException(SR.Collection_BadRank); 174throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, "Visual3DCollection"), e); 450throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Visual3D")); 460throw new System.ArgumentException(SR.Collection_NoNull); 467throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 618throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 638throw new InvalidOperationException(SR.Enumerator_CollectionChanged); 670throw new InvalidOperationException(SR.Enumerator_VerifyContext);
System\Windows\Navigation\BaseUriHelper.cs (5)
274throw new UriFormatException(SR.WrongFirstSegment); 295throw new UriFormatException(SR.WrongFirstSegment); 306throw new UriFormatException(SR.WrongFirstSegment); 371throw new InvalidOperationException(SR.Format(SR.CannotNavigateToApplicationResourcesInWebBrowser, packUri));
System\Windows\OleServicesContext.cs (7)
91throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA); 114throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA); 127throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA); 143throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA); 152throw new SystemException(SR.Format(SR.OleServicesContext_oleInitializeFailure, hr)); 174throw new ThreadStateException(SR.OleServicesContext_ThreadMustBeSTA);
System\Windows\PresentationSource.cs (10)
119throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, element.GetType()), nameof(element)); 163throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, o.GetType())); 185throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, e.GetType()), nameof(e)); 244throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, o.GetType())); 699throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, doTarget.GetType()));
System\Windows\QueryContinueDragEventArgs.cs (2)
81throw new ArgumentException(SR.Format(SR.DragDrop_DragActionInvalid, "value"));
System\Windows\RoutedEventArgs.cs (5)
90throw new InvalidOperationException(SR.RoutedEventCannotChangeWhileRouting); 130throw new InvalidOperationException(SR.RoutedEventArgsMustHaveRoutedEvent); 182throw new InvalidOperationException(SR.RoutedEventCannotChangeWhileRouting); 186throw new InvalidOperationException(SR.RoutedEventArgsMustHaveRoutedEvent); 280throw new InvalidOperationException(SR.RoutedEventArgsMustHaveRoutedEvent);
System\Windows\TextDecorationCollectionConverter.cs (4)
59throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(input)); 118throw new ArgumentException(SR.Format(SR.InvalidTextDecorationCollectionString, text));
System\Windows\UIElement.cs (21)
579throw new InvalidOperationException(SR.UIElement_Layout_NaNMeasure); 672throw new InvalidOperationException(SR.Format(SR.UIElement_Layout_PositiveInfinityReturned, this.GetType().FullName)); 676throw new InvalidOperationException(SR.Format(SR.UIElement_Layout_NaNReturned, this.GetType().FullName)); 800SR.Format( 801SR.UIElement_Layout_InfinityArrange, 1644throw new ArgumentException(SR.SourceNotSet); 1649throw new ArgumentException(SR.Mismatched_RoutedEvent); 1707throw new InvalidOperationException(SR.TreeLoop); 1901throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType())); 1937throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType())); 4312[CustomCategory(nameof(SR.Touch_Category))] 4366[CustomCategory(nameof(SR.Touch_Category))] 4391[CustomCategory(nameof(SR.Touch_Category))] 4416[CustomCategory(nameof(SR.Touch_Category))] 4441[CustomCategory(nameof(SR.Touch_Category))] 4466[CustomCategory(nameof(SR.Touch_Category))] 4491[CustomCategory(nameof(SR.Touch_Category))]
System\Windows\UIPropertyMetadata.cs (1)
106throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse);