MS\Internal\FontCache\FontCacheUtil.cs (19)
518throw new ArgumentException(SR.FaceIndexMustBePositiveOrZero, "fontUri");
771throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, fileName), fileName);
774throw new DirectoryNotFoundException(SR.Format(SR.DirectoryNotFoundExceptionWithFileName, fileName));
777throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccessExceptionWithFileName, fileName));
780throw new PathTooLongException(SR.Format(SR.PathTooLongExceptionWithFileName, fileName));
783throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), NativeMethods.MakeHRFromErrorCode(errorCode));
799return new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), e);
865throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
881throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
885throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
MS\Internal\FontFace\CompositeFontParser.cs (25)
28using SR=MS.Internal.PresentationCore.SR;
38throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName));
54throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName));
62throw new ArgumentException(SR.Format(SR.PropertyMustBeGreaterThanZero, propertyName));
70throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName));
78throw new ArgumentException(SR.Format(SR.PropertyCannotBeNegative, propertyName));
873Fail(SR.Format(SR.CompositeFontMissingElement, FamilyMapElement));
876Fail(SR.Format(SR.CompositeFontMissingElement, StringElement));
892Fail(SR.Format(
893SR.CompositeFontAttributeValue1,
902Fail(SR.Format(
903SR.CompositeFontAttributeValue2,
914Fail(SR.Format(
915SR.CompositeFontUnknownElement,
925Fail(SR.Format(
926SR.CompositeFontUnknownAttribute,
937Fail(SR.Format(SR.CompositeFontMissingAttribute, name));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (34)
22using SR=MS.Internal.PresentationCore.SR;
307throw new InvalidOperationException(SR.InvalidEpInIsf);
428throw new InvalidOperationException(SR.EmptyDataToLoad);
437throw new ArgumentException(SR.InvalidSizeSpecified, "cbSize");
454throw new ArgumentException(SR.InvalidSizeSpecified, "cbSize");
703throw new InvalidOperationException(SR.InvalidEpInIsf);
790throw new ArgumentException(SR.InvalidGuid);
797throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(System.Windows.Media.Color)), "value");
805throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(int)), "value");
813throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(DrawingFlags)), "value");
824throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(StylusTip), typeof(int)), "value");
828throw new ArgumentException(SR.Format(SR.InvalidValueOfType, value, typeof(StylusTip)), "value");
839throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(String), typeof(Matrix)), "value");
846throw new ArgumentException(SR.MatrixNotInvertible, "value");
850throw new ArgumentException(SR.InvalidMatrixContainsNaN, "value");
854throw new ArgumentException(SR.InvalidMatrixContainsInfinity, "value");
862throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(bool)), "value");
869throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(double)), "value");
878throw new ArgumentOutOfRangeException("value", SR.InvalidDrawingAttributesHeight);
885throw new ArgumentOutOfRangeException("value", SR.InvalidDrawingAttributesWidth);
893throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte)), "value");
906throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte[])), "value");
966throw new ArgumentException(SR.InvalidDataInISF, ex);
971throw new ArgumentException(SR.InvalidDataInISF, ex);
MS\Internal\TextFormatting\FullTextLine.cs (22)
25using SR = MS.Internal.PresentationCore.SR;
322TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr);
553throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
641TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr);
714throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
828throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
852throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
985throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
1145throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
1238throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
1498throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
2067throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
2127throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
2172TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.EnumLineFailure, lserr), lserr);
2191throw new ObjectDisposedException(SR.TextLineHasBeenDisposed);
2477TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr);
2534TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (60)
13using SR=MS.Internal.PresentationCore.SR;
806return new System.InvalidOperationException(SR.Image_WrongState, exceptionForHR);
810return new System.OverflowException(SR.Image_Overflow, exceptionForHR);
813return new System.IO.FileFormatException(null, SR.Image_UnknownFormat, exceptionForHR);
816return new System.IO.FileLoadException(SR.MilErr_UnsupportedVersion, exceptionForHR);
819return new System.InvalidOperationException(SR.WIC_NotInitialized, exceptionForHR);
822return new System.ArgumentException(SR.Image_PropertyNotFound, exceptionForHR);
825return new System.NotSupportedException(SR.Image_PropertyNotSupported, exceptionForHR);
828return new System.ArgumentException(SR.Image_PropertySize, exceptionForHR);
831return new System.InvalidOperationException(SR.Image_CodecPresent, exceptionForHR);
834return new System.NotSupportedException(SR.Image_NoThumbnail, exceptionForHR);
837return new System.InvalidOperationException(SR.Image_NoPalette, exceptionForHR);
840return new System.ArgumentException(SR.Image_TooManyScanlines, exceptionForHR);
843return new System.InvalidOperationException(SR.Image_InternalError, exceptionForHR);
846return new System.ArgumentException(SR.Image_BadDimensions, exceptionForHR);
850return new System.NotSupportedException(SR.Image_ComponentNotFound, exceptionForHR);
854return new System.IO.FileFormatException(null, SR.Image_DecoderError, exceptionForHR);
857return new System.IO.FileFormatException(null, SR.Image_HeaderError, exceptionForHR);
860return new System.ArgumentException(SR.Image_FrameMissing, exceptionForHR);
863return new System.ArgumentException(SR.Image_BadMetadataHeader, exceptionForHR);
866return new System.ArgumentException(SR.Image_BadStreamData, exceptionForHR);
869return new System.InvalidOperationException(SR.Image_StreamWrite, exceptionForHR);
872return new System.NotSupportedException(SR.Image_UnsupportedPixelFormat, exceptionForHR);
875return new System.NotSupportedException(SR.Image_UnsupportedOperation, exceptionForHR);
878return new System.ArgumentException(SR.Image_SizeOutOfRange, exceptionForHR);
881return new System.IO.IOException(SR.Image_StreamRead, exceptionForHR);
884return new System.IO.IOException(SR.Image_InvalidQueryRequest, exceptionForHR);
887return new System.IO.FileFormatException(null, SR.Image_UnexpectedMetadataType, exceptionForHR);
890return new System.IO.FileFormatException(null, SR.Image_RequestOnlyValidAtMetadataRoot, exceptionForHR);
893return new System.IO.IOException(SR.Image_InvalidQueryCharacter, exceptionForHR);
896return new System.IO.FileFormatException(null, SR.Image_DuplicateMetadataPresent, exceptionForHR);
899return new System.IO.FileFormatException(null, SR.Image_PropertyUnexpectedType, exceptionForHR);
902return new System.IO.FileFormatException(null, SR.Image_TooMuchMetadata, exceptionForHR);
905return new System.NotSupportedException(SR.Image_StreamNotAvailable, exceptionForHR);
908return new System.ArgumentException(SR.Image_InsufficientBuffer, exceptionForHR);
911return new System.ArgumentException(SR.Format(SR.Media_InvalidArgument, null), exceptionForHR);
914return new System.IO.FileFormatException(null, SR.Image_InvalidColorContext, exceptionForHR);
917return new System.InvalidOperationException(SR.Image_DisplayStateInvalid, exceptionForHR);
920return new System.ArithmeticException(SR.Image_SingularMatrix, exceptionForHR);
923return new System.Windows.Media.InvalidWmpVersionException(SR.Format(SR.Media_InvalidWmpVersion, null), exceptionForHR);
926return new System.NotSupportedException(SR.Format(SR.Media_InsufficientVideoResources, null), exceptionForHR);
929return new System.NotSupportedException(SR.Format(SR.Media_HardwareVideoAccelerationNotAvailable, null), exceptionForHR);
932return new System.NotSupportedException(SR.Format(SR.Media_PlayerIsClosed, null), exceptionForHR);
935return new System.IO.FileNotFoundException(SR.Format(SR.Media_DownloadFailed, null), exceptionForHR);
938return new System.Security.SecurityException(SR.Media_LogonFailure, exceptionForHR);
941return new System.IO.FileNotFoundException(SR.Media_FileNotFound, exceptionForHR);
945return new System.IO.FileFormatException(SR.Media_FileFormatNotSupported, exceptionForHR);
948return new System.IO.FileFormatException(SR.Media_PlaylistFormatNotSupported, exceptionForHR);
951return new System.ArithmeticException(SR.Geometry_BadNumber, exceptionForHR);
954return new System.ArgumentException(SR.D3DImage_InvalidUsage, exceptionForHR);
956return new System.ArgumentException(SR.D3DImage_SurfaceTooBig, exceptionForHR);
958return new System.ArgumentException(SR.D3DImage_InvalidPool, exceptionForHR);
960return new System.ArgumentException(SR.D3DImage_InvalidDevice, exceptionForHR);
962return new System.ArgumentException(SR.D3DImage_AARequires9Ex, exceptionForHR);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (13)
13using SR=MS.Internal.PresentationCore.SR;
67throw new ArgumentOutOfRangeException("bufferLengthInBits", SR.InvalidBufferLength);
81throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
110throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
138throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
168throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
196throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
241throw new System.IO.EndOfStreamException(SR.EndOfStreamReached);
247throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
252throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsGreatThanRemainingBits);
381throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
420throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
449throw new ArgumentOutOfRangeException("countOfBits", countOfBits, SR.CountOfBitsOutOfRange);
System\Windows\Generated\ContentElement.cs (26)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
88throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
94throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
99throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
156throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
161throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
166throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
538throw new ArgumentException(SR.HandlerTypeIllegal);
593throw new ArgumentException(SR.HandlerTypeIllegal);
2062[CustomCategory(nameof(SR.Touch_Category))]
2082[CustomCategory(nameof(SR.Touch_Category))]
2102[CustomCategory(nameof(SR.Touch_Category))]
2122[CustomCategory(nameof(SR.Touch_Category))]
2142[CustomCategory(nameof(SR.Touch_Category))]
2162[CustomCategory(nameof(SR.Touch_Category))]
2182[CustomCategory(nameof(SR.Touch_Category))]
2202[CustomCategory(nameof(SR.Touch_Category))]
2222[CustomCategory(nameof(SR.Touch_Category))]
2242[CustomCategory(nameof(SR.Touch_Category))]
System\Windows\Generated\UIElement.cs (26)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
88throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
94throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
99throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
156throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
161throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
166throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
538throw new ArgumentException(SR.HandlerTypeIllegal);
593throw new ArgumentException(SR.HandlerTypeIllegal);
4015[CustomCategory(nameof(SR.Touch_Category))]
4035[CustomCategory(nameof(SR.Touch_Category))]
4055[CustomCategory(nameof(SR.Touch_Category))]
4075[CustomCategory(nameof(SR.Touch_Category))]
4095[CustomCategory(nameof(SR.Touch_Category))]
4115[CustomCategory(nameof(SR.Touch_Category))]
4135[CustomCategory(nameof(SR.Touch_Category))]
4155[CustomCategory(nameof(SR.Touch_Category))]
4175[CustomCategory(nameof(SR.Touch_Category))]
4195[CustomCategory(nameof(SR.Touch_Category))]
System\Windows\Ink\StrokeCollection.cs (20)
23using SR = MS.Internal.PresentationCore.SR;
60throw new ArgumentException(SR.StrokeIsDuplicated, "strokes");
73throw new ArgumentException(SR.Image_StreamRead, "stream");
79throw new ArgumentException(SR.Invalid_isfData_Length, "stream");
97throw new ArgumentException(SR.Image_StreamWrite, "stream");
198throw new ArgumentException(SR.InvalidGuid, "propertyDataId");
236throw new ArgumentException(SR.MatrixNotInvertible, "transformMatrix");
328throw new ArgumentException(SR.StrokeIsDuplicated, "stroke");
346throw new ArgumentException(SR.StrokeIsDuplicated, "stroke");
402ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, "strokes");
446throw new ArgumentException(SR.StrokeIsDuplicated, "strokes");
467throw new ArgumentNullException(SR.EmptyScToReplace);
484throw new ArgumentNullException(SR.EmptyScToReplace);
488throw new ArgumentNullException(SR.EmptyScToReplaceWith);
494ArgumentException ae = new ArgumentException(SR.EmptyScToReplace, "strokesToReplace");
507ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, "strokesToReplace");
523throw new ArgumentException(SR.StrokeIsDuplicated, "strokesToReplaceWith");
636throw new ArgumentNullException("e", SR.EventArgIsNull);
693throw new ArgumentNullException("e", SR.EventArgIsNull);
877throw new NotSupportedException(SR.StrokeCollectionIsReadOnly);
System\Windows\Input\Command\ApplicationCommands.cs (44)
23using SR=MS.Internal.PresentationCore.SR;
277case CommandId.Cut: uiText = SR.CutText; break;
278case CommandId.Copy: uiText = SR.CopyText;break;
279case CommandId.Paste: uiText = SR.PasteText;break;
280case CommandId.Undo: uiText = SR.UndoText;break;
281case CommandId.Redo: uiText = SR.RedoText; break;
282case CommandId.Delete: uiText = SR.DeleteText; break;
283case CommandId.Find: uiText = SR.FindText; break;
284case CommandId.Replace: uiText = SR.ReplaceText; break;
285case CommandId.SelectAll: uiText = SR.SelectAllText; break;
286case CommandId.Help: uiText = SR.HelpText; break;
287case CommandId.New: uiText = SR.NewText; break;
288case CommandId.Open: uiText = SR.OpenText; break;
289case CommandId.Save: uiText = SR.SaveText; break;
290case CommandId.SaveAs: uiText = SR.SaveAsText; break;
291case CommandId.Print: uiText = SR.PrintText; break;
292case CommandId.CancelPrint: uiText = SR.CancelPrintText; break;
293case CommandId.PrintPreview: uiText = SR.PrintPreviewText; break;
294case CommandId.Close: uiText = SR.CloseText; break;
295case CommandId.ContextMenu: uiText = SR.ContextMenuText; break;
296case CommandId.CorrectionList: uiText = SR.CorrectionListText; break;
297case CommandId.Properties: uiText = SR.PropertiesText; break;
298case CommandId.Stop: uiText = SR.StopText; break;
299case CommandId.NotACommand: uiText = SR.NotACommandText; break;
315SR.CutKeyDisplayString,
321SR.CopyKeyDisplayString,
327SR.PasteKeyDisplayString,
333SR.UndoKeyDisplayString,
339SR.RedoKeyDisplayString,
345SR.DeleteKeyDisplayString,
351SR.FindKeyDisplayString,
357SR.ReplaceKeyDisplayString,
363SR.SelectAllKeyDisplayString,
369SR.HelpKeyDisplayString,
375SR.NewKeyDisplayString,
381SR.OpenKeyDisplayString,
387SR.SaveKeyDisplayString,
395SR.PrintKeyDisplayString,
403SR.PrintPreviewKeyDisplayString,
411SR.ContextMenuKeyDisplayString,
416SR.CorrectionListKey,
417SR.CorrectionListKeyDisplayString,
423SR.PropertiesKeyDisplayString,
429SR.StopKeyDisplayString,
System\Windows\Input\Command\ComponentCommands.cs (58)
21using SR=MS.Internal.PresentationCore.SR;
306case CommandId.ScrollPageUp: uiText = SR.ScrollPageUpText; break;
307case CommandId.ScrollPageDown: uiText = SR.ScrollPageDownText; break;
308case CommandId.ScrollPageLeft: uiText = SR.ScrollPageLeftText; break;
309case CommandId.ScrollPageRight: uiText = SR.ScrollPageRightText; break;
310case CommandId.ScrollByLine: uiText = SR.ScrollByLineText; break;
311case CommandId.MoveLeft:uiText = SR.MoveLeftText;break;
312case CommandId.MoveRight:uiText = SR.MoveRightText;break;
313case CommandId.MoveUp: uiText = SR.MoveUpText; break;
314case CommandId.MoveDown: uiText = SR.MoveDownText; break;
315case CommandId.ExtendSelectionUp: uiText = SR.ExtendSelectionUpText; break;
316case CommandId.ExtendSelectionDown: uiText = SR.ExtendSelectionDownText; break;
317case CommandId.ExtendSelectionLeft: uiText = SR.ExtendSelectionLeftText; break;
318case CommandId.ExtendSelectionRight: uiText = SR.ExtendSelectionRightText; break;
319case CommandId.MoveToHome: uiText = SR.MoveToHomeText; break;
320case CommandId.MoveToEnd: uiText = SR.MoveToEndText; break;
321case CommandId.MoveToPageUp: uiText = SR.MoveToPageUpText; break;
322case CommandId.MoveToPageDown: uiText = SR.MoveToPageDownText; break;
323case CommandId.SelectToHome: uiText = SR.SelectToHomeText; break;
324case CommandId.SelectToEnd: uiText = SR.SelectToEndText; break;
325case CommandId.SelectToPageDown: uiText = SR.SelectToPageDownText; break;
326case CommandId.SelectToPageUp: uiText = SR.SelectToPageUpText; break;
327case CommandId.MoveFocusUp: uiText = SR.MoveFocusUpText; break;
328case CommandId.MoveFocusDown: uiText = SR.MoveFocusDownText; break;
329case CommandId.MoveFocusBack: uiText = SR.MoveFocusBackText; break;
330case CommandId.MoveFocusForward: uiText = SR.MoveFocusForwardText; break;
331case CommandId.MoveFocusPageUp: uiText = SR.MoveFocusPageUpText; break;
332case CommandId.MoveFocusPageDown: uiText = SR.MoveFocusPageDownText; break;
348SR.ScrollPageUpKeyDisplayString,
354SR.ScrollPageDownKeyDisplayString,
359SR.ScrollPageLeftKey,
360SR.ScrollPageLeftKeyDisplayString,
365SR.ScrollPageRightKey,
366SR.ScrollPageRightKeyDisplayString,
371SR.ScrollByLineKey,
372SR.ScrollByLineKeyDisplayString,
378SR.MoveLeftKeyDisplayString,
384SR.MoveRightKeyDisplayString,
390SR.MoveUpKeyDisplayString,
396SR.MoveDownKeyDisplayString,
402SR.ExtendSelectionUpKeyDisplayString,
408SR.ExtendSelectionDownKeyDisplayString,
414SR.ExtendSelectionLeftKeyDisplayString,
420SR.ExtendSelectionRightKeyDisplayString,
426SR.MoveToHomeKeyDisplayString,
432SR.MoveToEndKeyDisplayString,
438SR.MoveToPageUpKeyDisplayString,
444SR.MoveToPageDownKeyDisplayString,
450SR.SelectToHomeKeyDisplayString,
456SR.SelectToEndKeyDisplayString,
462SR.SelectToPageDownKeyDisplayString,
468SR.SelectToPageUpKeyDisplayString,
474SR.MoveFocusUpKeyDisplayString,
480SR.MoveFocusDownKeyDisplayString,
486SR.MoveFocusBackKeyDisplayString,
492SR.MoveFocusForwardKeyDisplayString,
498SR.MoveFocusPageUpKeyDisplayString,
504SR.MoveFocusPageDownKeyDisplayString,
System\Windows\Input\Command\MediaCommands.cs (73)
21using SR=MS.Internal.PresentationCore.SR;
267case CommandId.Play: uiText = SR.MediaPlayText; break;
268case CommandId.Pause: uiText = SR.MediaPauseText; break;
269case CommandId.Stop: uiText = SR.MediaStopText; break;
270case CommandId.Record: uiText = SR.MediaRecordText; break;
271case CommandId.NextTrack: uiText = SR.MediaNextTrackText; break;
272case CommandId.PreviousTrack: uiText = SR.MediaPreviousTrackText; break;
273case CommandId.FastForward: uiText = SR.MediaFastForwardText; break;
274case CommandId.Rewind: uiText = SR.MediaRewindText; break;
275case CommandId.ChannelUp: uiText = SR.MediaChannelUpText; break;
276case CommandId.ChannelDown: uiText = SR.MediaChannelDownText; break;
277case CommandId.TogglePlayPause: uiText = SR.MediaTogglePlayPauseText; break;
278case CommandId.IncreaseVolume: uiText = SR.MediaIncreaseVolumeText; break;
279case CommandId.DecreaseVolume: uiText = SR.MediaDecreaseVolumeText; break;
280case CommandId.MuteVolume: uiText = SR.MediaMuteVolumeText; break;
281case CommandId.IncreaseTreble: uiText = SR.MediaIncreaseTrebleText; break;
282case CommandId.DecreaseTreble: uiText = SR.MediaDecreaseTrebleText; break;
283case CommandId.IncreaseBass: uiText = SR.MediaIncreaseBassText; break;
284case CommandId.DecreaseBass: uiText = SR.MediaDecreaseBassText; break;
285case CommandId.BoostBass: uiText = SR.MediaBoostBassText; break;
286case CommandId.IncreaseMicrophoneVolume: uiText = SR.MediaIncreaseMicrophoneVolumeText; break;
287case CommandId.DecreaseMicrophoneVolume: uiText = SR.MediaDecreaseMicrophoneVolumeText; break;
288case CommandId.MuteMicrophoneVolume: uiText = SR.MediaMuteMicrophoneVolumeText; break;
289case CommandId.ToggleMicrophoneOnOff: uiText = SR.MediaToggleMicrophoneOnOffText; break;
290case CommandId.Select:uiText = SR.MediaSelectText;break;
304SR.MediaPlayKey,
305SR.MediaPlayKeyDisplayString,
310SR.MediaPauseKey,
311SR.MediaPauseKeyDisplayString,
316SR.MediaStopKey,
317SR.MediaStopKeyDisplayString,
322SR.MediaRecordKey,
323SR.MediaRecordKeyDisplayString,
328SR.MediaNextTrackKey,
329SR.MediaNextTrackKeyDisplayString,
334SR.MediaPreviousTrackKey,
335SR.MediaPreviousTrackKeyDisplayString,
340SR.MediaFastForwardKey,
341SR.MediaFastForwardKeyDisplayString,
346SR.MediaRewindKey,
347SR.MediaRewindKeyDisplayString,
352SR.MediaChannelUpKey,
353SR.MediaChannelUpKeyDisplayString,
358SR.MediaChannelDownKey,
359SR.MediaChannelDownKeyDisplayString,
364SR.MediaTogglePlayPauseKey,
365SR.MediaTogglePlayPauseKeyDisplayString,
370SR.MediaIncreaseVolumeKey,
371SR.MediaIncreaseVolumeKeyDisplayString,
376SR.MediaDecreaseVolumeKey,
377SR.MediaDecreaseVolumeKeyDisplayString,
382SR.MediaMuteVolumeKey,
383SR.MediaMuteVolumeKeyDisplayString,
388SR.MediaIncreaseTrebleKey,
389SR.MediaIncreaseTrebleKeyDisplayString,
394SR.MediaDecreaseTrebleKey,
395SR.MediaDecreaseTrebleKeyDisplayString,
400SR.MediaIncreaseBassKey,
401SR.MediaIncreaseBassKeyDisplayString,
406SR.MediaDecreaseBassKey,
407SR.MediaDecreaseBassKeyDisplayString,
412SR.MediaBoostBassKey,
413SR.MediaBoostBassKeyDisplayString,
418SR.MediaIncreaseMicrophoneVolumeKey,
419SR.MediaIncreaseMicrophoneVolumeKeyDisplayString,
424SR.MediaDecreaseMicrophoneVolumeKey,
425SR.MediaDecreaseMicrophoneVolumeKeyDisplayString,
430SR.MediaMuteMicrophoneVolumeKey,
431SR.MediaMuteMicrophoneVolumeKeyDisplayString,
436SR.MediaToggleMicrophoneOnOffKey,
437SR.MediaToggleMicrophoneOnOffKeyDisplayString,
442SR.MediaSelectKey,
443SR.MediaSelectKeyDisplayString,
System\Windows\Input\Command\NavigationCommands.cs (42)
22using SR = MS.Internal.PresentationCore.SR;
210case CommandId.BrowseBack: uiText = SR.BrowseBackText; break;
211case CommandId.BrowseForward: uiText = SR.BrowseForwardText; break;
212case CommandId.BrowseHome: uiText = SR.BrowseHomeText; break;
213case CommandId.BrowseStop: uiText = SR.BrowseStopText; break;
214case CommandId.Refresh: uiText = SR.RefreshText; break;
215case CommandId.Favorites: uiText = SR.FavoritesText; break;
216case CommandId.Search: uiText = SR.SearchText; break;
217case CommandId.IncreaseZoom: uiText = SR.IncreaseZoomText; break;
218case CommandId.DecreaseZoom: uiText = SR.DecreaseZoomText; break;
219case CommandId.Zoom: uiText = SR.ZoomText; break;
220case CommandId.NextPage: uiText = SR.NextPageText; break;
221case CommandId.PreviousPage: uiText = SR.PreviousPageText; break;
222case CommandId.FirstPage: uiText = SR.FirstPageText; break;
223case CommandId.LastPage: uiText = SR.LastPageText; break;
224case CommandId.GoToPage: uiText = SR.GoToPageText; break;
225case CommandId.NavigateJournal: uiText = SR.NavigateJournalText; break;
240SR.BrowseBackKeyDisplayString,
246SR.BrowseForwardKeyDisplayString,
252SR.BrowseHomeKeyDisplayString,
258SR.BrowseStopKeyDisplayString,
264SR.RefreshKeyDisplayString,
270SR.FavoritesKeyDisplayString,
276SR.SearchKeyDisplayString,
281SR.IncreaseZoomKey,
282SR.IncreaseZoomKeyDisplayString,
287SR.DecreaseZoomKey,
288SR.DecreaseZoomKeyDisplayString,
293SR.ZoomKey,
294SR.ZoomKeyDisplayString,
299SR.NextPageKey,
300SR.NextPageKeyDisplayString,
305SR.PreviousPageKey,
306SR.PreviousPageKeyDisplayString,
311SR.FirstPageKey,
312SR.FirstPageKeyDisplayString,
317SR.LastPageKey,
318SR.LastPageKeyDisplayString,
323SR.GoToPageKey,
324SR.GoToPageKeyDisplayString,
329SR.NavigateJournalKey,
330SR.NavigateJournalKeyDisplayString,
System\Windows\Input\Stylus\Common\StylusPoint.cs (11)
15using SR = MS.Internal.PresentationCore.SR;
83throw new ArgumentOutOfRangeException("x", SR.InvalidStylusPointXYNaN);
87throw new ArgumentOutOfRangeException("y", SR.InvalidStylusPointXYNaN);
95throw new ArgumentOutOfRangeException("pressureFactor", SR.InvalidPressureValue);
130throw new ArgumentException(SR.InvalidAdditionalDataForStylusPoint, "additionalValues");
177throw new ArgumentOutOfRangeException("X", SR.InvalidStylusPointXYNaN);
197throw new ArgumentOutOfRangeException("Y", SR.InvalidStylusPointXYNaN);
232throw new ArgumentOutOfRangeException("PressureFactor", SR.InvalidPressureValue);
303throw new ArgumentException(SR.InvalidStylusPointProperty, "stylusPointProperty");
386throw new ArgumentException(SR.InvalidStylusPointProperty, "propertyId");
392throw new ArgumentOutOfRangeException("value", SR.InvalidMinMaxForButton);
System\Windows\Media\Animation\Generated\Animatable.cs (15)
29using SR = MS.Internal.PresentationCore.SR;
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
94throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
100throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
105throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
162throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
167throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
172throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Media\CharacterMetricsDictionary.cs (25)
16using SR=MS.Internal.PresentationCore.SR;
139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
157throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
196throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
199throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
214throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional);
219throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType));
373throw new ArgumentOutOfRangeException(SR.Format(SR.CodePointOutOfRange, key));
381throw new ArgumentException(SR.Format(SR.CollectionDuplicateKey, key));
510throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, s, "int"), "key");
518throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), "int"), "key");
522throw new ArgumentException(SR.Format(SR.CodePointOutOfRange, value), "key");
535throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CharacterMetrics), value.GetType()));
594throw new InvalidOperationException(SR.Enumerator_VerifyContext);
System\Windows\Media\Color.cs (25)
16using SR=MS.Internal.PresentationCore.SR;
80throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null));
85throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null));
390throw new InvalidOperationException(SR.Format(SR.Color_NullColorContext, null));
500throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null));
534throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null));
619throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null));
841throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null));
865throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null));
889throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null));
943throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null));
968throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null));
993throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null));
System\Windows\Media\CultureSpecificStringDictionary.cs (17)
20using SR=MS.Internal.PresentationCore.SR;
128throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
131throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
162throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
165throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
180throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional);
185throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType));
327throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(string)), "value");
340throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), typeof(XmlLanguage)), "key");
408throw new InvalidOperationException(SR.Enumerator_VerifyContext);
System\Windows\Media\Effects\ShaderEffect.cs (18)
19using SR = MS.Internal.PresentationCore.SR;
58throw new ArgumentOutOfRangeException("value", value, SR.Effect_ShaderEffectPadding);
85throw new ArgumentOutOfRangeException("value", value, SR.Effect_ShaderEffectPadding);
112throw new ArgumentOutOfRangeException("value", value, SR.Effect_ShaderEffectPadding);
139throw new ArgumentOutOfRangeException("value", value, SR.Effect_ShaderEffectPadding);
206throw new InvalidOperationException(SR.Effect_20ShaderUsing30Registers);
361throw new InvalidOperationException(SR.Format(SR.Effect_ShaderConstantType, dp.PropertyType.Name));
369string srid = nameof(SR.Effect_Shader20ConstantRegisterLimit);
379srid = nameof(SR.Effect_Shader30FloatConstantRegisterLimit);
384srid = nameof(SR.Effect_Shader30IntConstantRegisterLimit);
389srid = nameof(SR.Effect_Shader30BoolConstantRegisterLimit);
395throw new ArgumentException(SR.GetResourceString(srid), "dp");
446throw new ArgumentException(SR.Effect_ShaderSamplerType, "dp");
454string srid = nameof(SR.Effect_Shader20SamplerRegisterLimit);
459srid = nameof(SR.Effect_Shader30SamplerRegisterLimit);
464throw new ArgumentException(SR.GetResourceString(srid));
577throw new InvalidOperationException(SR.Effect_ShaderPixelShaderSet);
System\Windows\Media\FamilyMapCollection.cs (17)
18using SR=MS.Internal.PresentationCore.SR;
90throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
93throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
104throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional);
108throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType));
111throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array"));
114throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
268throw new InvalidOperationException(SR.CompositeFont_TooManyFamilyMaps);
371throw new NotSupportedException(SR.General_ObjectIsReadOnly);
380throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FontFamilyMap)));
432throw new InvalidOperationException(SR.Enumerator_VerifyContext);
System\Windows\Media\GlyphRun.cs (25)
42using SR=MS.Internal.PresentationCore.SR;
413throw new ArgumentException(SR.ClusterMapEntriesShouldNotDecrease, "clusterMap");
416throw new ArgumentException(SR.ClusterMapEntryShouldPointWithinGlyphIndices, "clusterMap");
422throw new ArgumentException(SR.ClusterMapFirstEntryMustBeZero, "clusterMap");
427throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, characters.Count), "clusterMap");
433throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, GlyphCount), "clusterMap");
440throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, CodepointCount + 1), "caretStops");
444throw new ArgumentException(SR.SidewaysRTLTextIsNotSupported);
462throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "glyphIndices");
466throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, MaxGlyphCount), "glyphIndices");
472throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "advanceWidths");
475throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "glyphOffsets");
1113throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "value");
1143throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "value");
2318throw new InvalidOperationException(SR.OnlyOneInitialization);
2324throw new InvalidOperationException(SR.InInitialization);
2335throw new InvalidOperationException(SR.NotInInitialization);
2371throw new InvalidOperationException(SR.InitializationIncomplete);
2382throw new InvalidOperationException(SR.NotInInitialization);
System\Windows\Media3D\Generated\Visual3D.cs (15)
29using SR = MS.Internal.PresentationCore.SR;
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
94throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock");
100throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
105throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp");
162throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation");
167throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
172throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));