213 references to Format
PresentationCore (213)
MS\Internal\Automation\SynchronizedInputAdaptor.cs (1)
38throw new ArgumentException(SR.Format(SR.Automation_InvalidSynchronizedInputType, inputType));
MS\Internal\Automation\TextProviderWrapper.cs (1)
56throw new ArgumentException(SR.Format(SR.TextProvider_InvalidChild, "childElement"));
MS\Internal\Automation\TextRangeProviderWrapper.cs (3)
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\FontCache\FontCacheUtil.cs (9)
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 (9)
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( 925Fail(SR.Format(SR.CompositeFontMissingAttribute, name));
MS\Internal\IListConverters.cs (1)
55throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (7)
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)); 845throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(bool)), nameof(value)); 852throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(double)), nameof(value)); 876throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte)), nameof(value)); 889throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte[])), nameof(value));
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (4)
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\Media\VisualTreeUtils.cs (1)
253throw new System.InvalidOperationException(SR.Format(SR.Visual_NotAVisual, element.GetType()));
MS\Internal\TextFormatting\FullTextBreakpoint.cs (2)
97TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateBreaksFailure, lserr), lserr); 241TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.RelievePenaltyResourceFailure, lserr), lserr);
MS\Internal\TextFormatting\FullTextLine.cs (5)
308TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr); 627TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr); 2158TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.EnumLineFailure, lserr), lserr); 2463TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr); 2520TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr);
MS\Internal\TextFormatting\TextMetrics.cs (1)
295TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.AcquireBreakRecordFailure, lserr), lserr);
MS\Internal\TextFormatting\TextPenaltyModule.cs (2)
29TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.AcquirePenaltyModuleFailure, lserr), lserr); 83TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.GetPenaltyModuleHandleFailure, lserr), lserr);
MS\Internal\WpfWebRequestHelper.cs (2)
190throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 206throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString()));
MS\Win32\UnsafeNativeMethodsPenimc.cs (1)
108throw new InvalidOperationException(SR.Format(SR.PenImcSxSRegistrationFailed, ExternDll.Penimc));
System\IO\Packaging\PackWebRequestFactory.cs (1)
60throw new ArgumentException(SR.Format(SR.UriSchemeMismatch, PackUriHelper.UriSchemePack), nameof(uri));
System\Windows\DataObjectPastingEventArgs.cs (2)
60throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, formatToApply)); 157throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, value));
System\Windows\Diagnostics\VisualDiagnostics.cs (3)
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\DragEventArgs.cs (1)
147throw new ArgumentException(SR.Format(SR.DragDrop_DragDropEffectsInvalid, "value"));
System\Windows\Duration.cs (1)
395return HasTimeSpan ? _timeSpan : throw new InvalidOperationException(SR.Format(SR.Timing_NotTimeSpan, this));
System\Windows\FontStretchConverter.cs (1)
65throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value));
System\Windows\FontStyleConverter.cs (1)
65throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value));
System\Windows\FontWeightConverter.cs (1)
65throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value));
System\Windows\FreezableCollection.cs (2)
496throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 826throw new InvalidOperationException(SR.Format(SR.Freezable_CloneInvalidType, typeof(T).Name));
System\Windows\Generated\TextDecorationCollection.cs (1)
408throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Ink\DrawingAttributes.cs (1)
708throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(Matrix)), nameof(propertyData));
System\Windows\Input\AccessKeyManager.cs (1)
125throw new ArgumentException(SR.Format(SR.AccessKeyManager_NotAUnicodeCharacter, "key"));
System\Windows\Input\Command\KeyBinding.cs (1)
88throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(KeyGesture)));
System\Windows\Input\Command\MouseActionConverter.cs (1)
70_ => throw new NotSupportedException(SR.Format(SR.Unsupported_MouseAction, mouseActionToken.ToString()))
System\Windows\Input\Command\MouseBinding.cs (1)
104throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(MouseGesture)));
System\Windows\Input\Command\RoutedCommand.cs (2)
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 (4)
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));
System\Windows\Input\FocusChangedEventArgs.cs (2)
29throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldFocus.GetType())); 32throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, newFocus.GetType()));
System\Windows\Input\InputMethod.cs (2)
811throw new ArgumentException(SR.Format(SR.InputMethod_InvalidConversionMode, value)); 1062throw new ArgumentException(SR.Format(SR.InputMethod_InvalidSentenceMode, value));
System\Windows\Input\InputScope.cs (1)
171throw new ArgumentException(SR.Format(SR.InputScope_InvalidInputScopeName, "value"));
System\Windows\Input\KeyboardDevice.cs (3)
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\MouseDevice.cs (2)
299throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, eltDO.GetType())); 546throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, relativeTo.GetType()));
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (2)
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 (1)
157throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(systemGesture)));
System\Windows\Input\Stylus\Common\StylusSystemGestureEventArgs.cs (2)
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 (1)
73throw new ArgumentException(SR.Format(SR.Stylus_IndexOutOfRange, index.ToString(System.Globalization.CultureInfo.InvariantCulture)), nameof(index));
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (5)
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 (1)
552throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, doStylusCapture.GetType()));
System\Windows\Input\Stylus\Wisp\WispLogic.cs (5)
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()));
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
245throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, doStylusCapture.GetType())); 1162throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, relativeTo.GetType()));
System\Windows\Input\TextCompositionManager.cs (8)
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 (1)
331throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, element.GetType()), nameof(element));
System\Windows\LayoutManager.cs (2)
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 (1)
56throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Markup\XmlLanguage.cs (4)
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); 792throw new ArgumentException(SR.Format(SR.XmlLangMalformed, ietfLanguageTag), nameof(ietfLanguageTag));
System\Windows\Media\Animation\Clock.cs (1)
583SR.Format(
System\Windows\Media\Animation\ClockController.cs (2)
156throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin")); 198throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
407throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Animation\KeyTime.cs (2)
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 (4)
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\TimeManager.cs (1)
257throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
System\Windows\Media\CharacterMetricsDictionary.cs (3)
355throw new ArgumentOutOfRangeException(SR.Format(SR.CodePointOutOfRange, key)); 363throw new ArgumentException(SR.Format(SR.CollectionDuplicateKey, key)); 504throw new ArgumentException(SR.Format(SR.CodePointOutOfRange, value), nameof(key));
System\Windows\Media\ColorContext.cs (1)
529throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, profileUri.AbsolutePath), profileUri.AbsolutePath);
System\Windows\Media\ColorConverter.cs (1)
79throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value));
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
410throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Effects\ShaderEffect.cs (1)
344throw new InvalidOperationException(SR.Format(SR.Effect_ShaderConstantType, dp.PropertyType.Name));
System\Windows\Media\EllipseGeometry.cs (1)
30throw new System.ArgumentException(SR.Format(SR.Rect_Empty, "rect"));
System\Windows\Media\FontFamilyConverter.cs (1)
120throw new ArgumentException(SR.Format(SR.General_Expected_Type, "FontFamily"), nameof(value));
System\Windows\Media\FormattedText.cs (2)
1310throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.PropertyMustBeGreaterThanZero, "MaxTextHeight")); 1313throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.PropertyValueCannotBeNaN, "MaxTextHeight"));
System\Windows\Media\Generated\BrushConverter.cs (1)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Brush"), nameof(context));
System\Windows\Media\Generated\CacheModeConverter.cs (1)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "CacheMode"), nameof(context));
System\Windows\Media\Generated\DoubleCollection.cs (1)
382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\DrawingCollection.cs (1)
429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\GeometryCollection.cs (1)
429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\GeometryConverter.cs (1)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Geometry"), nameof(context));
System\Windows\Media\Generated\GradientStopCollection.cs (1)
417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\Int32Collection.cs (1)
382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\PathFigureCollection.cs (1)
418throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "PathFigureCollection"), nameof(context));
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\PointCollection.cs (1)
382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\TextEffectCollection.cs (1)
417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\TransformCollection.cs (1)
429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\TransformConverter.cs (1)
67throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Transform"), nameof(context));
System\Windows\Media\Generated\VectorCollection.cs (1)
382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\GlyphRun.cs (6)
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)); 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));
System\Windows\Media\GlyphTypeface.cs (2)
231throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, ushort.MaxValue), nameof(glyphs)); 1061throw new ArgumentOutOfRangeException(nameof(glyphIndex), SR.Format(SR.GlyphIndexOutOfRange, glyphIndex));
System\Windows\Media\ImageSourceConverter.cs (1)
55throw new ArgumentException(SR.Format(SR.General_Expected_Type, "ImageSource"), nameof(context));
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
76SR.Format(SR.Image_GuidEmpty, "containerFormat"),
System\Windows\Media\Imaging\BitmapPalette.cs (1)
115throw new System.ArgumentException(SR.Format(SR.Image_PaletteFixedType, paletteType));
System\Windows\Media\Imaging\CachedBitmap.cs (1)
349SR.Format(SR.Effect_PixelFormat, pixelFormat),
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (2)
138throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source")); 156throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "DestinationColorContext"));
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
154throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source"));
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
169throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source"));
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
39SR.Format(SR.Effect_PixelFormat, pixelFormat),
System\Windows\Media\Imaging\TransformedBitmap.cs (3)
36throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Transform")); 277throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source")); 287throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Transform"));
System\Windows\Media\PixelFormat.cs (2)
223_ => throw new ArgumentException(SR.Format(SR.Image_BadPixelFormat, pixelFormatString), nameof(pixelFormatString)), 259_ => throw new ArgumentException(SR.Format(SR.Image_BadPixelFormat, format), nameof(format))
System\Windows\Media\PixelFormatConverter.cs (1)
78throw new ArgumentException(SR.Format(SR.General_Expected_Type, nameof(PixelFormat)));
System\Windows\Media\RequestCachePolicyConverter.cs (1)
72throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(value));
System\Windows\Media\textformatting\TextFormatterContext.cs (4)
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 (1)
77TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CloneBreakRecordFailure, lserr), lserr);
System\Windows\Media\textformatting\TextParagraphCache.cs (2)
76throw new InvalidOperationException(SR.Format(SR.CreateParaBreakingSessionFailure, lserr), callbackException); 81TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateParaBreakingSessionFailure, lserr), lserr);
System\Windows\Media\textformatting\TextSimpleMarkerProperties.cs (1)
48throw new ArgumentException(SR.Format(SR.Enum_Invalid, typeof(TextMarkerStyle)), nameof(style));
System\Windows\Media\Visual.cs (1)
2733throw new InvalidOperationException(SR.Format(SR.LayoutManager_DeepRecursion, TreeLevelLimit));
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
415throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
427throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
427throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
380throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
427throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
380throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\ModelVisual3D.cs (1)
92throw new System.InvalidOperationException(SR.Format(SR.AddText_Invalid, this.GetType().Name));
System\Windows\Media3D\Visual3DCollection.cs (1)
174throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, "Visual3DCollection"), e);
System\Windows\Navigation\BaseUriHelper.cs (1)
371throw new InvalidOperationException(SR.Format(SR.CannotNavigateToApplicationResourcesInWebBrowser, packUri));
System\Windows\OleServicesContext.cs (1)
152throw new SystemException(SR.Format(SR.OleServicesContext_oleInitializeFailure, hr));
System\Windows\PresentationSource.cs (5)
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 (1)
81throw new ArgumentException(SR.Format(SR.DragDrop_DragActionInvalid, "value"));
System\Windows\TextDecorationCollectionConverter.cs (2)
59throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), nameof(input)); 118throw new ArgumentException(SR.Format(SR.InvalidTextDecorationCollectionString, text));
System\Windows\UIElement.cs (4)
672throw new InvalidOperationException(SR.Format(SR.UIElement_Layout_PositiveInfinityReturned, this.GetType().FullName)); 676throw new InvalidOperationException(SR.Format(SR.UIElement_Layout_NaNReturned, this.GetType().FullName)); 1901throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType())); 1937throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType()));