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\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\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\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);
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);
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\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\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\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\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\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\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\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\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\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\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\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\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\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\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()));