2856 references to SR
PresentationFramework (2856)
Microsoft\Win32\CommonDialog.cs (3)
59throw new InvalidOperationException(SR.CantShowModalOnNonInteractive); 130throw new InvalidOperationException(SR.CantShowModalOnNonInteractive); 232throw new InvalidOperationException(SR.CantShowOnDifferentThread);
Microsoft\Win32\FileDialog.cs (4)
327throw new ArgumentException(SR.FileDialogInvalidFilter); 630MessageBoxWithFocusRestore(SR.Format(SR.FileDialogFileNotFound, fileName), 712throw new InvalidOperationException(SR.FileDialogInvalidFilterIndex);
Microsoft\Win32\OpenFileDialog.cs (2)
71throw new InvalidOperationException(SR.FileNameMustNotBeNull); 103throw new InvalidOperationException(SR.FileNameMustNotBeNull);
Microsoft\Win32\SaveFileDialog.cs (5)
72throw new InvalidOperationException(SR.FileNameMustNotBeNull); 255return MessageBoxWithFocusRestore(SR.Format(SR.FileDialogCreatePrompt, fileName), 267return MessageBoxWithFocusRestore(SR.Format(SR.FileDialogOverwritePrompt, fileName),
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (2)
249Debug.Assert(_selectionProcessor != null, SR.Format(SR.NoProcessorForSelectionType, attachedAnchor.GetType()));
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (4)
181throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), nameof(locatorPart)); 190throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), nameof(locatorPart));
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (4)
170throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), nameof(locatorPart)); 181throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), nameof(locatorPart));
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (17)
99throw new ArgumentException(SR.Format(SR.SelectionDoesNotResolveToAPage, "start"), nameof(selection)); 106throw new ArgumentException(SR.Format(SR.SelectionDoesNotResolveToAPage, "end"), nameof(selection)); 193throw new ArgumentException(SR.StartNodeMustBeFixedPageProxy, nameof(startNode)); 281throw new ArgumentException(SR.StartNodeMustBeDocumentPageViewOrFixedPage, nameof(startNode)); 303throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 449throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}"); 455throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}"); 475throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}"); 493throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), nameof(locatorPart)); 497throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo))); 503throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\Anchoring\LocatorManager.cs (3)
133throw new ArgumentException(SR.Format(SR.InvalidSubTreeProcessor, processorString)); 277throw new InvalidOperationException(SR.AnnotationServiceNotEnabled);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
72throw new ArgumentException(SR.WrongSelectionType, $"anchor1: type = {anchor1.GetType()}"); 75throw new ArgumentException(SR.WrongSelectionType, $"Anchor2: type = {anchor2.GetType()}"); 228throw new ArgumentException(SR.WrongSelectionType, nameof(selection)); 370throw new ArgumentException(SR.WrongSelectionType, nameof(selection));
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (12)
135throw new ArgumentException(SR.WrongSelectionType, nameof(selection)); 145throw new ArgumentException(SR.InvalidStartNodeForTextSelection, nameof(startNode)); 148throw new ArgumentException(SR.InvalidStartNodeForTextSelection, nameof(startNode)); 192throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), nameof(locatorPart)); 201throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 242throw new ArgumentException(SR.IncorrectAnchorLength, nameof(locatorPart)); 357throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 441throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
264throw new ArgumentException(SR.SelectionMustBeServiceProvider, nameof(selection));
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
97throw new ArgumentException(SR.WrongSelectionType, nameof(selection)); 117throw new ArgumentException(SR.WrongSelectionType, nameof(selection));
MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
110throw new ArgumentException(SR.AlreadyHasParent); 124throw new ArgumentException(SR.AlreadyHasParent);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (6)
46throw new InvalidOperationException(SR.Format(SR.ComponentAlreadyInPresentationContext, adorner.AnnotationComponent)); 194if (foundAdorner == null) throw new InvalidOperationException(SR.Format(SR.ComponentNotInPresentationContext, component)); 488if (adorner == null) throw new InvalidOperationException(SR.Format(SR.ComponentNotInPresentationContext, component));
MS\Internal\Annotations\Component\AnnotationAdorner.cs (2)
43throw new ArgumentException(SR.AnnotationAdorner_NotUIElement, nameof(component)); 104throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (2)
180throw new InvalidOperationException(SR.Format(SR.NoPresentationContextForGivenElement, annotatedElement));
MS\Internal\Annotations\Component\HighlightComponent.cs (9)
217throw new ArgumentException(SR.MoreThanOneAttachedAnnotation); 267throw new ArgumentException(SR.InvalidAttachedAnnotation, nameof(attachedAnnotation)); 304throw new NotSupportedException(SR.NotSupported); 320throw new InvalidOperationException(SR.NoAttachedAnnotationToModify); 512throw new ArgumentException(SR.InvalidAttachedAnchor, nameof(attachedAnnotation)); 522throw new ArgumentException(SR.AnnotationIsNull, nameof(attachedAnnotation)); 528throw new ArgumentException(SR.Format(SR.NotHighlightAnnotationType, attachedAnnotation.Annotation.AnnotationType.ToString()), nameof(attachedAnnotation)); 594throw new InvalidDataException(SR.MissingAnnotationHighlightLayer);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (8)
187throw new InvalidOperationException(SR.InvalidAttachedAnnotation); 203throw new ArgumentException(SR.MoreThanOneAttachedAnnotation); 235throw new ArgumentException(SR.InvalidAttachedAnnotation, nameof(attachedAnnotation)); 258throw new NotSupportedException(SR.NotSupported); 471throw new ArgumentException(SR.InvalidAttachedAnchor); 484if (layer == null) throw new InvalidOperationException(SR.Format(SR.NoPresentationContextForGivenElement, AnnotatedElement)); 649throw new Exception(SR.UndefinedHighlightAnchor);
MS\Internal\Annotations\TextAnchor.cs (4)
105throw new ArgumentException(SR.Format(SR.NotInAssociatedTree, "textPointer")); 635throw new InvalidOperationException(SR.TextSegmentsMustNotOverlap); 639throw new InvalidOperationException(SR.TextSegmentsMustNotOverlap);
MS\Internal\Annotations\XmlElementCollection.cs (4)
93throw new ArgumentException(SR.Format(SR.XmlNodeAlreadyOwned, "change", "change"), nameof(item)); 109throw new ArgumentException(SR.Format(SR.XmlNodeAlreadyOwned, "change", "change"), nameof(item));
MS\Internal\AppModel\AppModelKnownContentFactory.cs (6)
37throw new InvalidOperationException(SR.Format(SR.BamlIsNotSupportedOutsideOfApplicationResources)); 43throw new InvalidOperationException(SR.BamlIsNotSupportedOutsideOfApplicationResources); 52throw new InvalidOperationException(SR.BamlIsNotSupportedOutsideOfApplicationResources); 139throw new InvalidOperationException(SR.Format(SR.BamlIsNotSupportedOutsideOfApplicationResources));
MS\Internal\AppModel\AppSecurityManager.cs (1)
136throw new InvalidOperationException(SR.FailToLaunchDefaultBrowser,
MS\Internal\AppModel\ContentFilePart.cs (2)
75throw new IOException(SR.Format(SR.UnableToLocateResource, Uri.ToString()));
MS\Internal\AppModel\Journaling.cs (4)
538throw new Exception(SR.Format(SR.InvalidPageFunctionType, contentObject.GetType())); 679throw new Exception(SR.Format(SR.FailedResumePageFunction, this._typeName), ex);
MS\Internal\AppModel\JournalNavigationScope.cs (2)
182throw new InvalidOperationException(SR.NoForwardEntry); 204throw new InvalidOperationException(SR.NoBackEntry);
MS\Internal\AppModel\ResourceContainer.cs (1)
305throw new IOException(SR.EntryAssemblyIsNull);
MS\Internal\AppModel\ResourcePart.cs (4)
62throw new IOException(SR.Format(SR.UnableToLocateResource, _name)); 118throw new IOException(SR.Format(SR.UnableToLocateResource, _name));
MS\Internal\AppModel\ReturnEventSaver.cs (2)
118throw new NotSupportedException(SR.ReturnEventHandlerMustBeOnParentPage); 131throw new NotSupportedException(SR.ReturnEventHandlerMustBeOnParentPage, ex);
MS\Internal\Commands\CommandHelpers.cs (4)
80KeyGesture.CreateFromResourceStrings(SR.GetResourceString(srid1), SR.GetResourceString(srid2))); 87KeyGesture.CreateFromResourceStrings(SR.GetResourceString(srid1), SR.GetResourceString(srid2)));
MS\Internal\Controls\ActiveXSite.cs (1)
182throw new InvalidOperationException(SR.AxWindowlessControl);
MS\Internal\Controls\ConnectionPointCookie.cs (9)
43ex = new ArgumentException(SR.Format(SR.AxNoEventInterface, eventInterface.Name)); 49ex = new InvalidCastException(SR.Format(SR.AxNoSinkImplementation, eventInterface.Name)); 59ex = new InvalidOperationException(SR.Format(SR.AxNoSinkAdvise, eventInterface.Name, hr)); 65ex = new InvalidCastException(SR.AxNoConnectionPointContainer); 78throw new ArgumentException(SR.Format(SR.AxNoConnectionPoint, eventInterface.Name));
MS\Internal\Controls\CustomCategoryAttribute.cs (3)
26return SR.DesignerMetadata_CustomCategory_Content; 28return SR.DesignerMetadata_CustomCategory_Accessibility; 30return SR.DesignerMetadata_CustomCategory_Navigation;
MS\Internal\Controls\InnerItemCollectionView.cs (2)
318SR.ItemCollectionRemoveArgumentOutOfRange); 714throw new InvalidOperationException(SR.ReparentModelChildIllegal);
MS\Internal\Controls\ModelTreeEnumerator.cs (2)
77throw new InvalidOperationException(SR.EnumeratorInvalidOperation); 119throw new InvalidOperationException(SR.EnumeratorVersionChanged);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
919throw new InvalidOperationException(SR.AddAnnotationsNotImplemented); 945throw new ArgumentException(SR.InvalidValueSpecified, nameof(attachedAnnotation)); 957throw new NotSupportedException(SR.NotSupported); 1008throw new InvalidOperationException(SR.InvalidAnchorPosition); 1289throw new ArgumentException(SR.InvalidStickyNoteAnnotation, nameof(attachedAnnotation));
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (6)
211throw new InvalidOperationException(SR.MaximumNoteSizeExceeded); 380throw new InvalidOperationException(SR.MaximumNoteSizeExceeded); 476throw new InvalidOperationException(SR.Format(SR.InvalidStickyNoteTemplate, type, typeof(RichTextBox), SNBConstants.c_ContentControlId)); 485throw new InvalidOperationException(SR.Format(SR.InvalidStickyNoteTemplate, type, typeof(InkCanvas), SNBConstants.c_ContentControlId));
MS\Internal\Controls\TemplatedAdorner.cs (1)
110throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Data\BindingCollection.cs (2)
114throw new NotSupportedException(SR.Format(SR.BindingCollectionContainsNonBinding, binding.GetType().Name));
MS\Internal\Data\CollectionViewProxy.cs (26)
409throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition")); 448throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew")); 467throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew")); 484throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew")); 565throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt")); 581throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove")); 605throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem")); 622throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit")); 639throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit")); 746throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem")); 810throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting")); 833throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering")); 856throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveGrouping", "CanChangeLiveGrouping"));
MS\Internal\Data\CompositeCollectionView.cs (15)
624throw new InvalidOperationException(SR.CompositeCollectionResetOnlyOnClear); 642throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 785throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 1434throw new NotSupportedException(SR.RangeActionsNotSupported); 1439throw new NotSupportedException(SR.RangeActionsNotSupported); 1444throw new NotSupportedException(SR.RangeActionsNotSupported); 1449throw new NotSupportedException(SR.RangeActionsNotSupported); 1451throw new InvalidOperationException(SR.CannotMoveToUnknownPosition); 1458throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 1554throw new InvalidOperationException(SR.EnumeratorNotStarted); 1559throw new InvalidOperationException(SR.EnumeratorReachedEnd); 1593throw new InvalidOperationException(SR.EnumeratorVersionChanged);
MS\Internal\Data\DefaultAsyncDataDispatcher.cs (2)
82request.Fail(new InvalidOperationException(SR.Format(SR.NonCLSException, "processing an async data request")));
MS\Internal\Data\DynamicObjectAccessor.cs (2)
29return SW.SR.Format(SW.SR.PropertyPathNoProperty, target, "Items");
MS\Internal\Data\EnumerableCollectionView.cs (10)
420throw new InvalidOperationException(SR.RemovedItemNotFound); 426throw new InvalidOperationException(SR.Format(SR.AddedItemNotAtIndex, index)); 436throw new InvalidOperationException(SR.Format(SR.AddedItemNotAtIndex, index)); 443throw new InvalidOperationException(SR.CannotMoveToUnknownPosition); 455throw new InvalidOperationException(SR.Format(SR.AddedItemNotAtIndex, oldIndex)); 469throw new InvalidOperationException(SR.Format(SR.AddedItemNotAtIndex, oldIndex));
MS\Internal\Data\IndexedEnumerable.cs (3)
320throw new ArgumentException(SR.CopyToNotEnoughSpace, nameof(index)); 722throw new InvalidOperationException(SR.EnumeratorVersionChanged); 733throw new InvalidOperationException(SR.EnumeratorVersionChanged);
MS\Internal\Data\ParameterCollection.cs (1)
170throw new InvalidOperationException(SR.ObjectDataProviderParameterCollectionIsNotInUse);
MS\Internal\Data\PathParser.cs (6)
64private void SetError(string id, params object[] args) => _error = SR.Format(SR.GetResourceString(id), args); 142SetError(nameof(SR.PathSyntax), _path.Substring(0, _index), _path.Substring(_index)); 188SetError(nameof(SR.UnmatchedParen), _path.Substring(start)); 194SetError(nameof(SR.UnmatchedParen), _path.Substring(0, _index)); 234SetError(nameof(SR.UnmatchedBracket), _path.Substring(start - 1));
MS\Internal\Data\PropertyPathWorker.cs (12)
301throw new NotSupportedException(SR.IndexedPropDescNotImplemented); 388throw new NotSupportedException(SR.IndexedPropDescNotImplemented); 1532_host?.ReportGetValueError(k, item, new InvalidOperationException(SR.Format(SR.NonCLSException, "GetValue"))); 1581throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pi.Name)); 1586throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), pd.Name)); 1591throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dp.Name)); 1596throw new InvalidOperationException(SR.Format(SR.CannotWriteToReadOnly, item.GetType(), dpa.PropertyName));
MS\Internal\Data\RBTree.cs (2)
125throw new InvalidOperationException(SR.InvalidOperation_IComparerFailed, e); 570throw new ArgumentException(SR.Argument_InvalidOffLen);
MS\Internal\Data\ValueChangedEventManager.cs (2)
87throw new NotSupportedException(SR.NoMulticastHandlers); 99throw new NotSupportedException(SR.NoMulticastHandlers);
MS\Internal\Data\ViewManager.cs (8)
394throw new InvalidOperationException(SR.Format(SR.CollectionView_MissingSynchronizationCallback, collection)); 579throw new ArgumentException(SR.Format(SR.CollectionView_WrongType, collectionViewType.Name)); 592throw new ArgumentException(SR.Format(SR.CollectionView_ViewTypeInsufficient, 837throw new ArgumentException(SR.Format(SR.CollectionView_NameTypeDuplicity, collectionViewType, cachedViewType));
MS\Internal\Documents\ContentElementCollection.cs (14)
69throw new ArgumentException(SR.TableCollectionRankMultiDimNotSupported); 73throw new ArgumentOutOfRangeException(nameof(index), SR.TableCollectionOutOfRangeNeedNonNegNum); 77throw new ArgumentException(SR.TableCollectionInvalidOffLen); 105throw new ArgumentOutOfRangeException(nameof(index), SR.TableCollectionOutOfRangeNeedNonNegNum); 109throw new ArgumentException(SR.TableCollectionInvalidOffLen); 318throw new InvalidOperationException(SR.EnumeratorVersionChanged); 343throw new InvalidOperationException(SR.EnumeratorNotStarted); 347throw new InvalidOperationException(SR.EnumeratorReachedEnd); 370throw new InvalidOperationException(SR.EnumeratorVersionChanged); 455throw new ArgumentException(SR.Format(SR.TableCollectionElementTypeExpected, typeof(TItem).Name), nameof(value)); 509throw new ArgumentException(SR.Format(SR.TableCollectionElementTypeExpected, typeof(TItem).Name), nameof(value)); 757throw new ArgumentOutOfRangeException(SR.TableCollectionNotEnoughCapacity);
MS\Internal\Documents\DocumentGrid.cs (6)
998throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 1053throw new InvalidOperationException(SR.DocumentGridVisualTreeContainsNonBorderAsFirstElement); 1068throw new InvalidOperationException(SR.DocumentGridVisualTreeContainsNonDocumentGridPage); 1195throw new InvalidOperationException(SR.DocumentGridVisualTreeOutOfSync); 1223throw new InvalidOperationException(SR.DocumentGridVisualTreeContainsNonUIElement); 2465throw new InvalidOperationException(SR.DocumentGridInvalidViewMode);
MS\Internal\Documents\DocumentGridContextMenu.cs (6)
157SR.DocumentApplicationContextMenuPreviousPageHeader, 158SR.DocumentApplicationContextMenuPreviousPageInputGesture); 164SR.DocumentApplicationContextMenuNextPageHeader, 165SR.DocumentApplicationContextMenuNextPageInputGesture); 172SR.DocumentApplicationContextMenuFirstPageInputGesture); 179SR.DocumentApplicationContextMenuLastPageInputGesture);
MS\Internal\Documents\DocumentGridPage.cs (2)
179throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 183throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Documents\DocumentPageHost.cs (3)
55throw new ArgumentException(SR.DocumentPageView_ParentNotDocumentPageHost, nameof(pageVisual)); 58throw new ArgumentException(SR.DocumentPageView_ParentNotDocumentPageHost, nameof(pageVisual)); 124throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Documents\DocumentPageTextView.cs (11)
100throw new InvalidOperationException(SR.TextViewInvalidLayout); 125throw new InvalidOperationException(SR.TextViewInvalidLayout); 147throw new InvalidOperationException(SR.TextViewInvalidLayout); 176throw new InvalidOperationException(SR.TextViewInvalidLayout); 212throw new InvalidOperationException(SR.TextViewInvalidLayout); 243throw new InvalidOperationException(SR.TextViewInvalidLayout); 260throw new InvalidOperationException(SR.TextViewInvalidLayout); 277throw new InvalidOperationException(SR.TextViewInvalidLayout); 294throw new InvalidOperationException(SR.TextViewInvalidLayout); 311throw new InvalidOperationException(SR.TextViewInvalidLayout); 328throw new InvalidOperationException(SR.TextViewInvalidLayout);
MS\Internal\Documents\DocumentViewerHelper.cs (3)
278SR.DocumentViewerSearchUpCompleteLabel : 279SR.DocumentViewerSearchDownCompleteLabel; 288SR.DocumentViewerSearchCompleteTitle,
MS\Internal\Documents\FlowDocumentFormatter.cs (2)
59throw new InvalidOperationException(SR.FlowDocumentFormattingReentrancy); 63throw new InvalidOperationException(SR.TextContainerChangingReentrancyInvalid);
MS\Internal\Documents\FlowDocumentPaginator.cs (15)
73throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 79throw new InvalidOperationException(SR.FlowDocumentFormattingReentrancy); 83throw new InvalidOperationException(SR.TextContainerChangingReentrancyInvalid); 146throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 152throw new InvalidOperationException(SR.FlowDocumentFormattingReentrancy); 156throw new InvalidOperationException(SR.TextContainerChangingReentrancyInvalid); 219throw new ArgumentException(SR.IDPInvalidContentPosition, nameof(contentPosition)); 227throw new ArgumentException(SR.IDPInvalidContentPosition, nameof(contentPosition)); 231throw new ArgumentException(SR.IDPInvalidContentPosition, nameof(contentPosition)); 284throw new ArgumentException(SR.IDPInvalidContentPosition, nameof(contentPosition)); 288throw new ArgumentException(SR.IDPInvalidContentPosition, nameof(contentPosition)); 295throw new InvalidOperationException(SR.FlowDocumentFormattingReentrancy); 299throw new InvalidOperationException(SR.TextContainerChangingReentrancyInvalid); 537throw new InvalidOperationException(SR.FlowDocumentInvalidContnetChange); 769throw new InvalidOperationException(SR.FlowDocumentFormattingReentrancy);
MS\Internal\Documents\FlowDocumentView.cs (1)
222throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
MS\Internal\Documents\HostedElements.cs (2)
161throw new InvalidOperationException(SR.EnumeratorCollectionDisposed); 168throw new InvalidOperationException(SR.EnumeratorNotStarted);
MS\Internal\Documents\MultiPageTextView.cs (15)
97throw new InvalidOperationException(SR.TextViewInvalidLayout); 124throw new InvalidOperationException(SR.TextViewInvalidLayout); 147throw new InvalidOperationException(SR.TextViewInvalidLayout); 192throw new InvalidOperationException(SR.TextViewInvalidLayout); 205throw new InvalidOperationException(SR.TextViewInvalidLayout); 221throw new InvalidOperationException(SR.TextViewInvalidLayout); 243throw new InvalidOperationException(SR.TextViewInvalidLayout); 265throw new InvalidOperationException(SR.TextViewInvalidLayout); 287throw new InvalidOperationException(SR.TextViewInvalidLayout); 306throw new InvalidOperationException(SR.TextViewInvalidLayout); 323throw new InvalidOperationException(SR.TextViewInvalidLayout); 385throw new InvalidOperationException(SR.TextViewInvalidLayout); 482throw new InvalidOperationException(SR.TextViewInvalidLayout); 505throw new InvalidOperationException(SR.TextViewInvalidLayout); 605throw new InvalidOperationException(SR.TextViewInvalidLayout);
MS\Internal\Documents\ParentUndoUnit.cs (7)
69throw new InvalidOperationException(SR.UndoUnitCantBeOpenedTwice); 114throw new InvalidOperationException(SR.UndoNoOpenUnit); 130throw new ArgumentException(SR.UndoUnitNotFound, nameof(unit)); 225throw new InvalidOperationException(SR.UndoUnitCantBeAddedTwice); 230throw new InvalidOperationException(SR.UndoUnitLocked); 255throw new InvalidOperationException(SR.UndoUnitLocked); 437throw new Exception(SR.UndoContainerTypeMismatch);
MS\Internal\Documents\RowCache.cs (6)
288throw new InvalidOperationException(SR.RowCachePageNotFound); 441throw new InvalidOperationException(SR.RowCacheRecalcWithNoPageCache); 496throw new InvalidOperationException(SR.RowCacheRecalcWithNoPageCache); 868throw new InvalidOperationException(SR.RowCacheCannotModifyNonExistentLayout); 1000throw new InvalidOperationException(SR.RowCacheCannotModifyNonExistentLayout); 1056throw new InvalidOperationException(SR.RowCacheCannotModifyNonExistentLayout);
MS\Internal\Documents\TableColumnCollectionInternal.cs (9)
99throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 143throw new System.ArgumentException(SR.TableCollectionWrongProxyParent); 150throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 239throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 271throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 275throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 279throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 318throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 326throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange);
MS\Internal\Documents\TableTextElementCollectionInternal.cs (11)
45throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 104throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 110throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 188throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 221throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 225throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 229throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 265throw new System.ArgumentException(SR.TableCollectionWrongProxyParent); 405throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 413throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 420throw new System.ArgumentException(SR.TableCollectionInOtherCollection);
MS\Internal\Documents\TextDocumentView.cs (11)
64throw new InvalidOperationException(SR.TextViewInvalidLayout); 87throw new InvalidOperationException(SR.TextViewInvalidLayout); 114throw new InvalidOperationException(SR.TextViewInvalidLayout); 230throw new InvalidOperationException(SR.TextViewInvalidLayout); 281throw new InvalidOperationException(SR.TextViewInvalidLayout); 300throw new InvalidOperationException(SR.TextViewInvalidLayout); 320throw new InvalidOperationException(SR.TextViewInvalidLayout); 339throw new InvalidOperationException(SR.TextViewInvalidLayout); 360throw new InvalidOperationException(SR.TextViewInvalidLayout); 387throw new InvalidOperationException(SR.TextViewInvalidLayout); 426throw new InvalidOperationException(SR.TextViewInvalidLayout);
MS\Internal\Documents\TextParagraphView.cs (9)
63throw new InvalidOperationException(SR.TextViewInvalidLayout); 87throw new InvalidOperationException(SR.TextViewInvalidLayout); 106throw new InvalidOperationException(SR.TextViewInvalidLayout); 131throw new InvalidOperationException(SR.TextViewInvalidLayout); 192throw new InvalidOperationException(SR.TextViewInvalidLayout); 211throw new InvalidOperationException(SR.TextViewInvalidLayout); 234throw new InvalidOperationException(SR.TextViewInvalidLayout); 260throw new InvalidOperationException(SR.TextViewInvalidLayout); 285throw new InvalidOperationException(SR.TextViewInvalidLayout);
MS\Internal\Documents\TextViewBase.cs (5)
109throw new InvalidOperationException(SR.TextViewInvalidLayout); 180throw new InvalidOperationException(SR.TextViewInvalidLayout); 195throw new InvalidOperationException(SR.TextViewInvalidLayout); 213throw new InvalidOperationException(SR.TextViewInvalidLayout); 231throw new InvalidOperationException(SR.TextViewInvalidLayout);
MS\Internal\Documents\UndoManager.cs (20)
100throw new InvalidOperationException(SR.UndoManagerAlreadyAttached); 190throw new InvalidOperationException(SR.UndoServiceDisabled); 198throw new InvalidOperationException(SR.UndoUnitCantBeOpenedTwice); 239throw new InvalidOperationException(SR.UndoServiceDisabled); 246throw new InvalidOperationException(SR.UndoUnitAlreadyOpen); 256throw new InvalidOperationException(SR.UndoUnitNotOnTopOfStack); 266throw new InvalidOperationException(SR.UndoUnitNotOnTopOfStack); 280throw new InvalidOperationException(SR.UndoUnitLocked); 315throw new InvalidOperationException(SR.UndoServiceDisabled); 322throw new InvalidOperationException(SR.UndoNoOpenUnit); 339throw new ArgumentException(SR.UndoUnitNotFound, nameof(unit)); 408throw new InvalidOperationException(SR.UndoServiceDisabled); 461throw new InvalidOperationException(SR.UndoNoOpenParentUnit); 475throw new InvalidOperationException(SR.UndoServiceDisabled); 506throw new InvalidOperationException(SR.UndoServiceDisabled); 514throw new InvalidOperationException(SR.UndoNotInNormalState); 519throw new InvalidOperationException(SR.UndoUnitOpen); 571throw new InvalidOperationException(SR.UndoServiceDisabled); 579throw new InvalidOperationException(SR.UndoNotInNormalState); 584throw new InvalidOperationException(SR.UndoUnitOpen);
MS\Internal\FrameworkObject.cs (2)
66throw new InvalidOperationException(SR.Format(SR.MustBeFrameworkDerived, arg));
MS\Internal\Globalization\BamlResourceDeserializer.cs (7)
52throw new XamlParseException(SR.InvalidStartOfBaml); 170throw new XamlParseException(SR.Format(SR.UnRecognizedBamlNodeType, _reader.NodeType)); 285throw new XamlParseException(SR.Format(SR.UnRecognizedBamlNodeType, _reader.NodeType)); 295throw new XamlParseException(SR.InvalidEndOfBaml); 315throw new InvalidOperationException(SR.NullParentNode);
MS\Internal\Globalization\LocalizationComments.cs (10)
116throw new FormatException(SR.Format(SR.InvalidLocCommentTarget, input)); 144throw new FormatException(SR.Format(SR.InvalidLocCommentValue, currentPair.PropertyName, input)); 170throw new FormatException(SR.Format(SR.InvalidLocCommentValue, currentPair.PropertyName, input)); 192throw new FormatException(SR.Format(SR.UnmatchedLocComment, input)); 266throw new FormatException(SR.Format(SR.InvalidLocalizabilityValue, value));
MS\Internal\Helper.cs (10)
47throw new ResourceReferenceKeyNotFoundException(SR.Format(SR.MarkupExtensionResourceNotFound, _name), _name); 291throw new InvalidOperationException(SR.Format(SR.MustBeFrameworkDerived, d.GetType())); 664throw new XamlParseException(SR.Format(SR.MarkupExtensionDynamicOrBindingOnClrProp, 685throw new XamlParseException(SR.Format(SR.MarkupExtensionDynamicOrBindingInCollection, 709throw new XamlParseException(SR.Format(SR.MarkupExtensionDynamicOrBindingInCollection,
MS\Internal\Ink\ClipboardProcessor.cs (1)
283throw new ArgumentException(SR.InvalidClipboardFormat, nameof(value));
MS\Internal\Ink\InkCanvasSelection.cs (1)
916throw new ArgumentOutOfRangeException(nameof(source), SR.InvalidDiameter);
MS\Internal\IO\Packaging\ByteStream.cs (11)
142throw new NotSupportedException(SR.SetPositionNotSupported); 153throw new IOException(SR.SeekFailed); 190throw new NotSupportedException(SR.SeekNotSupported); 203SR.SeekNegative); 233throw new NotSupportedException(SR.SetLengthNotSupported); 250throw new NotSupportedException(SR.ReadNotSupported); 265SR.ReadCountNegative); 272SR.BufferOffsetNegative); 279throw new ArgumentException(SR.BufferTooSmall, nameof(buffer)); 317throw new NotSupportedException(SR.WriteNotSupported); 346throw new ObjectDisposedException(null, SR.StreamObjectDisposed);
MS\Internal\IO\Packaging\CorePropertiesFilter.cs (3)
129throw new COMException(SR.FilterGetTextNotSupported, 143throw new COMException(SR.FilterGetValueAlreadyCalledOnCurrentChunk, 407SR.CorePropertyEnumeratorPositionedOutOfBounds);
MS\Internal\IO\Packaging\EncryptedPackageFilter.cs (2)
82throw new COMException(SR.FilterGetTextNotSupported, 103throw new NotImplementedException(SR.FilterBindRegionNotImplemented);
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (4)
98throw new InvalidOperationException(SR.FilterGetTextBufferOverflow); 208SR.FilterGetValueMustBeStringOrDateTime); 273throw new COMException(SR.FilterEndOfChunks, 326throw new NotImplementedException(SR.FilterBindRegionNotImplemented);
MS\Internal\IO\Packaging\ManagedFilter.cs (1)
125throw new ArgumentException(SR.FilterPropSpecUnknownUnionSelector, nameof(propSpec));
MS\Internal\IO\Packaging\ManagedIStream.cs (1)
136throw new IOException(SR.StreamObjectDisposed);
MS\Internal\IO\Packaging\PackageFilter.cs (5)
120throw new COMException(SR.FilterEndOfChunks, 213throw new COMException(SR.FilterEndOfChunks, 226throw new COMException(SR.FilterGetTextNotSupported, 241throw new COMException(SR.FilterGetValueNotSupported, 258throw new NotImplementedException(SR.FilterBindRegionNotImplemented);
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (4)
154throw new NotSupportedException(SR.StreamDoesNotSupportWrite); 167throw new NotSupportedException(SR.StreamDoesNotSupportWrite); 240throw new ArgumentException(SR.CannotSetNegativePosition); 306throw new ObjectDisposedException(null, SR.StreamObjectDisposed);
MS\Internal\IO\Packaging\XamlFilter.cs (2)
219throw new COMException(SR.FilterGetChunkNoStream, (int)FilterErrorCode.FILTER_E_ACCESS); 779throw new XmlException(SR.XamlFilterNestedFixedPage);
MS\Internal\IO\Packaging\XmlFixedPageInfo.cs (2)
37throw new ArgumentException(SR.Format(SR.UnexpectedXmlNodeInXmlFixedPageInfoConstructor,
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (6)
63throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 79throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 100throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 120throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 134throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 148throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic);
MS\Internal\IO\Packaging\XpsFilter.cs (15)
54throw new COMException(SR.FileToFilterNotLoaded, 61throw new COMException(SR.FilterInitInvalidAttributes, 76throw new COMException(SR.FileToFilterNotLoaded, 104throw new COMException(SR.FileToFilterNotLoaded, 111throw new NullReferenceException(SR.FilterNullGetTextBufferPointer); 151throw new COMException(SR.AuxiliaryFilterReturnedAnomalousCountOfCharacters, 190throw new COMException(SR.AuxiliaryFilterReturnedAnomalousCountOfCharacters, 275throw new COMException(SR.FileToFilterNotLoaded, 291throw new NotImplementedException(SR.FilterBindRegionNotImplemented); 359throw new ArgumentException(SR.FileNameNullOrEmpty, nameof(pszFileName)); 366throw new ArgumentException(SR.FilterLoadInvalidModeFlag, nameof(dwMode)); 382throw new ArgumentException(SR.FilterLoadInvalidModeFlag, nameof(dwMode)); 459throw new COMException(SR.FilterIPersistFileIsReadOnly, NativeMethods.STG_E_CANTSAVE); 579throw new COMException(SR.FilterIPersistStreamIsReadOnly, NativeMethods.STG_E_CANTSAVE); 589throw new NotSupportedException(SR.FilterIPersistFileIsReadOnly);
MS\Internal\KnownBoxes.cs (3)
14throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative); 33throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative); 50throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative);
MS\Internal\Markup\StaticExtension.cs (8)
15using SR = System.Windows.SR; 40throw new InvalidOperationException(SR.MarkupExtensionStaticMember); 65throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, Member)); 73throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, Member)); 83throw new ArgumentException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, "IXamlTypeResolver"));
MS\Internal\Navigation\JournalEntryStack.cs (1)
138throw new InvalidOperationException(SR.EnumeratorVersionChanged);
MS\Internal\Printing\Win32PrintDialog.cs (2)
107string message = System.Windows.SR.PrintDialogInstallPrintSupportMessageBox; 108string caption = System.Windows.SR.PrintDialogInstallPrintSupportCaption;
MS\Internal\PtsHost\ContainerParagraph.cs (2)
1018throw new InvalidOperationException(SR.Format(SR.TextSchema_TextIsNotAllowedInThisContext, Element.GetType().Name));
MS\Internal\PtsHost\Pts.cs (9)
65throw new Exception(SR.Format(SR.PTSError, fserr)); 70throw new PtsException(SR.Format(SR.FormatRestrictionsExceeded, fserr)); 73throw new PtsException(SR.Format(SR.PTSError, fserr)); 124throw new Exception(SR.Format(SR.PTSError, fserr)); 159throw new Exception(SR.PTSInvalidHandle);
MS\Internal\PtsHost\StructuralCache.cs (1)
113throw new InvalidOperationException(SR.IllegalTreeChangeDetectedPostAction);
System\Windows\Annotations\Annotation.cs (35)
91throw new ArgumentException(SR.TypeNameMustBeSpecified, "annotationType.Name");// needs better message 95throw new ArgumentException(SR.TypeNameMustBeSpecified, "annotationType.Namespace");//needs better message 127throw new ArgumentException(SR.TypeNameMustBeSpecified, "annotationType.Name");//needs better message 131throw new ArgumentException(SR.TypeNameMustBeSpecified, "annotationType.Namespace");//needs better message 136throw new ArgumentException(SR.InvalidGuid, nameof(id)); 140throw new ArgumentException(SR.ModificationEarlierThanCreation, nameof(lastModificationTime)); 196throw new InvalidOperationException(SR.CannotSerializeInvalidInstance); 325throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Annotation)); 340throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Annotation)); 550throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, elementName)); 640throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.Attributes.TypeName)); 651throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.Attributes.TypeName)); 658throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.Attributes.TypeName)); 664throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.Elements.Annotation)); 672throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Annotation)); 676throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.CreationTime, AnnotationXmlConstants.Elements.Annotation)); 680throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.LastModificationTime, AnnotationXmlConstants.Elements.Annotation)); 684throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.TypeName, AnnotationXmlConstants.Elements.Annotation)); 733throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 787throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 836throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
71throw new ArgumentException(SR.OnlyFlowAndFixedSupported);
System\Windows\Annotations\AnnotationHelper.cs (6)
496throw new InvalidOperationException(SR.EmptySelectionNotSupported); 597throw new ArgumentException(SR.InvalidSelectionPages); 920throw new InvalidOperationException(SR.EmptySelectionNotSupported); 928throw new ArgumentException(SR.InvalidHighlightColor, nameof(highlightBrush)); 1084throw new ArgumentException(SR.AnnotationServiceNotEnabled, nameof(service)); 1098throw new InvalidOperationException(SR.OnlyFlowFixedSupported);
System\Windows\Annotations\AnnotationResource.cs (7)
76throw new ArgumentException(SR.InvalidGuid, nameof(id)); 190throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Resource)); 455throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.Elements.Resource)); 462throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Resource));
System\Windows\Annotations\AnnotationService.cs (18)
134throw new ArgumentException(SR.ParameterMustBeLogicalNode, nameof(root)); 165throw new InvalidOperationException(SR.AnnotationServiceIsAlreadyEnabled); 204throw new InvalidOperationException(SR.OnlyFlowFixedSupported); 225throw new InvalidOperationException(SR.AnnotationServiceNotEnabled); 353throw new ArgumentException(SR.ParameterMustBeLogicalNode, nameof(element)); 358throw new InvalidOperationException(SR.AnnotationServiceNotEnabled); 388throw new ArgumentException(SR.ParameterMustBeLogicalNode, nameof(element)); 393throw new InvalidOperationException(SR.AnnotationServiceNotEnabled); 427throw new InvalidOperationException(SR.AnnotationServiceNotEnabled); 452public static readonly RoutedUICommand CreateHighlightCommand = new RoutedUICommand(SR.CreateHighlight, "CreateHighlight", typeof(AnnotationService), null); 457public static readonly RoutedUICommand CreateTextStickyNoteCommand = new RoutedUICommand(SR.CreateTextNote, "CreateTextStickyNote", typeof(AnnotationService), null); 462public static readonly RoutedUICommand CreateInkStickyNoteCommand = new RoutedUICommand(SR.CreateInkNote, "CreateInkStickyNote", typeof(AnnotationService), null); 467public static readonly RoutedUICommand ClearHighlightsCommand = new RoutedUICommand(SR.ClearHighlight, "ClearHighlights", typeof(AnnotationService), null); 472public static readonly RoutedUICommand DeleteStickyNotesCommand = new RoutedUICommand(SR.DeleteNotes, "DeleteStickyNotes", typeof(AnnotationService), null); 477public static readonly RoutedUICommand DeleteAnnotationsCommand = new RoutedUICommand(SR.DeleteAnnotations, "DeleteAnnotations", typeof(AnnotationService), null); 1050throw new InvalidOperationException(SR.AnnotationServiceAlreadyExists); 1136throw new InvalidOperationException(SR.AnnotationServiceAlreadyExists); 1284throw new Exception(SR.AnnotationAlreadyExistInService);
System\Windows\Annotations\LocatorGroup.cs (2)
145throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.ContentLocatorGroup));
System\Windows\Annotations\LocatorPart.cs (2)
48throw new ArgumentException(SR.TypeNameMustBeSpecified, "partType.Name"); 52throw new ArgumentException(SR.TypeNameMustBeSpecified, "partType.Namespace");
System\Windows\Annotations\LocatorPartList.cs (12)
207throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.ContentLocator)); 240throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.Elements.Item)); 247throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemName, AnnotationXmlConstants.Elements.Item)); 251throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemValue, AnnotationXmlConstants.Elements.Item)); 267throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.Elements.Item)); 278throw new XmlException(SR.Format(SR.InvalidXmlContent, part.PartType.Name));
System\Windows\Annotations\Storage\XmlStreamStore.cs (15)
67throw new ArgumentException(SR.StreamDoesNotSupportSeek); 134throw new ArgumentException(SR.AnnotationAlreadyExists, nameof(newAnnotation)); 138throw new ArgumentException(SR.AnnotationAlreadyExists, nameof(newAnnotation)); 363throw new UnauthorizedAccessException(SR.StreamCannotBeWritten); 566throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Annotation)); 575throw new InvalidOperationException(SR.CannotParseId, fe); 782throw new ArgumentException(SR.NullUri, nameof(knownNamespaces)); 786throw new ArgumentException(SR.DuplicatedUri, nameof(knownNamespaces)); 800throw new ArgumentException(SR.NullUri, nameof(knownNamespaces)); 805throw new ArgumentException(SR.DuplicatedCompatibleUri, nameof(knownNamespaces)); 879throw new ArgumentException(SR.Format(SR.InvalidNamespace, xmlNamespace), nameof(xmlNamespace)); 930throw new ObjectDisposedException(null, SR.ObjectDisposed_StoreClosed); 933throw new InvalidOperationException(SR.StreamNotSet);
System\Windows\Application.cs (31)
115throw new InvalidOperationException(SR.MultiSingleton); 352throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString")); 355throw new ArgumentException(SR.AbsoluteUriNotAllowed); 418throw new Exception(SR.Format(SR.ContentTypeNotSupported, contentType)); 426throw new Exception(SR.Format(SR.UriNotMatchWithRootType, component.GetType( ), resourceLocator)); 442throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString")); 445throw new ArgumentException(SR.AbsoluteUriNotAllowed); 493throw new Exception(SR.Format(SR.ContentTypeNotSupported, contentType.ToString())); 579throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriResource", "OriginalString")); 583throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed); 611throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriContent", "OriginalString")); 615throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed); 640throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriRemote", "OriginalString")); 646throw new ArgumentException(SR.NonPackSooAbsoluteUriNotAllowed); 840throw new InvalidOperationException(SR.ShutdownModeWhenAppShutdown); 1095throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "ResourceAssembly", "Application")); 1680throw new InvalidOperationException(SR.Format(SR.CannotCallRunMultipleTimes, this.GetType().FullName)); 1687throw new ArgumentException(SR.Format(SR.WindowPassedShouldBeOnApplicationThread, window.GetType().FullName, this.GetType().FullName)); 2043throw new InvalidOperationException(SR.ApplicationShuttingDown); 2397throw new InvalidOperationException(SR.ApplicationAlreadyRunning);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (8)
197throw new InvalidOperationException(SR.SetFocusFailed); 203throw new InvalidOperationException(SR.SetFocusFailed); 412return SR.CalendarAutomationPeer_MonthMode; 417return SR.CalendarAutomationPeer_YearMode; 422return SR.CalendarAutomationPeer_DecadeMode; 486throw new InvalidOperationException(SR.InavalidStartItem); 510throw new InvalidOperationException(SR.CalendarNamePropertyValueNotValid); 528throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\CalendarButtonAutomationPeer.cs (2)
63return IsDayButton ? SR.CalendarAutomationPeer_DayButtonLocalizedControlType : SR.CalendarAutomationPeer_CalendarButtonLocalizedControlType;
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (3)
99throw new InvalidOperationException(SR.SetFocusFailed); 102throw new InvalidOperationException(SR.SetFocusFailed); 107throw new InvalidOperationException(SR.SetFocusFailed);
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (9)
190return SR.DataGridCellItemAutomationPeer_LocalizedControlType; 226name = SR.Format(SR.DataGridCellItemAutomationPeer_NameCoreFormat, Item, _column.DisplayIndex); 650throw new InvalidOperationException(SR.DataGrid_AutomationInvokeFailed); 687throw new InvalidOperationException(SR.DataGrid_CannotSelectCell); 712throw new InvalidOperationException(SR.DataGrid_CannotSelectCell); 728throw new InvalidOperationException(SR.DataGrid_CannotSelectCell); 753throw new InvalidOperationException(SR.DataGrid_ColumnIsReadOnly); 802throw new ElementNotAvailableException(SR.VirtualizedElement);
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (3)
166throw new InvalidOperationException(SR.DataGridColumnHeaderItemAutomationPeer_Unsupported); 177throw new InvalidOperationException(SR.DataGridColumnHeaderItemAutomationPeer_Unresizable); 183throw new InvalidOperationException(SR.DataGridColumnHeaderItemAutomationPeer_Unsupported);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (2)
158throw new ArgumentException(SR.PropertyNotSupported); 185throw new InvalidOperationException(SR.InavalidStartItem);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (6)
135throw new ArgumentException(SR.PropertyNotSupported); 157throw new InvalidOperationException(SR.InavalidStartItem); 251throw new InvalidOperationException(SR.DataGrid_AutomationInvokeFailed); 288throw new InvalidOperationException(SR.DataGridRow_CannotSelectRowWhenCells); 316throw new InvalidOperationException(SR.DataGridRow_CannotSelectRowWhenCells); 332throw new InvalidOperationException(SR.DataGridRow_CannotSelectRowWhenCells);
System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (3)
68throw new InvalidOperationException(SR.SetFocusFailed); 74throw new InvalidOperationException(SR.SetFocusFailed); 118return SR.DatePickerAutomationPeer_LocalizedControlType;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (8)
235return string.Format(DateTimeHelper.GetCurrentDateFormat(), SR.CalendarAutomationPeer_BlackoutDayHelpText, dateString); 303return IsDayButton ? SR.CalendarAutomationPeer_DayButtonLocalizedControlType : SR.CalendarAutomationPeer_CalendarButtonLocalizedControlType; 638throw new ElementNotAvailableException(SR.VirtualizedElement); 657throw new ElementNotAvailableException(SR.VirtualizedElement); 697throw new ElementNotAvailableException(SR.VirtualizedElement); 723throw new ElementNotAvailableException(SR.VirtualizedElement); 934throw new ElementNotAvailableException(SR.VirtualizedElement);
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (3)
212name = SR.FlowDocumentReader_MultipleViewProvider_PageViewName; 216name = SR.FlowDocumentReader_MultipleViewProvider_TwoPageViewName; 220name = SR.FlowDocumentReader_MultipleViewProvider_ScrollViewName;
System\Windows\Automation\Peers\GridSplitterAutomationPeer.cs (2)
52throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 56throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed);
System\Windows\Automation\Peers\GridViewColumnHeaderAutomationPeer.cs (2)
71throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 93throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed);
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
314throw new InvalidOperationException(SR.SetFocusFailed);
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
125throw new ElementNotAvailableException(SR.VirtualizedElement);
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
235throw new ArgumentException(SR.PropertyNotSupported); 262throw new InvalidOperationException(SR.InavalidStartItem);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (3)
202throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 220throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 278throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed);
System\Windows\Automation\Peers\ProgressBarAutomationPeer.cs (1)
47throw new InvalidOperationException(SR.ProgressBarReadOnly);
System\Windows\Automation\Peers\RadioButtonAutomationPeer.cs (2)
64throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 75throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed);
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (8)
85throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 105throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 125throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 148throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 153throw new ArgumentOutOfRangeException(nameof(horizontalPercent), SR.Format(SR.ScrollViewer_OutOfRange, "horizontalPercent", horizontalPercent.ToString(CultureInfo.InvariantCulture), "0", "100")); 157throw new ArgumentOutOfRangeException(nameof(verticalPercent), SR.Format(SR.ScrollViewer_OutOfRange, "verticalPercent", verticalPercent.ToString(CultureInfo.InvariantCulture), "0", "100"));
System\Windows\Automation\Peers\SelectorItemAutomationPeer.cs (2)
40throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 60throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed);
System\Windows\Automation\Peers\TabItemAutomationPeer.cs (1)
88throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (3)
262throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 278throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed); 330throw new InvalidOperationException(SR.UIA_OperationCannotBePerformed);
System\Windows\ColorConvertedBitmapExtension.cs (5)
59throw new InvalidOperationException(SR.ColorConvertedBitmapExtensionSyntax); 77throw new InvalidOperationException(SR.ColorConvertedBitmapExtensionNoSourceImage); 81throw new InvalidOperationException(SR.ColorConvertedBitmapExtensionNoSourceProfile); 92throw new InvalidOperationException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, "IUriContext" ));
System\Windows\ComponentResourceKey.cs (2)
54throw new InvalidOperationException(SR.ChangingTypeNotAllowed); 86throw new InvalidOperationException(SR.ChangingIdNotAllowed);
System\Windows\ComponentResourceKeyConverter.cs (2)
100throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "ComponentResourceKey"));
System\Windows\Condition.cs (24)
51throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, conditionValue, conditionProperty.Name)); 83throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Condition")); 88throw new InvalidOperationException(SR.ConditionCannotUseBothPropertyAndBinding); 106throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Condition")); 111throw new InvalidOperationException(SR.ConditionCannotUseBothPropertyAndBinding); 129throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Condition")); 134throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 140throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported); 164throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Condition")); 185throw new InvalidOperationException(SR.ConditionCannotUseBothPropertyAndBinding); 193throw new InvalidOperationException(SR.Format(SR.NullPropertyIllegal, "Property")); 198throw new InvalidOperationException(SR.Format(SR.InvalidPropertyValue, _value, _property.Name)); 206throw new InvalidOperationException(SR.Format(SR.NullPropertyIllegal, "Binding")); 211throw new InvalidOperationException(SR.Format(SR.UnexpectedValueTypeForCondition, type));
System\Windows\ConditionCollection.cs (3)
101throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "ConditionCollection")); 112throw new ArgumentException(SR.MustBeCondition);
System\Windows\Controls\AccessText.cs (1)
533throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\AdornedElementPlaceholder.cs (7)
59throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 62throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType())); 142throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 165throw new InvalidOperationException(SR.AdornedElementPlaceholderMustBeInTemplate); 183throw new InvalidOperationException(SR.AdornedElementPlaceholderMustBeInTemplate);
System\Windows\Controls\AVElementHelper.cs (3)
99throw new ArgumentException(SR.AudioVideo_InvalidDependencyObject); 271throw new NotSupportedException(SR.AudioVideo_CannotControlMedia); 721throw new InvalidOperationException(SR.MediaElement_CannotSetSourceOnMediaElementDrivenByClock);
System\Windows\Controls\Calendar.cs (2)
576throw new ArgumentOutOfRangeException(nameof(d), SR.Calendar_OnSelectedDateChanged_InvalidValue); 581throw new InvalidOperationException(SR.Calendar_OnSelectedDateChanged_InvalidOperation);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (7)
158throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 179throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 190throw new ArgumentOutOfRangeException(SR.Calendar_UnSelectableDates); 202throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 223throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 243throw new ArgumentOutOfRangeException(SR.Calendar_UnSelectableDates); 288throw new ArgumentOutOfRangeException(SR.Calendar_UnSelectableDates);
System\Windows\Controls\ColumnDefinition.cs (33)
78throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank); 82throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 86throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 104throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 108throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 228throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 242throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 286throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 305throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 309throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 313throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 430throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 440throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 456throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 466throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 534throw new InvalidOperationException(SR.Format(SR.GridCollection_CannotModifyReadOnly, "ColumnDefinitionCollection")); 549throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition")); 554throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "ColumnDefinitionCollection")); 570throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition")); 799throw new InvalidOperationException(SR.EnumeratorNotStarted); 804throw new InvalidOperationException(SR.EnumeratorReachedEnd); 825throw new InvalidOperationException(SR.EnumeratorNotStarted); 830throw new InvalidOperationException(SR.EnumeratorReachedEnd); 873throw new InvalidOperationException(SR.EnumeratorCollectionDisposed); 877throw new InvalidOperationException(SR.EnumeratorVersionChanged);
System\Windows\Controls\ContentControl.cs (1)
195throw new InvalidOperationException(SR.ContentControlCannotHaveMultipleContent);
System\Windows\Controls\ContextMenu.cs (4)
678throw new InvalidOperationException(SR.Format(SR.ElementMustBeInPopup, "ContextMenu")); 688throw new InvalidOperationException(SR.Format(SR.ElementMustBeInPopup, "ContextMenu"));
System\Windows\Controls\ContextMenuService.cs (1)
43throw new ArgumentException(SR.ContextMenuInDifferentDispatcher);
System\Windows\Controls\Control.cs (2)
498return SR.Format(SR.ToStringFormatString_Control, base.ToString(), plainText);
System\Windows\Controls\CustomDictionarySources.cs (3)
92throw new ArgumentException(SR.CustomDictionaryItemAlreadyExists, nameof(item)); 338throw new ArgumentException(SR.CustomDictionaryNullItem); 344throw new NotSupportedException(SR.CustomDictionarySourcesUnsupportedURI);
System\Windows\Controls\DataErrorValidationRule.cs (2)
105throw new InvalidOperationException(SR.Format(SR.ValidationRule_UnexpectedValue, this, value));
System\Windows\Controls\DataGrid.cs (4)
383throw new ArgumentOutOfRangeException(nameof(displayIndex), displayIndex, SR.DataGrid_DisplayIndexOutOfRange); 4118throw new InvalidOperationException(SR.DataGrid_CannotSelectCell); 7109throw new InvalidOperationException(SR.DataGrid_ProbableInvalidSortDescription, invalidOperationException); 8222throw new NotSupportedException(SR.ClipboardCopyMode_Disabled);
System\Windows\Controls\DataGridColumnCollection.cs (13)
40throw new ArgumentNullException(nameof(item), SR.DataGrid_NullColumn); 45throw new ArgumentException(SR.Format(SR.DataGrid_InvalidColumnReuse, item.Header), nameof(item)); 61throw new ArgumentNullException(nameof(item), SR.DataGrid_NullColumn); 66throw new ArgumentOutOfRangeException(nameof(index), SR.Format(SR.DataGrid_ColumnIndexOutOfRange, item.Header)); 71throw new ArgumentException(SR.Format(SR.DataGrid_InvalidColumnReuse, item.Header), nameof(item)); 475throw new ArgumentOutOfRangeException("displayIndex", oldDisplayIndex, SR.Format(SR.DataGrid_ColumnDisplayIndexOutOfRange, changingColumn.Header)); 497throw new ArgumentException(SR.DataGrid_DuplicateDisplayIndex); 718throw new ArgumentOutOfRangeException(nameof(displayIndex), displayIndex, SR.Format(SR.DataGrid_ColumnDisplayIndexOutOfRange, column.Header));
System\Windows\Controls\DataGridLength.cs (4)
78SR.DataGridLength_Infinity, 89SR.DataGridLength_InvalidType, 96SR.DataGridLength_Infinity, 103SR.DataGridLength_Infinity,
System\Windows\Controls\DataGridRow.cs (1)
1054throw new InvalidOperationException(SR.DataGridRow_CannotSelectRowWhenCells);
System\Windows\Controls\DatePicker.cs (4)
703_dropDownButton.Content = SR.DatePicker_DropDownButtonName; 1126DatePickerDateValidationErrorEventArgs dateValidationError = new DatePickerDateValidationErrorEventArgs(new ArgumentOutOfRangeException(nameof(text), SR.Calendar_OnSelectedDateChanged_InvalidValue), text); 1287this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.LongDatePattern.ToString()); 1293this._textBox.Watermark = string.Format(CultureInfo.CurrentCulture, SR.DatePicker_WatermarkText, dtfi.ShortDatePattern.ToString());
System\Windows\Controls\Decorator.cs (5)
65throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 70throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType())); 173throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\DocumentViewer.cs (11)
866throw new NotSupportedException(SR.DocumentViewerOnlySupportsFixedDocumentSequence); 1421_viewThumbnailsCommand = new RoutedUICommand(SR.DocumentViewerViewThumbnailsCommandText, 1436SR.DocumentViewerViewFitToWidthCommandText, 1451SR.DocumentViewerViewFitToHeightCommandText, 1466SR.DocumentViewerViewFitToMaxPagesAcrossCommandText, 1927throw new ArgumentException(SR.DocumentViewerArgumentMustBeInteger, nameof(data)); 1960throw new ArgumentException(SR.DocumentViewerArgumentMustBePercentage, nameof(data)); 2059throw new NotSupportedException(SR.DocumentViewerStyleMustIncludeContentHost); 2147SR.DocumentViewerSearchUpCompleteLabel : 2148SR.DocumentViewerSearchDownCompleteLabel; 2164SR.DocumentViewerSearchCompleteTitle,
System\Windows\Controls\FlowDocumentReader.cs (9)
98throw new NotSupportedException(SR.FlowDocumentReaderDecoratorMarkedAsContentHostMustHaveNoContent); 747throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1320executedHandler, canExecuteHandler, KeyGesture.CreateFromResourceStrings(KeySwitchViewingMode, nameof(SR.KeySwitchViewingModeDisplayString))); 1616throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1648throw new ArgumentException(SR.FlowDocumentReaderCannotDisableAllViewingModes); 1654throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1917throw new ArgumentException(SR.FlowDocumentReaderCanHaveOnlyOneChild); 1921throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), nameof(value));
System\Windows\Controls\FlowDocumentScrollViewer.cs (5)
124throw new NotSupportedException(SR.FlowDocumentScrollViewerMarkedAsContentHostMustHaveNoContent); 1184throw new ArgumentException(SR.FlowDocumentScrollViewerDocumentBelongsToAnotherFlowDocumentScrollViewerAlready); 1800throw new ArgumentException(SR.FlowDocumentScrollViewerCanHaveOnlyOneChild); 1804throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), nameof(value));
System\Windows\Controls\Frame.cs (4)
537throw new InvalidOperationException(SR.FrameNoAddChild); 846throw new InvalidOperationException(SR.InvalidOperation_NoJournal); 920throw new InvalidOperationException(SR.InvalidOperation_NoJournal); 934throw new InvalidOperationException(SR.InvalidOperation_NoJournal);
System\Windows\Controls\Grid.cs (5)
77throw (new ArgumentException(SR.Format(SR.Grid_UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value))); 317throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 3917throw new InvalidOperationException(SR.EnumeratorNotStarted); 3922throw new InvalidOperationException(SR.EnumeratorReachedEnd);
System\Windows\Controls\GridSplitter.cs (1)
423throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\GridView.cs (3)
62throw new InvalidOperationException(SR.ListView_IllegalChildrenType); 88return SR.Format(SR.ToStringFormatString_GridView, this.GetType(), Columns.Count);
System\Windows\Controls\GridViewColumn.cs (2)
61return SR.Format(SR.ToStringFormatString_GridViewColumn, this.GetType(), Header);
System\Windows\Controls\GridViewColumnCollection.cs (2)
431throw new InvalidOperationException(SR.ListView_NotAllowShareColumnToTwoColumnCollection); 439throw new InvalidOperationException(SR.ListView_GridViewColumnCollectionIsReadOnly);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1187throw new ArgumentException(SR.Format(SR.ListView_MissingParameterlessConstructor, headerType), e);
System\Windows\Controls\GridViewRowPresenter.cs (2)
34return SR.Format(SR.ToStringFormatString_GridViewRowPresenter,
System\Windows\Controls\GroupItem.cs (3)
186throw new InvalidOperationException(SR.Format(SR.StyleForWrongType, style.TargetType.Name, this.GetType().Name)); 267throw new InvalidOperationException(SR.PageCacheSizeNotAllowed);
System\Windows\Controls\HeaderedContentControl.cs (2)
412return SR.Format(SR.ToStringFormatString_HeaderedContentControl, typeText, headerText, contentText);
System\Windows\Controls\HeaderedItemsControl.cs (2)
363return SR.Format(SR.ToStringFormatString_HeaderedItemsControl, typeText, headerText, itemCount);
System\Windows\Controls\InkCanvas.cs (6)
81KeyGesture.CreateFromResourceStrings(InkCanvasDeselectKey, nameof(SR.InkCanvasDeselectKeyDisplayString))); 379throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 1842throw new ArgumentException(SR.InvalidPoint, nameof(point)); 2471KeyGesture.CreateFromResourceStrings(KeyShiftDelete, nameof(SR.KeyShiftDeleteDisplayString))); 2474KeyGesture.CreateFromResourceStrings(KeyCtrlInsert, nameof(SR.KeyCtrlInsertDisplayString))); 2479InputGesture pasteInputGesture = KeyGesture.CreateFromResourceStrings(KeyShiftInsert, SR.KeyShiftInsertDisplayString);
System\Windows\Controls\InkPresenter.cs (2)
253throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 267throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\ItemCollection.cs (29)
246throw new InvalidOperationException(SR.ItemsSourceInUse); 286throw new ArgumentException(SR.BadTargetArray, nameof(array)); // array is multidimensional. 335throw new InvalidOperationException(SR.ItemCollectionHasNoCollection); 749throw new NotSupportedException(SR.ItemCollectionShouldUseInnerSyncRoot); 887throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "NewItemPlaceholderPosition")); 926throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew")); 945throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitNew")); 962throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelNew")); 1043throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "RemoveAt")); 1059throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "Remove")); 1083throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "EditItem")); 1100throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CommitEdit")); 1117throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "CancelEdit")); 1224throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem")); 1497throw new InvalidOperationException(SR.CannotUseItemsSource); 1932throw new InvalidOperationException(SR.ItemsSourceInUse); 1975throw new InvalidOperationException(SR.NoCheckOrChangeWhenDeferred); 2229throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\ItemContainerGenerator.cs (42)
168throw new ArgumentException(SR.PanelIsNotItemsHost, nameof(panel)); 207throw new InvalidOperationException(SR.GenerationInProgress); 216throw new InvalidOperationException(SR.GenerationInProgress); 225throw new InvalidOperationException(SR.GenerationNotInProgress); 233throw new InvalidOperationException(SR.GenerationNotInProgress); 272throw new ArgumentException(SR.Format(SR.RemoveRequiresOffsetZero, position.Index, position.Offset), nameof(position)); 274throw new ArgumentException(SR.Format(SR.RemoveRequiresPositiveCount, count), nameof(count)); 302throw new InvalidOperationException(SR.Format(SR.CannotRemoveUnrealizedItems, index, count)); 333throw new InvalidOperationException(SR.CannotRecyleHeterogeneousTypes); 1011errors.Add(SR.Format(SR.Generator_CountIsWrong, accumulatedCount, _items.Count)); 1031errors.Add(SR.Format(SR.Generator_ItemIsWrong, index, genItem, actualItem)); 1043errors.Add(SR.Format(SR.Generator_MoreErrors, badItems - reportedItems)); 1056name = SR.Generator_Unnamed; 1065sb.AppendLine(SR.Generator_Readme0); // Developer info: 1066sb.Append (SR.Format(SR.Generator_Readme1, peer, name)); // The exception is thrown because... 1068sb.AppendLine(SR.Generator_Readme2); // The following differences... 1076sb.AppendLine(SR.Generator_Readme3); // The following sources... 1082sb.AppendLine(SR.Generator_Readme4); // Starred sources are considered more likely 1085sb.AppendLine(SR.Generator_Readme5); // The most common causes... 1088sb.Append (SR.Generator_Readme6); sb.Append(" "); // Stack trace describes detection... 1089sb.Append (SR.Format(SR.Generator_Readme7, // To get better detection... 1092sb.AppendLine(SR.Format(SR.Generator_Readme8, // One way to do this ... 1094sb.AppendLine(SR.Generator_Readme9); // This slows down the app. 1101throw new InvalidOperationException(SR.Generator_Inconsistent, exception); 2250throw new InvalidOperationException(SR.CannotFindRemovedItem); 2375throw new InvalidOperationException(SR.Format(SR.CollectionAddEventMissingItem, item)); 2392throw new NotSupportedException(SR.RangeActionsNotSupported); 2398throw new NotSupportedException(SR.RangeActionsNotSupported); 2407throw new NotSupportedException(SR.RangeActionsNotSupported); 2417throw new NotSupportedException(SR.RangeActionsNotSupported); 2427throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
System\Windows\Controls\ItemsControl.cs (8)
412throw new InvalidOperationException(SR.DisplayMemberPathAndItemTemplateSelectorDefined); 654throw new InvalidOperationException(SR.ItemTemplateSelectorBreaksDisplayMemberPath); 658throw new InvalidOperationException(SR.DisplayMemberPathAndItemTemplateDefined); 1321Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement); 3477throw new InvalidOperationException(SR.Format(SR.StyleForWrongType, style.TargetType.Name, container.GetType().Name)); 3964return SR.Format(SR.ToStringFormatString_ItemsControl, this.GetType(), itemsCount);
System\Windows\Controls\ItemsPanelTemplate.cs (7)
73throw new InvalidOperationException(SR.TemplateNotTargetType); 117throw new InvalidOperationException(SR.Format(SR.ItemsPanelNotAPanel, templateHolder.RootType)); 125throw new InvalidOperationException(SR.Format(SR.ItemsPanelNotAPanel, root.Type)); 155throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, "ItemsPresenter", templatedParent.GetType().Name));
System\Windows\Controls\ItemsPresenter.cs (1)
46throw new InvalidOperationException(SR.ItemsPanelNotSingleNode);
System\Windows\Controls\ListBox.cs (5)
75CommandHelpers.RegisterCommandHandler(typeof(ListBox), ListBox.SelectAllCommand, new ExecutedRoutedEventHandler(OnSelectAll), new CanExecuteRoutedEventHandler(OnQueryStatusSelectAll), KeyGesture.CreateFromResourceStrings(ListBoxSelectAllKey, SR.ListBoxSelectAllKeyDisplayString)); 102throw new NotSupportedException(SR.ListBoxSelectAllSelectionMode); 1007throw new InvalidOperationException(SR.Format(SR.ListBoxInvalidAnchorItem, value)); 1055new RoutedUICommand(SR.ListBoxSelectAllText, "SelectAll", typeof(ListBox));
System\Windows\Controls\ListView.cs (1)
93throw new InvalidOperationException(SR.ListView_ViewCannotBeShared);
System\Windows\Controls\MenuItem.cs (2)
2101throw new InvalidOperationException(SR.Format(SR.InvalidItemContainer, this.GetType().Name, nameof(MenuItem), nameof(Separator), itemContainer));
System\Windows\Controls\MultipleCopiesCollection.cs (5)
230throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 235throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 254throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 269throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 274throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource);
System\Windows\Controls\Page.cs (6)
82throw new InvalidOperationException(SR.PageCannotHaveMultipleContent); 158throw new InvalidOperationException(SR.CannotQueryPropertiesWhenPageNotInTreeWithWindow); 213throw new InvalidOperationException(SR.CannotQueryPropertiesWhenPageNotInTreeWithWindow); 265throw new InvalidOperationException(SR.CannotQueryPropertiesWhenPageNotInTreeWithWindow); 361throw new InvalidOperationException(SR.CannotQueryPropertiesWhenPageNotInTreeWithWindow); 697throw new InvalidOperationException(SR.ParentOfPageMustBeWindowOrFrame);
System\Windows\Controls\PageRanges.cs (1)
143rangeText = String.Format(CultureInfo.InvariantCulture, SR.PrintDialogPageRange, _pageFrom, _pageTo);
System\Windows\Controls\Panel.cs (5)
84throw new InvalidOperationException(SR.Panel_BoundPanel_NoChildren); 91throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 375throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 574throw new InvalidOperationException(SR.Panel_ItemsControlNotFound);
System\Windows\Controls\PasswordBox.cs (3)
940throw new NotSupportedException(SR.TextBoxScrollViewerMarkedAsTextBoxContentMustHaveNoContent); 951throw new NotSupportedException(SR.TextBoxDecoratorMarkedAsTextBoxContentMustHaveNoContent); 970throw new NotSupportedException(SR.PasswordBoxInvalidTextContainer);
System\Windows\Controls\PopupControlService.cs (1)
460throw new NotSupportedException(SR.ToolTipStaysOpenFalseNotAllowed);
System\Windows\Controls\Primitives\BulletDecorator.cs (1)
217throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\CalendarItem.cs (2)
185this._previousButton.Content = SR.Calendar_PreviousButtonName; 197this._nextButton.Content = SR.Calendar_NextButtonName;
System\Windows\Controls\Primitives\DatePickerTextBox.cs (2)
44this.SetCurrentValue(WatermarkProperty, SR.DatePickerTextBox_DefaultWatermarkText); 153string.Format(CultureInfo.InvariantCulture, SR.DatePickerTextBox_TemplatePartIsOfIncorrectType, partName, typeof(T).Name));
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
472throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
864throw new ArgumentException(SR.DocumentViewerPageViewsCollectionEmpty); 874throw new ArgumentException(SR.DocumentViewerOneMasterPage); 1701throw new InvalidOperationException(SR.DocumentViewerCanHaveOnlyOneChild); 1707throw new ArgumentException(SR.DocumentViewerChildMustImplementIDocumentPaginatorSource, nameof(value));
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (3)
34return SR.Format(SR.ToStringFormatString_GridViewRowPresenterBase, 125throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\MenuBase.cs (2)
504throw new InvalidOperationException(SR.Format(SR.InvalidItemContainer, this.GetType().Name, nameof(MenuItem), nameof(Separator), itemContainer));
System\Windows\Controls\Primitives\MultiSelector.cs (1)
87throw new NotSupportedException(SR.MultiSelectorSelectAll);
System\Windows\Controls\Primitives\Popup.cs (7)
351throw new InvalidOperationException(SR.PopupReopeningNotAllowed); 890throw new InvalidOperationException(SR.Format(SR.CreateRootPopup_ChildHasLogicalParent, child, currentParent)); 895throw new InvalidOperationException(SR.Format(SR.CreateRootPopup_ChildHasVisualParent, child, currentParent)); 1297throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value));
System\Windows\Controls\Primitives\PopupRoot.cs (1)
69throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\Primitives\RangeBase.cs (2)
387return SR.Format(SR.ToStringFormatString_RangeBase, typeText, min, max, val);
System\Windows\Controls\Primitives\ScrollBar.cs (22)
829verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 831verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Top), "Top", ScrollBar.ScrollToTopCommand)); 832verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Bottom), "Bottom", ScrollBar.ScrollToBottomCommand)); 834verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageUp), "PageUp", ScrollBar.PageUpCommand)); 835verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageDown), "PageDown", ScrollBar.PageDownCommand)); 837verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollUp), "ScrollUp", ScrollBar.LineUpCommand)); 838verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollDown), "ScrollDown", ScrollBar.LineDownCommand)); 849horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 851horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToLeftEndCommand)); 852horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToRightEndCommand)); 854horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageLeftCommand)); 855horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageRightCommand)); 857horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineLeftCommand)); 858horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineRightCommand)); 869horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 871horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToRightEndCommand)); 872horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToLeftEndCommand)); 874horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageRightCommand)); 875horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageLeftCommand)); 877horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineRightCommand)); 878horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineLeftCommand)); 887Header = SR.GetResourceString(name),
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (4)
341throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 354throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 679throw new ArgumentOutOfRangeException(parameterName, SR.Format(SR.ScrollViewer_CannotBeNaN, parameterName));
System\Windows\Controls\Primitives\Selector.cs (12)
862throw new InvalidOperationException(SR.ChangingCollectionNotSupported); 873throw new NotSupportedException(SR.RangeActionsNotSupported); 880throw new NotSupportedException(SR.RangeActionsNotSupported); 902throw new NotSupportedException(SR.RangeActionsNotSupported); 912throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 1242throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 1430throw new InvalidOperationException(SR.CannotSelectNotSelectableItem); 2271Debug.Assert(!_active, SR.SelectionChangeActive); 2493Debug.Assert(_active, SR.SelectionChangeNotActive); 2550Debug.Assert(_active, SR.SelectionChangeNotActive);
System\Windows\Controls\Primitives\StatusBar.cs (2)
123throw new InvalidOperationException(SR.Format(SR.InvalidItemContainer, this.GetType().Name, nameof(StatusBarItem), nameof(Separator), itemContainer));
System\Windows\Controls\Primitives\TextBoxBase.cs (6)
396throw new InvalidOperationException(SR.TextBoxBase_UnmatchedEndChange); 1627throw new InvalidOperationException(SR.TextBoxBase_CantSetIsUndoEnabledInsideChangeBlock); 1657throw new InvalidOperationException(SR.TextBoxBase_CantSetIsUndoEnabledInsideChangeBlock); 1907throw new NotSupportedException(SR.TextBoxScrollViewerMarkedAsTextBoxContentMustHaveNoContent); 1921throw new NotSupportedException(SR.TextBoxDecoratorMarkedAsTextBoxContentMustHaveNoContent); 1940throw new NotSupportedException(SR.TextBoxInvalidTextContainer);
System\Windows\Controls\Primitives\ToggleButton.cs (2)
308return SR.Format(SR.ToStringFormatString_ToggleButton, typeText, contentText, isChecked.HasValue ? isChecked.Value.ToString() : "null");
System\Windows\Controls\Primitives\Track.cs (3)
164throw new NotSupportedException(SR.Track_SameButtons); 205throw new NotSupportedException(SR.Track_SameButtons); 362return _visualChildren?[index] ?? throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\PrintDialog.cs (5)
83throw new System.ArgumentException(SR.PrintDialogInvalidPageRange, "PageRange"); 161throw new System.ArgumentException(SR.Format(SR.PrintDialogZeroNotAllowed, "MinPage")); 181throw new System.ArgumentException(SR.Format(SR.PrintDialogZeroNotAllowed, "MaxPage"));
System\Windows\Controls\RichTextBox.cs (7)
153throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), nameof(value)); 158throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType())); 360throw new ArgumentException(SR.RichTextBox_DocumentBelongsToAnotherRichTextBoxAlready); 365throw new InvalidOperationException(SR.RichTextBox_CantSetDocumentInsideChangeBlock); 576throw new ArgumentException(SR.RichTextBox_PointerNotInSameDocument, nameof(value));
System\Windows\Controls\RowDefinition.cs (33)
73throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank); 77throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 81throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 99throw new ArgumentOutOfRangeException(SR.Format(SR.GridCollection_DestArrayInvalidLowerBound, "index")); 103throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 223throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 237throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 281throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 300throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 304throw new ArgumentOutOfRangeException(SR.TableCollectionCountNeedNonNegNum); 308throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 425throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 435throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 451throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 461throw new ArgumentOutOfRangeException(SR.TableCollectionOutOfRange); 529throw new InvalidOperationException(SR.Format(SR.GridCollection_CannotModifyReadOnly, "RowDefinitionCollection")); 544throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition")); 549throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "RowDefinitionCollection")); 565throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition")); 794throw new InvalidOperationException(SR.EnumeratorNotStarted); 799throw new InvalidOperationException(SR.EnumeratorReachedEnd); 820throw new InvalidOperationException(SR.EnumeratorNotStarted); 825throw new InvalidOperationException(SR.EnumeratorReachedEnd); 868throw new InvalidOperationException(SR.EnumeratorCollectionDisposed); 872throw new InvalidOperationException(SR.EnumeratorVersionChanged);
System\Windows\Controls\SelectedDatesCollection.cs (7)
133throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 151throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 199throw new ArgumentOutOfRangeException(SR.Calendar_OnSelectedDateChanged_InvalidValue); 212throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 261throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 446throw new InvalidOperationException(SR.Calendar_OnSelectedDateChanged_InvalidOperation); 451throw new InvalidOperationException(SR.Calendar_CheckSelectionMode_InvalidOperation);
System\Windows\Controls\SelectedItemCollection.cs (7)
86throw new InvalidOperationException(SR.InsertInDeferSelectionActive); 105throw new InvalidOperationException(SR.SetInDeferSelectionActive); 127throw new InvalidOperationException(SR.MoveInDeferSelectionActive); 188throw new InvalidOperationException(SR.DeferSelectionActive); 201throw new InvalidOperationException(SR.DeferSelectionNotActive); 225throw new InvalidOperationException(SR.DeferSelectionNotActive); 238throw new InvalidOperationException(SR.DeferSelectionNotActive);
System\Windows\Controls\SinglePageViewer.cs (1)
513throw new NotSupportedException(SR.FlowDocumentPageViewerOnlySupportsFlowDocument);
System\Windows\Controls\Stack.cs (1)
852throw new ArgumentException(SR.Stack_VisualInDifferentSubTree,nameof(child));
System\Windows\Controls\StickyNote.cs (2)
1679throw new InvalidOperationException(SR.CannotProcessInkCommand); 1741throw new ArgumentException(SR.InvalidInkForeground);
System\Windows\Controls\TextAdaptor.cs (3)
490throw new InvalidOperationException(SR.TextProvider_TextSelectionNotSupported); 641throw new InvalidOperationException(SR.TextProvider_InvalidChildElement); 670throw new ArgumentException(SR.TextProvider_InvalidPoint);
System\Windows\Controls\TextBlock.cs (10)
127throw new ArgumentException(SR.Format(SR.TextPanelIllegalParaTypeForIAddChild, "value", value.GetType())); 145throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parentType.Name, valueType.Name)); 389throw new InvalidOperationException(SR.TextContainerChangingReentrancyInvalid); 1846throw new InvalidOperationException(SR.TextContainerChangingReentrancyInvalid); 3340throw new InvalidOperationException(SR.IllegalTreeChangeDetected); 3559throw new InvalidOperationException(SR.MeasureReentrancyInvalid); 3564throw new InvalidOperationException(SR.ArrangeReentrancyInvalid); 3569throw new InvalidOperationException(SR.TextContainerChangingReentrancyInvalid);
System\Windows\Controls\TextBox.cs (3)
130throw new InvalidOperationException(SR.Format(SR.TextBoxInvalidChild, value.ToString())); 1086throw new Exception(SR.TextBoxMinMaxLinesMismatch);
System\Windows\Controls\TextRangeAdaptor.cs (6)
510throw new ArgumentException(SR.TextRangeProvider_WrongTextRange); 1751throw new ArgumentException(SR.Format(SR.TextRangeProvider_EmptyStringParameter, "text")); 1854throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidParameterValue, maxLength, "maxLength")); 2036throw new InvalidOperationException(SR.TextProvider_TextSelectionNotSupported);
System\Windows\Controls\ToolBar.cs (4)
596throw new NotSupportedException(SR.Format(SR.ToolBar_InvalidStyle_ToolBarPanel, child.GetType())); 619throw new NotSupportedException(SR.Format(SR.ToolBar_InvalidStyle_ToolBarOverflowPanel, child.GetType()));
System\Windows\Controls\ToolBarTray.cs (3)
272throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(ToolBar)), nameof(value)); 475throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\ToolTip.cs (4)
455throw new InvalidOperationException(SR.Format(SR.ElementMustBeInPopup, "ToolTip")); 465throw new InvalidOperationException(SR.Format(SR.ElementMustBeInPopup, "ToolTip"));
System\Windows\Controls\TreeView.cs (2)
439throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\TreeViewItem.cs (3)
354throw new InvalidOperationException(SR.PageCacheSizeNotAllowed); 979throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\UIElementCollection.cs (9)
36throw new ArgumentNullException(SR.Format(SR.Panel_NoNullVisualParent, "visualParent", this.GetType())); 386throw new System.ArgumentException(SR.Format(SR.Collection_NoNull, "UIElementCollection")); 391throw new System.ArgumentException(SR.Format(SR.Collection_BadType, "UIElementCollection", value.GetType().Name, "UIElement")); 515throw new ArgumentNullException(SR.Format(SR.Panel_NoNullChildren, this.GetType())); 524throw new InvalidOperationException(SR.Panel_BoundPanel_NoChildren);
System\Windows\Controls\ViewBox.cs (1)
236throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Controls\ViewPort3D.cs (3)
186throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 232throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(Visual3D)), nameof(value));
System\Windows\Controls\VirtualizationCacheLength.cs (4)
68throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "cacheBeforeViewport")); 73throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "cacheAfterViewport"));
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (2)
212throw new FormatException(SR.Format(SR.InvalidStringVirtualizationCacheLength, s));
System\Windows\Controls\VirtualizedCellInfoCollection.cs (7)
69throw new ArgumentException(SR.SelectedCellsCollection_InvalidItem, nameof(cell)); 74throw new ArgumentException(SR.SelectedCellsCollection_DuplicateItem, nameof(cell)); 125throw new ArgumentException(SR.SelectedCellsCollection_InvalidItem, nameof(cell)); 331throw new NotSupportedException(SR.VirtualizedCellInfoCollection_DoesNotSupportIndexChanges); 369throw new NotSupportedException(SR.VirtualizedCellInfoCollection_DoesNotSupportIndexChanges); 389throw new NotSupportedException(SR.VirtualizedCellInfoCollection_DoesNotSupportIndexChanges); 1627throw new NotSupportedException(SR.VirtualizedCellInfoCollection_IsReadOnly);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
4245throw new InvalidOperationException(SR.CantSwitchVirtualizationModePostMeasure);
System\Windows\Controls\WebBrowser.cs (5)
337throw new InvalidOperationException(SR.CannotInvokeScript); 432throw new ArgumentException(SR.NeedToBeComVisible); 656throw new InvalidOperationException(SR.WebBrowserNoCastToIWebBrowser2); 742throw new InvalidOperationException(SR.CannotBeInsidePopup); 873throw new ArgumentException(SR.AbsoluteUriOnly, nameof(source));
System\Windows\ControlTemplate.cs (5)
67throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, _targetType.Name, templatedParent.GetType().Name)); 73throw new ArgumentException(SR.MustNotTemplateUnassociatedControl); 138throw new ArgumentException(SR.Format(SR.InvalidControlTemplateTargetType, targetType.Name));
System\Windows\CornerRadiusConverter.cs (6)
123throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(CornerRadius)), nameof(value)); 134throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CornerRadius), destinationType.FullName)); 184throw new FormatException(SR.Format(SR.InvalidStringCornerRadius, s));
System\Windows\Data\Binding.cs (8)
317throw new InvalidOperationException(SR.Format(SR.BindingConflict, SourceProperties.StaticSource, _sourceInUse)); 516throw new InvalidOperationException(SR.Format(SR.BindingConflict, SourceProperties.Source, _sourceInUse)); 550throw new InvalidOperationException(SR.Format(SR.BindingConflict, SourceProperties.RelativeSource, _sourceInUse)); 569throw new InvalidOperationException(SR.Format(SR.BindingConflict, SourceProperties.ElementName, _sourceInUse));
System\Windows\Data\BindingBase.cs (1)
422throw new InvalidOperationException(SR.ChangeSealedBinding);
System\Windows\Data\BindingExpression.cs (14)
183throw new InvalidOperationException(SR.BindingExpressionIsDetached); 193throw new InvalidOperationException(SR.BindingExpressionIsDetached); 212throw new InvalidOperationException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "Property", "args")); 394throw new ArgumentException(SR.Format(SR.PropertyNotBindable, dp.Name), nameof(dp)); 404throw new InvalidOperationException(SR.TwoWayBindingNeedsPath); 825throw new InvalidOperationException(SR.MissingValueConverter); // report instead of throw? 1562throw new InvalidOperationException(SR.Format(SR.ValidationRule_UnknownStep, validationRule.ValidationStep, validationRule)); 1918ValidationError validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Format(SR.Validation_ConversionFailed, rawValue), null); 2105throw new InvalidOperationException(SR.Format(SR.ValidationRule_UnknownStep, validationStep, bindingGroup));
System\Windows\Data\BindingExpressionBase.cs (5)
1277throw new InvalidOperationException(SR.Format(SR.RequiresExplicitCulture, TargetProperty.Name)); 1842throw new InvalidOperationException(SR.BindingGroup_CannotChangeGroups); 2112throw new InvalidOperationException(SR.Format(SR.BindingExpressionStatusChanged, _status, status));
System\Windows\Data\BindingGroup.cs (4)
457throw new ValueUnavailableException(SR.Format(SR.BindingGroup_NoEntry, item, propertyName)); 459throw new ValueUnavailableException(SR.Format(SR.BindingGroup_ValueUnavailable, item, propertyName));
System\Windows\Data\BindingListCollectionView.cs (53)
304throw new NotSupportedException(SR.BindingListCannotCustomFilter); 306throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomFilter")); 369throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "GroupBySelector")); 429throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew")); 569throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew")); 649throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem")); 696throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem")); 872throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt")); 884throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove")); 897throw new InvalidOperationException(SR.RemovingPlaceholder); 955throw new ArgumentException(SR.CannotEditPlaceholder, nameof(item)); 980throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew")); 1019throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew")); 1033throw new InvalidOperationException(SR.CancelEditNotSupported); 1122set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveSorting", "CanChangeLiveSorting")); } 1134set { throw new InvalidOperationException(SR.Format(SR.CannotChangeLiveShaping, "IsLiveFiltering", "CanChangeLiveFiltering")); } 1557throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 1918throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType)); 1930throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType)); 1987throw new InvalidOperationException(SR.Format(SR.InconsistentBindingList, InternalList, args.ListChangedType)); 2170throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting")); 2196throw new ArgumentException(SR.CannotDetermineSortByPropertiesForCollection); 2205throw new ArgumentException(SR.Format(SR.PropertyToSortByNotFoundOnType, typeName, sorts[i].PropertyName)); 2309throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping")); 2319throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping")); 2434throw new NotSupportedException(SR.RangeActionsNotSupported); 2439throw new NotSupportedException(SR.RangeActionsNotSupported); 2444throw new NotSupportedException(SR.RangeActionsNotSupported); 2449throw new NotSupportedException(SR.RangeActionsNotSupported); 2451throw new InvalidOperationException(SR.CannotMoveToUnknownPosition); 2458throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 2516throw new InvalidOperationException(SR.BindingListCanOnlySortByOneProperty);
System\Windows\Data\BindingOperations.cs (2)
364throw new InvalidOperationException(SR.Format(SR.AccessCollectionAfterShutDown, collection));
System\Windows\Data\CollectionView.cs (19)
301throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Refresh")); 327throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "DeferRefresh")); 837throw new InvalidOperationException(SR.Format(SR.ImplementOtherMembersWithSort, "Refresh()")); 892throw new InvalidOperationException(SR.Format(SR.ImplementOtherMembersWithSort, "GetEnumerator()")); 1165throw new NotSupportedException(SR.MultiThreadedCollectionChangeNotSupported); 1422throw new InvalidOperationException(SR.NoCheckOrChangeWhenDeferred); 1630throw new InvalidOperationException(SR.EnumeratorVersionChanged); 1952throw new NotSupportedException(SR.RangeActionsNotSupported); 1957throw new NotSupportedException(SR.RangeActionsNotSupported); 1959throw new InvalidOperationException(SR.RemovedItemNotFound); 1964throw new NotSupportedException(SR.RangeActionsNotSupported); 1969throw new NotSupportedException(SR.RangeActionsNotSupported); 1971throw new InvalidOperationException(SR.CannotMoveToUnknownPosition); 1978throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Data\CollectionViewSource.cs (7)
184throw new InvalidOperationException(SR.CollectionViewTypeIsInitOnly); 1000throw new InvalidOperationException(SR.Format(SR.CannotSortView, view)); 1018throw new InvalidOperationException(SR.Format(SR.CannotFilterView, view)); 1030throw new InvalidOperationException(SR.Format(SR.CannotGroupView, view));
System\Windows\Data\CompositeCollection.cs (2)
243SR.ItemCollectionRemoveArgumentOutOfRange); 475throw new ArgumentException(SR.CollectionContainerMustBeUniqueForComposite, nameof(cc));
System\Windows\Data\ListCollectionView.cs (49)
437throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Filter")); 461throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "CustomSort")); 483throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping")); 542throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "NewItemPlaceholderPosition", "AddNew")); 716throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNew")); 739throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedForView, "AddNewItem")); 825throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitNew", "EditItem")); 941throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelNew", "EditItem")); 1050throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "RemoveAt")); 1062throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Remove")); 1075throw new InvalidOperationException(SR.RemovingPlaceholder); 1152throw new ArgumentException(SR.CannotEditPlaceholder, nameof(item)); 1177throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CommitEdit", "AddNew")); 1285throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringTransaction, "CancelEdit", "AddNew")); 1299throw new InvalidOperationException(SR.CancelEditNotSupported); 2061Invariant.Assert(false, SR.Format(SR.UnexpectedCollectionChangeAction, effectiveAction)); 2411throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 2501throw new NotSupportedException(SR.RangeActionsNotSupported); 2506throw new NotSupportedException(SR.RangeActionsNotSupported); 2511throw new NotSupportedException(SR.RangeActionsNotSupported); 2516throw new NotSupportedException(SR.RangeActionsNotSupported); 2518throw new InvalidOperationException(SR.CannotMoveToUnknownPosition); 2525throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 2669throw new InvalidOperationException(SR.Format(SR.CollectionChangeIndexOutOfRange, index, ilFull.Count)); 2676throw new InvalidOperationException(SR.Format(SR.AddedItemNotAtIndex, index)); 2683throw new InvalidOperationException(SR.AddedItemNotInCollection); 2909throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Sorting")); 3002throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping")); 3012throw new InvalidOperationException(SR.Format(SR.MemberNotAllowedDuringAddOrEdit, "Grouping"));
System\Windows\Data\MultiBinding.cs (4)
56throw new ArgumentException(SR.Format(SR.ChildHasWrongType, this.GetType().Name, "BindingBase", value.GetType().FullName), nameof(value)); 341throw new InvalidOperationException(SR.MultiBindingHasNoConverter); 378throw new InvalidOperationException(SR.NoUpdateSourceTriggerForInnerBindingOfMultiBinding);
System\Windows\Data\MultiBindingExpression.cs (8)
111throw new InvalidOperationException(SR.BindingExpressionIsDetached); 127throw new InvalidOperationException(SR.BindingExpressionIsDetached); 159throw new ArgumentException(SR.Format(SR.PropertyNotBindable, dp.Name), nameof(dp)); 489ValidationError validationError = new ValidationError(ConversionValidationRule.Instance, this, SR.Format(SR.Validation_ConversionFailed, value), null); 849throw new InvalidOperationException(SR.Format(SR.ValidationRule_UnknownStep, validationStep, bindingGroup));
System\Windows\Data\ObjectDataProvider.cs (7)
98throw new InvalidOperationException(SR.ObjectDataProviderCanHaveOnlyOneSource); 151throw new InvalidOperationException(SR.ObjectDataProviderCanHaveOnlyOneSource); 383e = new InvalidOperationException(SR.ObjectDataProviderHasNoSource); 480e = new InvalidOperationException(SR.Format(SR.ObjectDataProviderNonCLSException, _objectType.Name)); 559e = new InvalidOperationException(SR.Format(SR.ObjectDataProviderNonCLSExceptionInvoke, MethodName, _objectType.Name));
System\Windows\Data\PriorityBinding.cs (2)
53throw new ArgumentException(SR.Format(SR.ChildHasWrongType, this.GetType().Name, "BindingBase", value.GetType().FullName), nameof(value));
System\Windows\Data\PriorityBindingExpression.cs (2)
140throw new ArgumentException(SR.Format(SR.PropertyNotBindable, dp.Name), nameof(dp));
System\Windows\Data\RelativeSource.cs (7)
85throw new InvalidOperationException(SR.RelativeSourceNeedsMode); 87throw new InvalidOperationException(SR.RelativeSourceNeedsAncestorType); 154throw new InvalidOperationException(SR.RelativeSourceModeIsImmutable); 178throw new InvalidOperationException(SR.RelativeSourceNotInFindAncestorMode); 214throw new InvalidOperationException(SR.RelativeSourceNotInFindAncestorMode); 218throw new ArgumentOutOfRangeException(SR.RelativeSourceInvalidAncestorLevel); 289throw new ArgumentException(SR.RelativeSourceModeInvalid, nameof(mode));
System\Windows\Data\XmlDataProvider.cs (2)
368throw new Exception(SR.WebRequestCreationFailed); 570throw new InvalidOperationException(SR.GetResponseFailed);
System\Windows\Data\XmlNamespaceMapping.cs (12)
46throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Prefix", this.GetType().Name)); 48throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Prefix", this.GetType().Name)); 65throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "Uri", this.GetType().Name)); 67throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "Uri", this.GetType().Name)); 137throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Prefix", this.GetType().Name)); 141throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "Uri", this.GetType().Name));
System\Windows\Data\XmlNamespaceMappingCollection.cs (7)
50throw new ArgumentException(SR.Format(SR.RequiresXmlNamespaceMapping, value.GetType().FullName), nameof(value)); 88throw new ArgumentException(SR.RequiresXmlNamespaceMappingUri, nameof(mapping)); 122throw new ArgumentException(SR.RequiresXmlNamespaceMappingUri, nameof(mapping)); 139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, nameof(arrayIndex), nameof(array))); 157throw new ArgumentException(SR.RequiresXmlNamespaceMappingUri, nameof(mapping));
System\Windows\DataTemplate.cs (3)
142throw new InvalidOperationException(SR.TemplateNotTargetType); 192throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, "ContentPresenter", templatedParent.GetType().Name));
System\Windows\DataTrigger.cs (9)
44throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "DataTrigger")); 72throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "DataTrigger")); 77throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 83throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported); 174throw new InvalidOperationException(SR.Format(SR.UnexpectedValueTypeForDataTrigger, propertyValue.ValueType));
System\Windows\DeferrableContentConverter.cs (5)
36throw new InvalidOperationException(SR.ExpectedBamlSchemaContext); 49throw new InvalidOperationException(SR.ExpectedResourceDictionaryTarget); 63throw new InvalidOperationException(SR.ExpectedBinaryContent); 80throw new InvalidOperationException(SR.Format(SR.DeferringLoaderNoContext, nameof(DeferrableContentConverter), typeof(T).Name));
System\Windows\DependencyPropertyHelper.cs (1)
203throw new ArgumentException(SR.ElementMustBelongToTemplate, nameof(elementInTemplate));
System\Windows\DescendentsWalker.cs (2)
386throw new InvalidOperationException(SR.LogicalTreeLoop); 412throw new InvalidOperationException(SR.LogicalTreeLoop);
System\Windows\DialogResultConverter.cs (2)
61throw new InvalidOperationException(SR.CantSetInMarkup); 73throw new InvalidOperationException(SR.CantSetInMarkup);
System\Windows\Documents\AdornerDecorator.cs (2)
207throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 220throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Documents\AdornerLayer.cs (6)
235throw new InvalidOperationException(SR.AdornedElementNotFound); 562throw new InvalidOperationException(SR.AdornedElementNotFound); 567throw new InvalidOperationException(SR.AdornerNotFound); 588throw new InvalidOperationException(SR.AdornedElementNotFound); 593throw new InvalidOperationException(SR.AdornerNotFound); 682throw new InvalidOperationException(SR.AdornedElementNotFound);
System\windows\Documents\CaretElement.cs (1)
106throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Documents\DocumentReference.cs (2)
272throw new ApplicationException(SR.DocumentReferenceNotFound); 291throw new ApplicationException(SR.DocumentReferenceUnsupportedMimeType);
System\Windows\Documents\DocumentSequence.cs (11)
101throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(DocumentReference)), nameof(value)); 118throw new InvalidOperationException(SR.PrevoiusUninitializedDocumentReferenceOutstanding); 241throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 266throw new ArgumentOutOfRangeException(nameof(fixedDocPageNumber), SR.IDPNegativePageNumber); 291throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 324throw new ArgumentException(SR.IDPInvalidContentPosition); 717throw new NotSupportedException(SR.RangeActionsNotSupported); 731throw new ApplicationException(SR.DocumentReferenceHasInvalidDocument); 747throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
System\Windows\Documents\DocumentSequenceTextContainer.cs (9)
346throw new ArgumentException(SR.Format(SR.NotInAssociatedContainer, "position")); 352throw new ArgumentException(SR.Format(SR.BadFixedTextPosition, "position")); 595throw new NotSupportedException(SR.RangeActionsNotSupported); 604throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 634throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
System\Windows\Documents\DocumentSequenceTextPointer.cs (12)
226throw new InvalidOperationException(SR.DocumentReadOnly); 238throw new InvalidOperationException(SR.DocumentReadOnly); 453if (_isFrozen) throw new InvalidOperationException(SR.TextPositionIsFrozen); 658throw new ArgumentException(SR.Format(SR.NegativeValue, "startIndex")); 662throw new ArgumentException(SR.Format(SR.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 666throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 670throw new ArgumentException(SR.Format(SR.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex)); 785throw new ArgumentException(SR.BadDistance, nameof(distance));
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (18)
69throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(), 114throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType1, value.GetType(), 152throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(NamedElement)), nameof(value)); 201throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(ListItemStructure)), nameof(value)); 243throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(), 296throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowGroupStructure)), nameof(value)); 338throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowStructure)), nameof(value)); 381throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCellStructure)), nameof(value)); 425throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
System\Windows\Documents\DocumentStructures\StoryFragments.cs (4)
46throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(StoryFragment)), nameof(value)); 106throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType6, value.GetType(),
System\Windows\Documents\FixedDocument.cs (11)
135throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(PageContent)), nameof(value)); 153throw new InvalidOperationException(SR.PrevoiusPartialPageContentOutstanding); 322throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 367throw new ArgumentOutOfRangeException(nameof(pageNumber), SR.IDPNegativePageNumber); 403throw new ArgumentException(SR.IDPInvalidContentPosition); 443throw new ArgumentException(SR.FixedDocumentExpectsDependencyObject); 666ApplicationException ae = new ApplicationException(string.Format(System.Globalization.CultureInfo.CurrentCulture, SR.ExceptionInGetPage, index), e); 880throw new FileFormatException(SR.InvalidDSContentType); 909throw new FileFormatException(SR.InvalidSFContentType); 913throw new FileFormatException(SR.InvalidStoryFragmentsMarkup);
System\Windows\Documents\FixedLineResult.cs (2)
46throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FixedLineResult)), nameof(o));
System\Windows\Documents\FixedNode.cs (2)
151throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FixedNode)), nameof(o));
System\Windows\Documents\FixedPage.cs (3)
187throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 707throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Documents\FixedSchema.cs (14)
45throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedEncoding); 52throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedEncoding); 214throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedRootNamespaceUri); 324throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedMimeType); 550throw new FileFormatException(SR.XpsValidatingLoaderMoreThanOnePrintTicketPart); 561throw new FileFormatException(SR.XpsValidatingLoaderPrintTicketHasIncorrectType); 572throw new FileFormatException(SR.XpsValidatingLoaderMoreThanOneThumbnailPart); 584throw new FileFormatException(SR.XpsValidatingLoaderThumbnailHasIncorrectType); 604throw new FileFormatException(SR.XpsValidatingLoaderRestrictedFontHasIncorrectType); 620throw new FileFormatException(SR.XpsValidatingLoaderMoreThanOneDiscardControlInPackage); 631throw new FileFormatException(SR.XpsValidatingLoaderDiscardControlHasIncorrectType); 643throw new FileFormatException(SR.XpsValidatingLoaderMoreThanOneThumbnailInPackage); 655throw new FileFormatException(SR.XpsValidatingLoaderThumbnailHasIncorrectType); 694throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedMimeType);
System\Windows\Documents\FixedSOMContainer.cs (2)
37throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, comparedObj.GetType(), typeof(FixedSOMContainer)), nameof(comparedObj));
System\Windows\Documents\FixedSOMGroup.cs (2)
39throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, comparedObj.GetType(), typeof(FixedSOMGroup)), nameof(comparedObj));
System\Windows\Documents\FixedSOMSemanticBox.cs (2)
94throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FixedSOMSemanticBox)), nameof(o));
System\Windows\Documents\FixedTextContainer.cs (4)
313throw new ArgumentException(SR.Format(SR.NotInAssociatedContainer, "position")); 320throw new ArgumentException(SR.Format(SR.BadFixedTextPosition, "position"));
System\Windows\Documents\FixedTextPointer.cs (9)
128throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 209throw new InvalidOperationException(SR.NoElementObject); 275throw new ArgumentException(SR.BadDistance, nameof(distance)); 391if (_isFrozen) throw new InvalidOperationException(SR.TextPositionIsFrozen); 395throw new ArgumentException(SR.BadDistance, nameof(offset)); 426throw new InvalidOperationException(SR.NoElementObject); 495throw new InvalidOperationException(SR.FixedDocumentReadonly); 503throw new InvalidOperationException(SR.FixedDocumentReadonly);
System\Windows\Documents\FlowDocument.cs (8)
796throw new InvalidOperationException(SR.FlowDocumentInvalidContnetChange); 1387throw new InvalidOperationException(SR.FlowDocumentInvalidContnetChange); 1440throw new InvalidOperationException(SR.FlowDocumentInvalidContnetChange); 1475throw new InvalidOperationException(SR.FlowDocumentInvalidContnetChange); 1629throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, _typeofThis.Name, value.GetType().Name)); 1635throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, value.GetType().Name));
System\Windows\Documents\FlowNode.cs (2)
113throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FlowNode)), nameof(o));
System\Windows\Documents\FlowPosition.cs (2)
69throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FlowPosition)), nameof(o));
System\Windows\Documents\Glyphs.cs (17)
248throw new ArgumentException(SR.GlyphsCaretStopsContainsHexDigits, "CaretStops"); 255throw new ArgumentException(SR.GlyphsCaretStopsLengthCorrespondsToUnicodeString, "CaretStops"); 262throw new ArgumentException(SR.GlyphsCaretStopsLengthCorrespondsToUnicodeString, "CaretStops"); 269throw new ArgumentException(SR.GlyphsCaretStopsLengthCorrespondsToUnicodeString, "CaretStops"); 276throw new ArgumentException(SR.GlyphsCaretStopsLengthCorrespondsToUnicodeString, "CaretStops"); 300throw new ArgumentException(SR.GlyphsUnicodeStringAndIndicesCannotBothBeEmpty); 401throw new ArgumentException(SR.GlyphsClusterBadCharactersBeforeBracket); 405throw new ArgumentException(SR.GlyphsClusterNoNestedClusters); 409throw new ArgumentException(SR.GlyphsClusterNoMatchingBracket); 423throw new ArgumentException(SR.GlyphsClusterMisplacedSeparator); 460throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort); 560throw new ArgumentException(SR.GlyphsIndexRequiredIfNoUnicode); 563throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort); 592throw new ArgumentException(SR.GlyphsAdvanceWidthCannotBeNegative); 610throw new ArgumentException(SR.GlyphsTooManyCommas); 655throw new ArgumentException(SR.GlyphsIndexRequiredWithinCluster); 658throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort);
System\Windows\Documents\InlineCollection.cs (2)
167throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.Parent.GetType().Name, child.GetType().Name));
System\Windows\Documents\InputScopeAttribute.cs (3)
60throw new COMException(SR.InputScopeAttribute_E_OUTOFMEMORY, NativeMethods.E_OUTOFMEMORY); 88throw new COMException(SR.InputScopeAttribute_E_OUTOFMEMORY, NativeMethods.E_OUTOFMEMORY); 107throw new COMException(SR.InputScopeAttribute_E_OUTOFMEMORY, NativeMethods.E_OUTOFMEMORY);
System\Windows\Documents\List.cs (1)
184throw new InvalidOperationException(SR.ListElementItemNotAChildOfList);
System\Windows\Documents\NaturalLanguageHyphenator.cs (1)
121throw new ObjectDisposedException(SR.HyphenatorDisposed);
System\Windows\Documents\NLGSpellerInterop.cs (3)
116throw new ObjectDisposedException(SR.TextEditorSpellerInteropHasBeenDisposed); 977throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath), e);
System\Windows\Documents\PageContent.cs (11)
173throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FixedPage)), nameof(value)); 178throw new InvalidOperationException(SR.Format(SR.CanOnlyHaveOneChild, typeof(PageContent), value)); 271throw new InvalidOperationException(SR.Format(SR.CanOnlyHaveOneChild, typeof(PageContent), value)); 371throw new ApplicationException(SR.PageContentNotFound); 586throw new ApplicationException(SR.PageContentNotFound); 605throw new ApplicationException(SR.PageContentUnsupportedMimeType); 610throw new ApplicationException(SR.Format(SR.PageContentUnsupportedPageType, o.GetType()));
System\Windows\Documents\RangeContentEnumerator.cs (5)
65throw new InvalidOperationException(SR.EnumeratorNotStarted); 80throw new InvalidOperationException(SR.EnumeratorReachedEnd); 90throw new InvalidOperationException(SR.EnumeratorVersionChanged); 152throw new InvalidOperationException(SR.EnumeratorVersionChanged); 211throw new InvalidOperationException(SR.EnumeratorVersionChanged);
System\Windows\Documents\Serialization\SerializerDescriptor.cs (4)
66throw new ArgumentException(SR.SerializerProviderDisplayNameNull); 70throw new ArgumentException(SR.SerializerProviderManufacturerNameNull); 74throw new ArgumentException(SR.SerializerProviderManufacturerWebsiteNull); 78throw new ArgumentException(SR.SerializerProviderDefaultFileExtensionNull);
System\Windows\Documents\Serialization\SerializerProvider.cs (8)
79throw new ArgumentException(SR.SerializerProviderAlreadyRegistered, serializerKey); 105throw new ArgumentException(SR.SerializerProviderNotRegistered, serializerKey); 131throw new ArgumentException(SR.SerializerProviderWrongVersion, serializerKey); 147throw new ArgumentException(SR.SerializerProviderUnknownSerializer, serializerKey); 158throw new ArgumentException(SR.SerializerProviderCannotLoad, serializerDescriptor.DisplayName); 162throw new ArgumentException(SR.SerializerProviderCannotLoad, serializerDescriptor.DisplayName); 166throw new ArgumentException(SR.SerializerProviderCannotLoad, serializerDescriptor.DisplayName); 170throw new ArgumentException(SR.SerializerProviderCannotLoad, serializerDescriptor.DisplayName);
System\Windows\Documents\Span.cs (10)
92throw new ArgumentException(SR.Format(SR.InDifferentTextContainers, "start", "end")); 96throw new ArgumentException(SR.Format(SR.BadTextPositionOrder, "start", "end")); 109throw new ArgumentException(SR.Format(SR.InDifferentParagraphs, "start", "end")); 116throw new InvalidOperationException(SR.Format(SR.TextSchema_CannotSplitElement, nonMergeableAncestor.GetType().Name)); 120throw new InvalidOperationException(SR.Format(SR.TextSchema_CannotSplitElement, nonMergeableAncestor.GetType().Name));
System\Windows\Documents\Table.cs (6)
67throw (new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowGroup)), nameof(value))); 428throw new InvalidOperationException(SR.EnumeratorVersionChanged); 475throw new InvalidOperationException(SR.EnumeratorNotStarted); 480throw new InvalidOperationException(SR.EnumeratorReachedEnd); 491throw new InvalidOperationException(SR.EnumeratorVersionChanged);
System\Windows\Documents\TableCell.cs (2)
88throw new InvalidOperationException(SR.Format(SR.TableInvalidParentNodeType, newParent.GetType().ToString()));
System\Windows\Documents\TableColumnCollection.cs (2)
278throw new ArgumentException(SR.Format(SR.TableCollectionElementTypeExpected, nameof(TableColumn)), nameof(value));
System\Windows\Documents\TableRow.cs (4)
65throw (new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCell)), nameof(value))); 89throw new InvalidOperationException(SR.Format(SR.TableInvalidParentNodeType, newParent.GetType().ToString()));
System\Windows\Documents\TableRowGroup.cs (4)
67throw (new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRow)), nameof(value))); 289throw new InvalidOperationException(SR.Format(SR.TableInvalidParentNodeType, newParent.GetType().ToString()));
System\Windows\Documents\TextContainer.cs (4)
175Invariant.Assert(_undoManager == null, SR.TextContainer_UndoManagerCreatedMoreThanOnce); 3221throw new InvalidOperationException(SR.Format(SR.NotInThisTree, "position")); 3229throw new InvalidOperationException(SR.NoElement);
System\windows\Documents\TextEditor.cs (5)
332SR.Format(SR.TextEditorCanNotRegisterCommandHandler, ((Type)_registeredEditingTypes[i]).Name, controlType.Name)); 392CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Undo, new ExecutedRoutedEventHandler(OnUndo), new CanExecuteRoutedEventHandler(OnQueryStatusUndo), KeyGesture.CreateFromResourceStrings(KeyUndo, SR.KeyUndoDisplayString), KeyGesture.CreateFromResourceStrings(KeyAltUndo, SR.KeyAltUndoDisplayString)); 393CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Redo, new ExecutedRoutedEventHandler(OnRedo), new CanExecuteRoutedEventHandler(OnQueryStatusRedo), KeyGesture.CreateFromResourceStrings(KeyRedo, nameof(SR.KeyRedoDisplayString)));
System\windows\Documents\TextEditorCharacters.cs (18)
34CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ResetFormat , new ExecutedRoutedEventHandler(OnResetFormat) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyResetFormat, nameof(SR.KeyResetFormatDisplayString))); 35CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleBold , new ExecutedRoutedEventHandler(OnToggleBold) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleBold, nameof(SR.KeyToggleBoldDisplayString))); 36CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleItalic , new ExecutedRoutedEventHandler(OnToggleItalic) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleItalic, nameof(SR.KeyToggleItalicDisplayString))); 37CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleUnderline , new ExecutedRoutedEventHandler(OnToggleUnderline) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleUnderline, nameof(SR.KeyToggleUnderlineDisplayString))); 38CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleSubscript , new ExecutedRoutedEventHandler(OnToggleSubscript) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleSubscript, nameof(SR.KeyToggleSubscriptDisplayString))); 39CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleSuperscript , new ExecutedRoutedEventHandler(OnToggleSuperscript) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleSuperscript, nameof(SR.KeyToggleSuperscriptDisplayString))); 40CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.IncreaseFontSize , new ExecutedRoutedEventHandler(OnIncreaseFontSize) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyIncreaseFontSize, nameof(SR.KeyIncreaseFontSizeDisplayString))); 41CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DecreaseFontSize , new ExecutedRoutedEventHandler(OnDecreaseFontSize) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyDecreaseFontSize, nameof(SR.KeyDecreaseFontSizeDisplayString))); 43CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyFontSize , new ExecutedRoutedEventHandler(OnApplyFontSize) , onQueryStatusNYI, nameof(SR.KeyApplyFontSize), nameof(SR.KeyApplyFontSizeDisplayString)); 44CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyFontFamily , new ExecutedRoutedEventHandler(OnApplyFontFamily) , onQueryStatusNYI, nameof(SR.KeyApplyFontFamily), nameof(SR.KeyApplyFontFamilyDisplayString)); 45CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyForeground , new ExecutedRoutedEventHandler(OnApplyForeground) , onQueryStatusNYI, nameof(SR.KeyApplyForeground), nameof(SR.KeyApplyForegroundDisplayString)); 46CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyBackground , new ExecutedRoutedEventHandler(OnApplyBackground) , onQueryStatusNYI, nameof(SR.KeyApplyBackground), nameof(SR.KeyApplyBackgroundDisplayString)); 47CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleSpellCheck , new ExecutedRoutedEventHandler(OnToggleSpellCheck) , onQueryStatusNYI, nameof(SR.KeyToggleSpellCheck), nameof(SR.KeyToggleSpellCheckDisplayString));
System\windows\Documents\TextEditorContextMenu.cs (8)
507Header = SR.TextBox_ContextMenu_NoSpellingSuggestions, 517Header = SR.TextBox_ContextMenu_IgnoreAll, 534return SR.TextBox_ContextMenu_Description_SBCSSpace; 538return SR.TextBox_ContextMenu_Description_DBCSSpace; 597Header = SR.TextBox_ContextMenu_More, 615Header = SR.TextBox_ContextMenu_Cut, 623Header = SR.TextBox_ContextMenu_Copy, 631Header = SR.TextBox_ContextMenu_Paste,
System\windows\Documents\TextEditorCopyPaste.cs (7)
36CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnCopy), new CanExecuteRoutedEventHandler(OnQueryStatusCopy), KeyGesture.CreateFromResourceStrings(KeyCopy, SR.KeyCopyDisplayString), KeyGesture.CreateFromResourceStrings(KeyCtrlInsert, SR.KeyCtrlInsertDisplayString)); 39CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.CopyFormat, new ExecutedRoutedEventHandler(OnCopyFormat), new CanExecuteRoutedEventHandler(OnQueryStatusCopyFormat), KeyGesture.CreateFromResourceStrings(KeyCopyFormat, nameof(SR.KeyCopyFormatDisplayString))); 43CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Cut, new ExecutedRoutedEventHandler(OnCut), new CanExecuteRoutedEventHandler(OnQueryStatusCut), KeyGesture.CreateFromResourceStrings(KeyCut, SR.KeyCutDisplayString), KeyGesture.CreateFromResourceStrings(KeyShiftDelete, SR.KeyShiftDeleteDisplayString)); 47InputGesture inputGesture = KeyGesture.CreateFromResourceStrings(KeyShiftInsert, SR.KeyShiftInsertDisplayString); 51CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.PasteFormat, new ExecutedRoutedEventHandler(OnPasteFormat), new CanExecuteRoutedEventHandler(OnQueryStatusPasteFormat), KeyPasteFormat, nameof(SR.KeyPasteFormatDisplayString));
System\windows\Documents\TextEditorLists.cs (5)
29CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.RemoveListMarkers , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), KeyGesture.CreateFromResourceStrings(KeyRemoveListMarkers, nameof(SR.KeyRemoveListMarkersDisplayString))); 30CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleBullets , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), KeyGesture.CreateFromResourceStrings(KeyToggleBullets, nameof(SR.KeyToggleBulletsDisplayString))); 31CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleNumbering , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), KeyGesture.CreateFromResourceStrings(KeyToggleNumbering, nameof(SR.KeyToggleNumberingDisplayString))); 32CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.IncreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab), KeyGesture.CreateFromResourceStrings(KeyIncreaseIndentation, nameof(SR.KeyIncreaseIndentationDisplayString))); 33CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DecreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab), KeyGesture.CreateFromResourceStrings(KeyDecreaseIndentation, nameof(SR.KeyDecreaseIndentationDisplayString)));
System\windows\Documents\TextEditorParagraphs.cs (7)
36CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignLeft, new ExecutedRoutedEventHandler(OnAlignLeft), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyAlignLeft, nameof(SR.KeyAlignLeftDisplayString))); 37CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignCenter, new ExecutedRoutedEventHandler(OnAlignCenter), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyAlignCenter, nameof(SR.KeyAlignCenterDisplayString))); 38CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignRight, new ExecutedRoutedEventHandler(OnAlignRight), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyAlignRight, nameof(SR.KeyAlignRightDisplayString))); 39CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignJustify, new ExecutedRoutedEventHandler(OnAlignJustify), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyAlignJustify, nameof(SR.KeyAlignJustifyDisplayString))); 40CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplySingleSpace, new ExecutedRoutedEventHandler(OnApplySingleSpace), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyApplySingleSpace, nameof(SR.KeyApplySingleSpaceDisplayString))); 41CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyOneAndAHalfSpace, new ExecutedRoutedEventHandler(OnApplyOneAndAHalfSpace), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyApplyOneAndAHalfSpace, nameof(SR.KeyApplyOneAndAHalfSpaceDisplayString))); 42CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyDoubleSpace, new ExecutedRoutedEventHandler(OnApplyDoubleSpace), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyApplyDoubleSpace, nameof(SR.KeyApplyDoubleSpaceDisplayString)));
System\windows\Documents\TextEditorSelection.cs (37)
40CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.SelectAll, new ExecutedRoutedEventHandler(OnSelectAll), queryStatusKeyboardSelectionHandler, KeySelectAll, nameof(SR.KeySelectAllDisplayString)); 44CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveRightByCharacter, new ExecutedRoutedEventHandler(OnMoveRightByCharacter), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveRightByCharacter, nameof(SR.KeyMoveRightByCharacterDisplayString))); 45CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveLeftByCharacter, new ExecutedRoutedEventHandler(OnMoveLeftByCharacter), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveLeftByCharacter, nameof(SR.KeyMoveLeftByCharacterDisplayString))); 46CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveRightByWord, new ExecutedRoutedEventHandler(OnMoveRightByWord), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveRightByWord, nameof(SR.KeyMoveRightByWordDisplayString))); 47CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveLeftByWord, new ExecutedRoutedEventHandler(OnMoveLeftByWord), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveLeftByWord, nameof(SR.KeyMoveLeftByWordDisplayString))); 48CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveDownByLine, new ExecutedRoutedEventHandler(OnMoveDownByLine), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveDownByLine, nameof(SR.KeyMoveDownByLineDisplayString))); 49CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveUpByLine, new ExecutedRoutedEventHandler(OnMoveUpByLine), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveUpByLine, nameof(SR.KeyMoveUpByLineDisplayString))); 50CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveDownByParagraph, new ExecutedRoutedEventHandler(OnMoveDownByParagraph), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveDownByParagraph, nameof(SR.KeyMoveDownByParagraphDisplayString))); 51CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveUpByParagraph, new ExecutedRoutedEventHandler(OnMoveUpByParagraph), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveUpByParagraph, nameof(SR.KeyMoveUpByParagraphDisplayString))); 52CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveDownByPage, new ExecutedRoutedEventHandler(OnMoveDownByPage), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveDownByPage, nameof(SR.KeyMoveDownByPageDisplayString))); 53CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveUpByPage, new ExecutedRoutedEventHandler(OnMoveUpByPage), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveUpByPage, nameof(SR.KeyMoveUpByPageDisplayString))); 54CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToLineStart, new ExecutedRoutedEventHandler(OnMoveToLineStart), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToLineStart, nameof(SR.KeyMoveToLineStartDisplayString))); 55CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToLineEnd, new ExecutedRoutedEventHandler(OnMoveToLineEnd), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToLineEnd, nameof(SR.KeyMoveToLineEndDisplayString))); 56CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToColumnStart, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToColumnStart, nameof(SR.KeyMoveToColumnStartDisplayString))); 57CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToColumnEnd, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToColumnEnd, nameof(SR.KeyMoveToColumnEndDisplayString))); 58CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToWindowTop, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToWindowTop, nameof(SR.KeyMoveToWindowTopDisplayString))); 59CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToWindowBottom, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToWindowBottom, nameof(SR.KeyMoveToWindowBottomDisplayString))); 60CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToDocumentStart, new ExecutedRoutedEventHandler(OnMoveToDocumentStart), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToDocumentStart, nameof(SR.KeyMoveToDocumentStartDisplayString))); 61CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToDocumentEnd, new ExecutedRoutedEventHandler(OnMoveToDocumentEnd), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToDocumentEnd, nameof(SR.KeyMoveToDocumentEndDisplayString))); 65CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectRightByCharacter, new ExecutedRoutedEventHandler(OnSelectRightByCharacter), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectRightByCharacter, nameof(SR.KeySelectRightByCharacterDisplayString))); 66CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectLeftByCharacter, new ExecutedRoutedEventHandler(OnSelectLeftByCharacter), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectLeftByCharacter, nameof(SR.KeySelectLeftByCharacterDisplayString))); 67CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectRightByWord, new ExecutedRoutedEventHandler(OnSelectRightByWord), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectRightByWord, nameof(SR.KeySelectRightByWordDisplayString))); 68CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectLeftByWord, new ExecutedRoutedEventHandler(OnSelectLeftByWord), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectLeftByWord, nameof(SR.KeySelectLeftByWordDisplayString))); 69CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectDownByLine, new ExecutedRoutedEventHandler(OnSelectDownByLine), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectDownByLine, nameof(SR.KeySelectDownByLineDisplayString))); 70CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectUpByLine, new ExecutedRoutedEventHandler(OnSelectUpByLine), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectUpByLine, nameof(SR.KeySelectUpByLineDisplayString))); 71CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectDownByParagraph, new ExecutedRoutedEventHandler(OnSelectDownByParagraph), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectDownByParagraph, nameof(SR.KeySelectDownByParagraphDisplayString))); 72CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectUpByParagraph, new ExecutedRoutedEventHandler(OnSelectUpByParagraph), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectUpByParagraph, nameof(SR.KeySelectUpByParagraphDisplayString))); 73CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectDownByPage, new ExecutedRoutedEventHandler(OnSelectDownByPage), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectDownByPage, nameof(SR.KeySelectDownByPageDisplayString))); 74CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectUpByPage, new ExecutedRoutedEventHandler(OnSelectUpByPage), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectUpByPage, nameof(SR.KeySelectUpByPageDisplayString))); 75CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToLineStart, new ExecutedRoutedEventHandler(OnSelectToLineStart), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToLineStart, nameof(SR.KeySelectToLineStartDisplayString))); 76CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToLineEnd, new ExecutedRoutedEventHandler(OnSelectToLineEnd), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToLineEnd, nameof(SR.KeySelectToLineEndDisplayString))); 77CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToColumnStart, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToColumnStart, nameof(SR.KeySelectToColumnStartDisplayString))); 78CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToColumnEnd, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToColumnEnd, nameof(SR.KeySelectToColumnEndDisplayString))); 79CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToWindowTop, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToWindowTop, nameof(SR.KeySelectToWindowTopDisplayString))); 80CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToWindowBottom, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToWindowBottom, nameof(SR.KeySelectToWindowBottomDisplayString))); 81CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToDocumentStart, new ExecutedRoutedEventHandler(OnSelectToDocumentStart), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToDocumentStart, nameof(SR.KeySelectToDocumentStartDisplayString))); 82CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToDocumentEnd, new ExecutedRoutedEventHandler(OnSelectToDocumentEnd), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToDocumentEnd, nameof(SR.KeySelectToDocumentEndDisplayString)));
System\windows\Documents\TextEditorTables.cs (8)
32CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.InsertTable , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyInsertTable, nameof(SR.KeyInsertTableDisplayString))); 33CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.InsertRows , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyInsertRows, nameof(SR.KeyInsertRowsDisplayString))); 34CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.InsertColumns , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyInsertColumns, nameof(SR.KeyInsertColumnsDisplayString))); 35CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeleteRows , onTableCommand, onQueryStatusNYI, nameof(SR.KeyDeleteRows), nameof(SR.KeyDeleteRowsDisplayString)); 36CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeleteColumns , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyDeleteColumns, nameof(SR.KeyDeleteColumnsDisplayString))); 37CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MergeCells , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyMergeCells, nameof(SR.KeyMergeCellsDisplayString))); 38CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SplitCell , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeySplitCell, nameof(SR.KeySplitCellDisplayString)));
System\windows\Documents\TextEditorTyping.cs (14)
68CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.CorrectionList , new ExecutedRoutedEventHandler(OnCorrectionList) , new CanExecuteRoutedEventHandler(OnQueryStatusCorrectionList) , nameof(SR.KeyCorrectionList), nameof(SR.KeyCorrectionListDisplayString) ); 69CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleInsert , new ExecutedRoutedEventHandler(OnToggleInsert) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyToggleInsert, nameof(SR.KeyToggleInsertDisplayString) )); 70CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.Delete , new ExecutedRoutedEventHandler(OnDelete) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyDelete, nameof(SR.KeyDeleteDisplayString) )); 71CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeleteNextWord , new ExecutedRoutedEventHandler(OnDeleteNextWord) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyDeleteNextWord, nameof(SR.KeyDeleteNextWordDisplayString) )); 72CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeletePreviousWord , new ExecutedRoutedEventHandler(OnDeletePreviousWord) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyDeletePreviousWord, nameof(SR.KeyDeletePreviousWordDisplayString) )); 73CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.EnterParagraphBreak , onEnterBreak , onQueryStatusEnterBreak , KeyGesture.CreateFromResourceStrings(KeyEnterParagraphBreak, nameof(SR.KeyEnterParagraphBreakDisplayString) )); 74CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.EnterLineBreak , onEnterBreak , onQueryStatusEnterBreak , KeyGesture.CreateFromResourceStrings(KeyEnterLineBreak, nameof(SR.KeyEnterLineBreakDisplayString) )); 75CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.TabForward , new ExecutedRoutedEventHandler(OnTabForward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabForward) , KeyGesture.CreateFromResourceStrings(KeyTabForward, nameof(SR.KeyTabForwardDisplayString) )); 76CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.TabBackward , new ExecutedRoutedEventHandler(OnTabBackward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabBackward) , KeyGesture.CreateFromResourceStrings(KeyTabBackward, nameof(SR.KeyTabBackwardDisplayString) )); 77CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.Space , onSpace , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeySpace, nameof(SR.KeySpaceDisplayString) )); 78CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ShiftSpace , onSpace , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyShiftSpace, nameof(SR.KeyShiftSpaceDisplayString) )); 80CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.Backspace , new ExecutedRoutedEventHandler(OnBackspace) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyBackspace, SR.KeyBackspaceDisplayString), KeyGesture.CreateFromResourceStrings(KeyShiftBackspace, SR.KeyShiftBackspaceDisplayString) );
System\Windows\Documents\TextElement.cs (13)
100throw new ArgumentException(SR.TextElement_UnmatchedEndPointer); 123throw new ArgumentException(SR.Format(SR.InDifferentScope, "start", "end")); 808throw new ArgumentException(SR.Format(SR.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name)); 820throw new ArgumentException(SR.Format(SR.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name)); 836throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name)); 843throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name)); 883throw new InvalidOperationException(SR.Format(SR.TextSchema_TextIsNotAllowed, this.GetType().Name));
System\Windows\Documents\TextElementCollection.cs (28)
248throw new InvalidOperationException(SR.Format(SR.TextElementCollection_PreviousSiblingDoesNotBelongToThisCollection, previousSibling.GetType().Name)); 253throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 287throw new InvalidOperationException(SR.Format(SR.TextElementCollection_NextSiblingDoesNotBelongToThisCollection, nextSibling.GetType().Name)); 292throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 321throw new ArgumentException(SR.TextElementCollection_NoEnumerator, nameof(range)); 335throw new ArgumentException(SR.Format(SR.TextElementCollection_ItemHasUnexpectedType, "range", typeof(TextElementType).Name, typeof(TextElementType).Name), "value"); 398throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value)); 453throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value)); 458throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 463throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 477throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 488throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 543throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 550throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 564throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), nameof(value)); 614throw new ArgumentException(SR.Format(SR.TextElementCollection_CannotCopyToArrayNotSufficientMemory, count, arrayIndex, array.Length)); 768throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 775throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange);
System\Windows\Documents\TextElementEnumerator.cs (4)
83throw new InvalidOperationException(SR.EnumeratorNotStarted); 89throw new InvalidOperationException(SR.EnumeratorReachedEnd); 105throw new InvalidOperationException(SR.EnumeratorVersionChanged); 159throw new InvalidOperationException(SR.EnumeratorVersionChanged);
System\Windows\Documents\TextPointer.cs (22)
289throw new ArgumentException(SR.BadDistance); 1391throw new InvalidOperationException(SR.TextPointer_CannotInsertTextElementBecauseItBelongsToAnotherTree); 1422throw new InvalidOperationException(SR.Format(SR.TextSchema_IllegalElement, "Paragraph", containerType)); 1431throw new InvalidOperationException(SR.Format(SR.TextSchema_CannotSplitElement, ancestor.GetType().Name)); 1752throw new ArgumentException(SR.Format(SR.NegativeValue, "startIndex")); 1756throw new ArgumentException(SR.Format(SR.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 1760throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 1764throw new ArgumentException(SR.Format(SR.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex)); 2147throw new InvalidOperationException(SR.TextSchema_UIElementNotAllowedInThisPosition); 2532throw new InvalidOperationException(SR.Format(SR.NoScopingElement, "This TextPointer")); 2640throw new InvalidOperationException(SR.Format(SR.NoScopingElement, "This TextNavigator")); 3548throw new InvalidOperationException(SR.TextSchema_CannotInsertContentInThisPosition); 3905throw new ArgumentException(SR.BadDistance); 3951throw new InvalidOperationException(SR.TextPositionIsFrozen);
System\Windows\Documents\TextRange.cs (9)
784throw new ArgumentException(SR.Format(SR.TextEditorPropertyIsNotApplicableForTextFormatting, formattingProperty.Name)); 801throw new ArgumentException(SR.Format(SR.TextEditorTypeOfParameterIsNotAppropriateForFormattingProperty, value == null ? "null" : value.GetType().Name, formattingProperty.Name), nameof(value)); 811throw new ArgumentException(SR.TextRange_InvalidParameterValue, nameof(propertyValueAction)); 817throw new ArgumentException(SR.Format(SR.TextRange_PropertyCannotBeIncrementedOrDecremented, formattingProperty.Name), nameof(propertyValueAction)); 852throw new ArgumentException(SR.Format(SR.TextEditorPropertyIsNotApplicableForTextFormatting, formattingProperty.Name));
System\Windows\Documents\TextRangeBase.cs (11)
65throw new ArgumentException(SR.NotInAssociatedTree, nameof(textPointer)); 1538throw new ArgumentException(SR.Format(SR.TextRange_UnsupportedDataFormat, dataFormat), nameof(dataFormat)); 1572throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), nameof(stream)); 1584throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), nameof(stream)); 1589throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), nameof(stream)); 1596throw new ArgumentException(SR.Format(SR.TextRange_UnsupportedDataFormat, dataFormat), nameof(dataFormat));
System\Windows\Documents\TextRangeEdit.cs (2)
2286throw new InvalidOperationException(SR.Format(SR.TextRangeEdit_InvalidStructuralPropertyApply, property, nonMergeableAncestor));
System\Windows\Documents\TextRangeEditTables.cs (1)
871throw new InvalidOperationException(SR.TextSchema_CannotInsertContentInThisPosition);
System\Windows\Documents\TextSchema.cs (10)
113throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, child.GetType().Name)); 134throw new InvalidOperationException(SR.Format(SR.TextSchema_IllegalHyperlinkChild, childType)); 144throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, childType.Name)); 176throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parent.GetType().Name, childType.Name)); 897throw new InvalidOperationException(SR.Format(SR.TextSchema_IllegalHyperlinkChild, nextElement.GetType()));
System\Windows\Documents\TextStore.cs (26)
78throw new COMException(SR.TextStore_CONNECT_E_CANNOTCONNECT, unchecked((int)0x80040202)); 84throw new COMException(SR.TextStore_E_NOINTERFACE, unchecked((int)0x80004002)); 106throw new COMException(SR.TextStore_CONNECT_E_NOCONNECTION, unchecked((int)0x80040200)); 121throw new COMException(SR.TextStore_NoSink); 124throw new COMException(SR.TextStore_BadLockFlags); 154throw new COMException(SR.TextStore_ReentrantRequestLock); 474throw new COMException(SR.TextStore_TS_E_READONLY, UnsafeNativeMethods.TS_E_READONLY); 495throw new COMException(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL); 506throw new COMException(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL); 545throw new COMException(SR.TextStore_E_NOTIMPL, unchecked((int)0x80004001)); 606throw new COMException(SR.TextStore_TS_E_READONLY, UnsafeNativeMethods.TS_E_READONLY); 636throw new COMException(SR.TextStore_TS_E_FORMAT, UnsafeNativeMethods.TS_E_FORMAT); 657throw new COMException(SR.TextStore_TS_E_READONLY, UnsafeNativeMethods.TS_E_READONLY); 707throw new COMException(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL); 802throw new COMException(SR.TextStore_TS_E_READONLY, UnsafeNativeMethods.TS_E_READONLY); 838throw new COMException(SR.TextStore_TS_E_FORMAT, UnsafeNativeMethods.TS_E_FORMAT); 883throw new COMException(SR.TextStore_E_NOTIMPL, unchecked((int)0x80004001)); 957throw new COMException(SR.TextStore_TS_E_NOLAYOUT, UnsafeNativeMethods.TS_E_NOLAYOUT); 965throw new COMException(SR.TextStore_TS_E_INVALIDPOINT, UnsafeNativeMethods.TS_E_INVALIDPOINT); 1037throw new COMException(SR.TextStore_TS_E_NOLAYOUT, UnsafeNativeMethods.TS_E_NOLAYOUT); 1052throw new COMException(SR.TextStore_TS_E_NOLAYOUT, UnsafeNativeMethods.TS_E_NOLAYOUT); 1505throw new COMException(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL); 2597throw new COMException(SR.TextStore_TS_E_NOLAYOUT, UnsafeNativeMethods.TS_E_NOLAYOUT); 3332throw new ArgumentException(SR.Format(SR.TextStore_BadIMECharOffset, offset, this.TextContainer.IMECharCount)); 3423throw new COMException(SR.TextStore_CompositionRejected, NativeMethods.E_FAIL);
System\Windows\Documents\ValidationHelper.cs (10)
44throw new ArgumentException(SR.Format(SR.NotInAssociatedTree, paramName)); 59throw new ArgumentException(SR.Format(SR.InDifferentTextContainers, "startPosition", "endPosition")); 63throw new ArgumentException(SR.Format(SR.BadTextPositionOrder, "startPosition", "endPosition")); 107throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, position.Parent.GetType().Name, child.GetType().Name)); 115throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, child.GetType().Name));
System\Windows\Documents\WinRTSpellerInterop.cs (5)
110throw new ObjectDisposedException(SR.TextEditorSpellerInteropHasBeenDisposed); 430throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath)); 488throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath), e);
System\Windows\Documents\WpfPayload.cs (2)
367throw new XamlParseException(SR.TextEditorCopyPaste_EntryPartIsMissingInXamlPackage); 489throw new ArgumentException(SR.WpfPayload_InvalidImageSource);
System\Windows\Documents\XPSS0ValidatingLoader.cs (5)
81throw new FileFormatException(SR.XpsValidatingLoaderUriNotInSamePackage); 137throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedMimeType); 179throw new FileFormatException(SR.XpsValidatingLoaderDuplicateReference); 207throw new FileFormatException(SR.XpsValidatingLoaderUnlistedResource); 212throw new FileFormatException(SR.XpsValidatingLoaderUnsupportedMimeType);
System\Windows\DynamicResourceExtension.cs (1)
55throw new InvalidOperationException(SR.MarkupExtensionResourceKey);
System\Windows\DynamicResourceExtensionConverter.cs (2)
47throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "DynamicResourceExtension"), nameof(value));
System\Windows\EventSetter.cs (5)
95throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "EventSetter.Event")); 99throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "EventSetter.Handler")); 103throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventSetterHandlerConverter.cs (1)
62throw new ArgumentException(SR.TextRange_InvalidParameterValue, nameof(typeDescriptorContext));
System\Windows\EventTrigger.cs (12)
57throw new ArgumentException(SR.Format(SR.EventTriggerBadAction, value.GetType().Name)); 96throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "EventTrigger")); 105throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "EventTrigger")); 128throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "EventTrigger")); 213throw new InvalidOperationException(SR.EventTriggerDoNotSetProperties); 219throw new InvalidOperationException(SR.EventTriggerDoesNotEnterExit); 321throw new InvalidOperationException(SR.TriggersSupportsEventTriggersOnly); 363throw new InvalidOperationException(SR.TriggersSupportsEventTriggersOnly);
System\Windows\FigureLength.cs (8)
103throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "value")); 107throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoInfinity, "value")); 111throw new ArgumentOutOfRangeException(SR.Format(SR.InvalidCtorParameterNoNegative, "value")); 119throw new ArgumentException(SR.Format(SR.InvalidCtorParameterUnknownFigureUnitType, "type"));
System\Windows\FrameworkCompatibilityPreferences.cs (10)
81throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "AreInactiveSelectionHighlightBrushKeysSupported", "FrameworkCompatibilityPreferences")); 155throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "AextBoxDisplaysText", "FrameworkCompatibilityPreferences")); 194throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "UseSetWindowPosForTopmostWindows", "FrameworkCompatibilityPreferences")); 244throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "IsVirtualizingStackPanel_45Compatible", "FrameworkCompatibilityPreferences")); 377SR.Format(SR.CompatibilityPreferencesSealed,
System\Windows\FrameworkContentElement.cs (4)
1512throw new InvalidOperationException(SR.Illegal_InheritanceBehaviorSettor); 1529throw new InvalidOperationException(SR.NestedBeginInitNotSupported); 1544throw new InvalidOperationException(SR.EndInitWithoutBeginInitNotSupported); 2099throw new ArgumentOutOfRangeException(nameof(value), SR.TemplateChildIndexOutOfRange);
System\Windows\FrameworkElement.cs (11)
477throw new ArgumentException( SR.Format(SR.TargetNameNotFound, targetName)); 487throw new InvalidOperationException(SR.Format(SR.NamedObjectMustBeFrameworkElement, targetName)); 636throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 640throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange); 1173throw new InvalidOperationException(SR.LogicalTreeLoop); 2650throw new InvalidOperationException(SR.Illegal_InheritanceBehaviorSettor); 5398throw new InvalidOperationException(SR.NestedBeginInitNotSupported); 5413throw new InvalidOperationException(SR.EndInitWithoutBeginInitNotSupported); 6238throw new ArgumentOutOfRangeException(nameof(value), SR.TemplateChildIndexOutOfRange);
System\Windows\FrameworkElementFactory.cs (51)
72throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory")); 77throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText); 87throw new ArgumentException(SR.Format(SR.MustBeFrameworkOr3DDerived, value.Name)); 116throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory")); 121throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText); 140throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory")); 144throw new ArgumentException(SR.NameNotEmptyString); 160throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory")); 167throw new ArgumentException(SR.FrameworkElementFactoryAlreadyParented); 172throw new InvalidOperationException(SR.FrameworkElementFactoryCannotAddText); 199throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory")); 209throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, dp.Name)); 215throw new NotSupportedException(SR.Format(SR.ModifyingLogicalTreeViaStylesNotImplemented, value, "FrameworkElementFactory.SetValue")); 222throw new ArgumentException(SR.Format(SR.ReadOnlyPropertyNotAllowed, dp.Name, GetType().Name)); 277throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory")); 302throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory")); 310throw new ArgumentException(SR.HandlerTypeIllegal); 338throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "FrameworkElementFactory")); 346throw new ArgumentException(SR.HandlerTypeIllegal); 544throw new InvalidOperationException(SR.NullTypeIllegal); 553throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild, _type.Name)); 564throw new InvalidOperationException(SR.Format(SR.ChildNameNamePatternReserved, _childName)); 650throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild, 839throw new NotSupportedException(SR.Format(SR.Template3DValueOnly, propertyValue.Property) ); 905throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild, 923throw new InvalidOperationException(SR.FrameworkElementFactoryMustBeSealed); 951throw new InvalidOperationException(SR.Format(SR.TypeMustImplementIAddChild, 1111throw new InvalidOperationException(SR.Format(SR.AlreadyHasLogicalChildren, 1119throw new InvalidOperationException(SR.Format(SR.CannotHookupFCERoot, 1183throw new InvalidOperationException(SR.Format(SR.MissingContentSource, prefix, targetType));
System\Windows\FrameworkPropertyMetadata.cs (15)
224throw new ArgumentException(SR.NoDefaultUpdateSourceTrigger, nameof(defaultUpdateSourceTrigger)); 319throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 336throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 353throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 370throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 387throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 404throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 423throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 442throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 459throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 478throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 483throw new ArgumentException(SR.NoDefaultUpdateSourceTrigger, nameof(value)); 503throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 524throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse); 543throw new InvalidOperationException(SR.TypeMetadataCannotChangeAfterUse);
System\Windows\FrameworkTemplate.cs (12)
199throw new System.Windows.Markup.XamlParseException(SR.TemplateContentSetTwice); 240throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Template")); 304throw new InvalidOperationException(SR.TemplateFindNameInInvalidElement); 374throw new ArgumentException(SR.Format(SR.VisualTreeRootIsFrameworkElement, nameof(FrameworkElement), templateRoot.Type.Name)); 425throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Template")); 835throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, dependencyProperty.Name)); 1122throw new InvalidOperationException(SR.Format(SR.TemplateMustBeFE, new object[] { rootObject.GetType().FullName }));
System\Windows\Generated\FrameworkContentElement.cs (12)
71throw new InvalidOperationException(SR.Format(SR.NameScopeNotFound, name, "register")); 89throw new InvalidOperationException(SR.Format(SR.NameScopeNotFound, name, "unregister")); 192throw new InvalidOperationException(SR.CannotModifyLogicalChildrenDuringTreeWalk); 240throw new InvalidOperationException(SR.CannotModifyLogicalChildrenDuringTreeWalk); 300throw new System.InvalidOperationException(SR.HasLogicalParent); 306throw new System.InvalidOperationException(SR.CannotBeSelfParent); 605throw new InvalidOperationException(SR.Format(SR.CyclicStyleReferenceDetected, this)); 659throw new InvalidOperationException(SR.Format(SR.CyclicThemeStyleReferenceDetected, this));
System\Windows\Generated\FrameworkElement.cs (12)
71throw new InvalidOperationException(SR.Format(SR.NameScopeNotFound, name, "register")); 89throw new InvalidOperationException(SR.Format(SR.NameScopeNotFound, name, "unregister")); 192throw new InvalidOperationException(SR.CannotModifyLogicalChildrenDuringTreeWalk); 240throw new InvalidOperationException(SR.CannotModifyLogicalChildrenDuringTreeWalk); 300throw new System.InvalidOperationException(SR.HasLogicalParent); 306throw new System.InvalidOperationException(SR.CannotBeSelfParent); 625throw new InvalidOperationException(SR.Format(SR.CyclicStyleReferenceDetected, this)); 679throw new InvalidOperationException(SR.Format(SR.CyclicThemeStyleReferenceDetected, this));
System\Windows\GridLength.cs (6)
92throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "value")); 96throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoInfinity, "value")); 102throw new ArgumentException(SR.Format(SR.InvalidCtorParameterUnknownGridUnitType, "type"));
System\Windows\Ink\Events.cs (2)
305throw new ArgumentException(SR.InvalidEmptyStrokeCollection, nameof(strokes)); 312throw new ArgumentException(SR.InvalidEmptyArray, nameof(gestureRecognitionResults));
System\Windows\Input\Command\CommandValueSerializer.cs (8)
75throw new InvalidOperationException(SR.Format(SR.ValueSerializerContextUnavailable, this.GetType().Name )); 82throw new InvalidOperationException(SR.Format(SR.TypeValueSerializerUnavailable, this.GetType().Name )); 132throw new InvalidOperationException(SR.Format(SR.ValueSerializerContextUnavailable, this.GetType().Name )); 139throw new InvalidOperationException(SR.Format(SR.TypeValueSerializerUnavailable, this.GetType().Name ));
System\Windows\Input\KeyboardNavigation.cs (1)
664throw new ArgumentOutOfRangeException(nameof(index), index, SR.Visual_ArgumentOutOfRange);
System\Windows\Interop\ActiveXHost.cs (4)
85throw new ThreadStateException(SR.Format(SR.AxRequiresApartmentThread, clsid.ToString())); 662throw new TargetInvocationException(SR.Format(SR.AXNohWnd, GetType().Name), e);
System\Windows\Interop\HwndHost.cs (4)
209throw new InvalidOperationException(SR.HwndHostDoesNotSupportChildKeyboardSinks); 1013throw new InvalidOperationException(SR.ChildWindowNotCreated); 1020throw new InvalidOperationException(SR.HostedWindowMustBeAChildWindow); 1026throw new InvalidOperationException(SR.ChildWindowMustHaveCorrectParent);
System\Windows\LengthConverter.cs (2)
225throw new FormatException(SR.Format(SR.LengthFormatError, span.ToString()));
System\Windows\Markup\Baml2006\Baml2006Reader.cs (15)
672throw new XamlParseException(string.Format(CultureInfo.CurrentCulture, SR.Format(SR.UnknownBamlRecord, recordType))); 1414throw new XamlParseException(SR.PropertyFoundOutsideStartElement); 1420throw new XamlParseException(SR.Format(SR.PropertyOutOfOrder, _context.CurrentFrame.Member)); 1436throw new ArgumentException(SR.Format(SR.IntegerCollectionLengthLessThanZero, Array.Empty<object>())); 1474throw new InvalidOperationException(SR.UnableToConvertInt32); 2084throw new ArgumentException(SR.Format(SR.MissingTagInNamespace, "=", uriInput)); 2089throw new ArgumentException(SR.Format(SR.AssemblyTagMissing, "assembly", uriInput)); 2379throw new XamlParseException(SR.Format(SR.RecordOutOfOrder, parentType.Name)); 2656throw new InvalidOperationException(SR.BamlBadExtensionValue);
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (14)
139throw new KeyNotFoundException(SR.Format(SR.BamlAssemblyIdNotFound, assemblyId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS))); 156throw new KeyNotFoundException(SR.Format(SR.BamlTypeIdNotFound, typeId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS))); 173throw new KeyNotFoundException(SR.Format(SR.BamlTypeIdNotFound, typeId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS))); 350throw new ArgumentOutOfRangeException(nameof(assemblyId), SR.Format(SR.AssemblyIdOutOfSequence, assemblyId)); 377throw new ArgumentOutOfRangeException(nameof(typeId), SR.Format(SR.TypeIdOutOfSequence, typeId)); 401throw new ArgumentOutOfRangeException(nameof(propertyId), SR.Format(SR.PropertyIdOutOfSequence, propertyId)); 419throw new ArgumentOutOfRangeException(nameof(stringId), SR.Format(SR.StringIdOutOfSequence, stringId));
System\Windows\Markup\Baml2006\WpfKnownTypeInvoker.cs (1)
29throw new InvalidOperationException(SR.PositionalArgumentsWrongLength);
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (3)
83throw new ArgumentException(SR.AssemblyIdNegative); 122throw new ArgumentException(SR.KnownTypeIdNegative); 151throw new ArgumentException(SR.KnownTypeIdNegative);
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (2)
49throw new ArgumentException(SR.Format(SR.RuntimeTypeRequired, type), nameof(type));
System\Windows\Markup\BamlCollectionHolder.cs (5)
131_reader.ThrowException(nameof(SR.ParserParentDO), Parent.ToString()); 148_reader.ThrowException(nameof(SR.ParserCantGetDPOrPi), AttributeName); 185_reader.ThrowException(nameof(SR.ParserCantGetProperty), PropertyDefinition.Name); 198_reader.ThrowException(nameof(SR.ParserCantGetDPOrPi), AttributeName); 212_reader.ThrowException(nameof(SR.ParserReadOnlyNullProperty), PropertyDefinition.Name);
System\Windows\Markup\BamlMapTable.cs (5)
412ThrowException(nameof(SR.ParserFailFindType), typeInfo.TypeFullName); 587ThrowException(nameof(SR.ParserNoTypeConv), propType.Name); 825ThrowException(nameof(SR.ParserNoPropType), propName); 1624ApplicationException bamlException = new(SR.Format(SR.GetResourceString(id), parameter));
System\Windows\Markup\BamlReader.cs (24)
316throw new InvalidOperationException(SR.BamlReaderClosed); 657throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml, 990throw new InvalidOperationException(SR.Format(SR.BamlReaderNoOwnerType, attrInfo.Name, AssemblyName)); 1026throw new InvalidOperationException(SR.Format(SR.ParserCantGetDPOrPi, info.Name)); 1678throw new InvalidOperationException(SR.Format(SR.ParserUnknownBaml, 1793throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty)); 1807throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty)); 1851throw new InvalidOperationException(SR.Format(SR.BamlScopeError, 1889throw new InvalidOperationException(SR.ParserMapPIMissingAssembly); 2036throw new InvalidOperationException(SR.Format(SR.BamlScopeError, 2143throw new InvalidOperationException(SR.Format(SR.BamlScopeError, 2250throw new InvalidOperationException(SR.Format(SR.BamlScopeError, 2391throw new InvalidOperationException(SR.BamlBadExtensionValue); 2471throw new InvalidOperationException(SR.BamlBadExtensionValue);
System\Windows\Markup\BamlRecordReader.cs (109)
714ThrowException(nameof(SR.ParserBamlEvent), bamlRoutedEventRecord.Value); 763ThrowException(nameof(SR.ParserUnknownBaml), ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture)); 861ThrowException(nameof(SR.ParserNoElementCreate2), elementType.FullName); 1010ThrowException(nameof(SR.ParserNoComplexMulti), propName); 1172ThrowException(nameof(SR.ParserUnexpectedEndEle)); 1337ThrowException(nameof(SR.ParserCantSetContentProperty), propertyDefinition.Name, propertyDefinition.PropertyInfo.ReflectedType.Name); 1361ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 1467ThrowException(nameof(SR.ParserNoDPOnOwner), paramString, ownerType.FullName); 1546ThrowExceptionWithLine(SR.Format(SR.ParserFailedToCreateFromConstructor, info.DeclaringType.Name), e); 1563ThrowException(nameof(SR.ParserBadConstructorParams), elementType.Name, paramCount.ToString(CultureInfo.CurrentCulture)); 1643SR.Format(SR.ParserCannotConvertString, 1683ThrowException(nameof(SR.ParserDeferContentAsync)); 1799ThrowException(nameof(SR.ParserUnexpInBAML), keyRecord.RecordType.ToString(CultureInfo.CurrentCulture)); 1931ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2020ThrowException(nameof(SR.ParserUnexpInBAML), "BamlLiteralContent" ); 2032ThrowException(nameof(SR.ParserUnexpInBAML), "PropertyComplexStart"); 2068ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2114ThrowException(nameof(SR.ParserCannotConvertPropertyValue), "Property", typeof(DependencyProperty).FullName); 2160string message = SR.Format(SR.ParserCannotConvertPropertyValue, propertyName, propertyType.FullName); 2180ThrowException(nameof(SR.ParserUnexpInBAML), "PropertyCustom"); 2212string message = SR.Format(SR.ParserCannotConvertPropertyValue, propertyDefinition.Name, propertyDefinition.PropertyType.FullName); 2241ThrowException(nameof(SR.ParserCantSetAttribute), "property", propertyDefinition.Name, "set"); 2257ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2271ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2286ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2302ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2413ThrowException(nameof(SR.ParserCannotConvertPropertyValue), propertyName, valueTypeName); 2425ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2473ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2491string message = SR.Format(SR.ParserCannotConvertPropertyValue, propertyDefinition.Name, propertyDefinition.PropertyType.FullName); 2559ThrowException(nameof(SR.ParserCantSetAttribute), "property", propertyDefinition.Name, "set"); 2626ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2647ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2664ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, element.GetType().FullName, propertyDefinition.Name, valueType.Name), e); 2828ThrowException(nameof(SR.ParserCantCreateDelegate), reid.HandlerType.Name, attribValue); 2862ThrowException(nameof(SR.ParserCantCreateDelegate), ei.EventHandlerType.Name, attribValue); 2874ThrowException(nameof(SR.ParserCantSetAttribute), "event", ei.Name, "add"); 2887ThrowException(nameof(SR.ParserCantGetDPOrPi), propertyDefinition.Name); 2906ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, element.GetType().FullName, propertyDefinition.AttributeInfo.Name, attribValue), e); 2968ThrowException(nameof(SR.ParserNoMatchingArray), GetPropertyNameFromAttributeId(attributeId)); 3043ThrowException(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name); 3137ThrowException(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name); 3158ThrowException(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name); 3275ThrowException(nameof(SR.ParserNoResource), bamlDefAttributeRecord.Value); 3310ThrowException(nameof(SR.ParserDefSharedOnlyInCompiled)); 3328ThrowException(nameof(SR.ParserUnknownDefAttribute), bamlDefAttributeRecord.Name); 3346ThrowException(nameof(SR.ParserNoResource), XamlReaderHelper.DefinitionName); 3377ThrowExceptionWithLine(SR.Format(SR.ParserKeyOnExplicitDictionary, attributeName, 3382ThrowExceptionWithLine(SR.Format(SR.ParserNoMatchingIDictionary, attributeName), e); 3446ThrowException(nameof(SR.ParserCannotConvertString), bamlTextRecord.Value, 3459ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName); 3476ThrowException(nameof(SR.ParserIAddChildText), 3489ThrowException(nameof(SR.ParserNoComplexMulti), 3511ThrowException(nameof(SR.ParserCantCreateTextComplexProp), 3522ThrowException(nameof(SR.ParserNoComplexMulti), 3535ThrowException(nameof(SR.ParserCantCreateTextComplexProp), 3549ThrowException(nameof(SR.ParserNoMatchingIList), "?"); 3562ThrowException(nameof(SR.ParserNoMatchingIList), "?"); 3580ThrowException(nameof(SR.ParserUnexpInBAML), "Text"); 3609ThrowException(nameof(SR.ParserUnknownPresentationOptionsAttribute), bamlPresentationOptionsAttributeRecord.Name); 3721ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, currentTarget.GetType().FullName, attribInfo.Name, o), e); 3744ThrowException(nameof(SR.ParserBadNullableType), 3859ThrowExceptionWithLine(SR.Format(SR.ParserCannotSetValue, parentObject.GetType().FullName, memberInfo.Name, o), e); 3969ThrowException(nameof(SR.ParserNullReturned), propertyName, attribValue); 3991message = SR.Format(SR.ParserErrorParsingAttribType, 3996message = SR.Format(SR.ParserErrorParsingAttrib, 4002message = SR.Format(SR.ParserErrorParsingAttribType, 4208ThrowException(nameof(SR.ParserNoResource), resourceNameString); 4214ThrowException(nameof(SR.ParserNoResource) , $"{{{resourceNameObject}}}"); 4232ThrowException(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName); 4535ThrowExceptionWithLine( SR.ParserFailedEndInit, e ); 4632ThrowException(nameof(SR.ParserNoDictionaryKey)); 4751ThrowException( nameof(SR.ParserCannotAddAnyChildren), typeName ); 4753ThrowException( nameof(SR.ParserCannotAddAnyChildren2), typeName, currentObject.GetType().FullName ); 4769ThrowException( nameof(SR.ParserCannotAddAnyChildren), typeName ); 4771ThrowException( nameof(SR.ParserCannotAddAnyChildren2), typeName, currentObject.GetType().FullName ); 4919ThrowException(nameof(SR.ParserParentDO), value.ToString()); 4966ThrowException(nameof(SR.ParserCantSetContentProperty), pi.Name, pi.ReflectedType.Name); 4994SR.Format(SR.ParserCannotAddChild, 5158ThrowExceptionWithLine(SR.GetResourceString(id), null); 5165ThrowExceptionWithLine(SR.Format(SR.GetResourceString(id), parameter), null); 5173ThrowExceptionWithLine(SR.Format(SR.GetResourceString(id), parameter1, parameter2), null); 5182ThrowExceptionWithLine(SR.Format(SR.GetResourceString(id), parameter1, parameter2, parameter3), null); 5212ThrowException(nameof(SR.ParserNotMarkedPublic), type.Name); 5219ThrowException(nameof(SR.ParserNotAllowedInternalType), type.Name); 5258ThrowException(nameof(SR.ParserNotAllowedInternalType), type.Name); 5291ThrowException(nameof(SR.ParserNoDefaultPropConstructor), 5296ThrowExceptionWithLine(SR.Format(SR.ParserNoDefaultConstructor, type.Name), e ); 5311ThrowExceptionWithLine( SR.Format(SR.ParserErrorCreatingInstance, type.Name, type.Assembly.FullName), e);
System\Windows\Markup\BamlRecords.cs (4)
769throw new InvalidOperationException(SR.ParserMultiBamls); 2605throw new XamlParseException(SR.Format(SR.ParserBadString, Value, ValueType.Name)); 4349throw new XamlParseException(SR.ParserTooManyAssemblies);
System\Windows\Markup\BamlRecordWriter.cs (3)
355XamlParser.ThrowException(nameof(SR.ParserBadKey), 792XamlParser.ThrowException(nameof(SR.ParserBadKey), 1571XamlParser.ThrowException(nameof(SR.ParserNoDictionaryKey),
System\Windows\Markup\BamlVersionHeader.cs (2)
80throw new InvalidOperationException(SR.Format(SR.ParserBamlVersion,
System\Windows\Markup\BamlWriter.cs (22)
31throw new ArgumentException(SR.BamlWriterBadStream); 145throw new InvalidOperationException(SR.BamlWriterClosed); 149throw new InvalidOperationException(SR.BamlWriterStartDoc); 303throw new InvalidOperationException(SR.Format(SR.BamlWriterNoInElement, 470throw new InvalidOperationException(SR.Format(SR.BamlWriterBadXmlns, 504throw new InvalidOperationException(SR.Format(SR.BamlWriterNoInElement, 795SR.Format(SR.BamlWriterBadScope, 901throw new NotSupportedException(SR.Format(SR.ParserBamlEvent, eventIdName)); 930throw new NotSupportedException(SR.Format(SR.ParserBamlEvent, eventName)); 997throw new InvalidOperationException(SR.BamlWriterUnknownMarkupExtension); 1016throw new InvalidOperationException(SR.BamlWriterClosed); 1020throw new InvalidOperationException(SR.BamlWriterStartDoc); 1043throw new InvalidOperationException(SR.Format(SR.BamlWriterBadScope, 1068throw new ArgumentException(SR.Format(SR.BamlWriterBadAssembly,
System\Windows\Markup\DependencyPropertyConverter.cs (10)
156throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 179throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 203throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 223throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 233throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName));
System\Windows\Markup\FilteredXmlReader.cs (3)
123SR.ParserFilterXmlReaderNoIndexAttributeAccess); 155SR.ParserFilterXmlReaderNoIndexAttributeAccess); 342SR.ParserFilterXmlReaderNoDefinitionPrefixChangeAllowed);
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (6)
300throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "arrayIndex", "array"), nameof(arrayIndex)); 305throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, "arrayIndex", "array")); 358throw new ArgumentException(SR.Format(SR.Collection_CopyTo_ArrayCannotBeMultidimensional), nameof(array));
System\Windows\Markup\MarkupExtensionParser.cs (23)
580ThrowException(nameof(SR.ParserNotMarkupExtension), attributeValue, typename, 595ThrowException(nameof(SR.ParserNotMarkupExtension), attributeValue, typename, 1044ThrowException(nameof(SR.ParserMarkupExtensionInvalidClosingBracketCharacers), args[i].ToString(), lineNumber, linePosition); 1063ThrowException(nameof(SR.ParserMarkupExtensionNoQuotesInName), args, 1088ThrowException(nameof(SR.ParserMarkupExtensionMalformedBracketCharacers), bracketCharacterStack.Peek().ToString(), lineNumber, linePosition); 1094ThrowException(nameof(SR.ParserMarkupExtensionDelimiterBeforeFirstAttribute), args, 1102ThrowException(nameof(SR.ParserMarkupExtensionBadDelimiter), args, 1132ThrowException(nameof(SR.ParserMarkupExtensionBadDelimiter), args, 1164ThrowException(nameof(SR.ParserMarkupExtensionNoEndCurlie), "}", lineNumber, linePosition); 1169ThrowException(nameof(SR.ParserMarkupExtensionTrailingGarbage), "}", 1244ThrowException(nameof(SR.ParserMarkupExtensionBadConstructorParam), data.Args, 1348ThrowException(nameof(SR.ParserMarkupExtensionNoNameValue), data.Args, 1360ThrowException(nameof(SR.ParserDuplicateMarkupExtensionProperty), propertyName, data.LineNumber, data.LinePosition); 1517ThrowException(nameof(SR.ParserPrefixNSProperty), prefix, name, lineNumber, linePosition); 1533ThrowException(nameof(SR.ParserMarkupExtensionUnknownAttr), localName, 1694string message = SR.Format(SR.GetResourceString(id), parameter1); 1708string message = SR.Format(SR.GetResourceString(id), parameter1, parameter2); 1723string message = SR.Format(SR.GetResourceString(id), parameter1, parameter2, parameter3); 1736message += SR.Format(SR.ParserLineAndOffset,
System\Windows\Markup\Primitives\MarkupWriter.cs (9)
143throw new InvalidOperationException( SR.Format( SR.MarkupWriter_CannotSerializeNestedPublictype, type.ToString() )); 147throw new InvalidOperationException( SR.Format( SR.MarkupWriter_CannotSerializeNonPublictype, type.ToString() )); 151throw new InvalidOperationException( SR.Format( SR.MarkupWriter_CannotSerializeGenerictype, type.ToString() )); 501throw new InvalidOperationException(SR.UnserializableKeyValue); 693throw new InvalidOperationException(SR.Format(SR.UnserializableKeyValue, property.Value.GetType().FullName));
System\Windows\Markup\ProvideValueServiceProvider.cs (1)
72set { throw new NotSupportedException(SR.ParserProvideValueCantSetUri); }
System\Windows\Markup\RoutedEventConverter.cs (2)
165throw new ArgumentException(SR.Format(SR.ParserPrefixNSProperty, nsPrefix, nameString));
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (6)
97throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName)); 159throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName)); 164throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName));
System\Windows\Markup\WpfXamlLoader.cs (1)
364throw new XamlParseException(SR.SharedAttributeInLooseXaml);
System\Windows\Markup\XamlInt32CollectionSerializer.cs (2)
275throw new ArgumentException(SR.IntegerCollectionLengthLessThanZero); 324throw new ArgumentException(SR.UnknownIndexType);
System\Windows\Markup\XamlParseException.cs (14)
360message = SR.Format(SR.ParserErrorContext_Type, simpleObjectId); 364message = SR.Format(SR.ParserErrorContext_File, xamlFile); 368message = SR.Format(SR.ParserErrorContext_Type_File, simpleObjectId, xamlFile); 372message = SR.Format(SR.ParserErrorContext_Line, lineNumber, linePosition); 376message = SR.Format(SR.ParserErrorContext_Type_Line, simpleObjectId, lineNumber, linePosition); 380message = SR.Format(SR.ParserErrorContext_File_Line, xamlFile, lineNumber, linePosition); 384message = SR.Format(SR.ParserErrorContext_Type_File_Line, simpleObjectId, xamlFile, lineNumber, linePosition);
System\Windows\Markup\XamlParser.cs (11)
1316string message = SR.GetResourceString(id); 1323string message = SR.Format(SR.GetResourceString(id), value); 1330string message = SR.Format(SR.GetResourceString(id), value1, value2); 1336string message = SR.Format(SR.GetResourceString(id), value1, value2, value3); 1342string message = SR.Format(SR.GetResourceString(id), value1, value2, value3, value4); 1349message += SR.Format(SR.ParserLineAndOffset,
System\Windows\Markup\XamlReader.cs (2)
206throw new InvalidOperationException(SR.ParserCannotReuseXamlReader); 285throw new InvalidOperationException(SR.ParserCannotReuseXamlReader);
System\Windows\Markup\XamlSerializer.cs (5)
58throw new InvalidOperationException(SR.InvalidDeSerialize); 74throw new InvalidOperationException(SR.InvalidDeSerialize); 87throw new InvalidOperationException(SR.InvalidDeSerialize); 100throw new InvalidOperationException(SR.InvalidCustomSerialize); 111throw new InvalidOperationException(SR.InvalidCustomSerialize);
System\Windows\Markup\XamlSerializerUtil.cs (2)
39throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Markup\XamlStream.cs (4)
153throw new NotSupportedException(SR.ParserWriterNoSeekEnd); 155throw new ArgumentException(SR.ParserWriterUnknownOrigin); 297throw new NotSupportedException(SR.ParserWriterNoSeekEnd); 299throw new ArgumentException(SR.ParserWriterUnknownOrigin);
System\Windows\Markup\XamlStyleSerializer.cs (4)
128ThrowException(nameof(SR.StyleNoDictionaryKey), 144string message = SR.GetResourceString(id); 153message += SR.Format(SR.ParserLineAndOffset,
System\Windows\Markup\XamlTemplateSerializer.cs (5)
123ThrowException(nameof(SR.TemplateBadDictionaryKey), 146ThrowException(nameof(SR.StyleNoDictionaryKey), 162string message = SR.GetResourceString(id); 171message += SR.Format(SR.ParserLineAndOffset,
System\Windows\Markup\XamlTypeMapper.cs (44)
191ThrowException(nameof(SR.ParserBadAssemblyPath)); 196ThrowException(nameof(SR.ParserBadAssemblyName)); 456ThrowException(nameof(SR.ParserOwnerEventMustBePublic), owner.FullName ); 515string message = SR.Format(SR.ParserCannotConvertPropertyValueString, value, propName, propType.FullName); 596message = SR.Format(SR.ParserDefaultConverterProperty, propType.FullName, propName, value); 602message = SR.Format(SR.ParserDefaultConverterElement, propType.FullName, value); 641message = SR.Format(SR.ParserCannotConvertPropertyValueString, value, propName, propType); 654message = SR.Format(SR.ParserCannotConvertInitializationText, value, propType ); 684ThrowException(nameof(SR.ParserBadName), value); 689string message = SR.Format(SR.ParserBadUidOrNameME, value); 691message += SR.Format(SR.ParserLineAndOffset, 702ThrowException(nameof(SR.ParserBadName), value); 735ThrowException(nameof(SR.ParserNoDigitEnums), propName, attribValue); 1317ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{objectType.Name}.{localName}"); 1340ThrowException(nameof(SR.ParserCantSetAttribute), "event", $"{objectType.Name}.{localName}", "add"); 1393ThrowException(nameof(SR.ParserAttachedPropInheritError), 1476ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{owner.Name}.{localName}"); 1500ThrowException(nameof(SR.ParserCantSetAttribute), "event", $"{owner.Name}.{localName}", "add"); 1778ThrowException(nameof(SR.ParserNoType), globalClassName); 1864ThrowException(nameof(SR.ParserXmlLangPropertyValueInvalid)); 2267ThrowException(nameof(SR.ParserNoType), typeName); 2280ThrowException(nameof(SR.ParserBadMemberReference), valueParam); 2300ThrowException(nameof(SR.ParserBadMemberReference), memberValue); 2354ThrowException(nameof(SR.ParserInvalidStaticMember), memberName, targetType.Name); 2551ThrowException(nameof(SR.ParserPublicType), objectType.Name); 2858ThrowException(nameof(SR.ParserUndeclaredNS), string.Empty); 2867ThrowException(nameof(SR.ParserUndeclaredNS), prefix); 2910ThrowException(nameof(SR.ParserResourceKeyType), typeString); 3042parserContext.XamlTypeMapper.ThrowException(nameof(SR.ParserPrefixNSProperty), nsPrefix, nameString); 3504ThrowException(nameof(SR.ParserNoTypeConv), type.Name); 3782ThrowExceptionWithLine(SR.GetResourceString(id), null); 3787ThrowExceptionWithLine(SR.Format(SR.GetResourceString(id), parameter), null); 3792ThrowExceptionWithLine(SR.Format(SR.GetResourceString(id), parameter1, parameter2), null); 3797ThrowExceptionWithLine(SR.Format(SR.GetResourceString(id), parameter1, parameter2, parameter3), null);
System\Windows\Markup\XmlnsCache.cs (6)
352throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsDefinitionAttribute")); 387throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsCompatibleWithAttribute")); 393throw new InvalidOperationException(SR.Format(SR.ParserCompatDuplicate, oldXmlns,
System\Windows\Markup\XmlnsDictionary.cs (4)
142throw new ArgumentException(SR.ParserKeysAreStrings); 470throw new ArgumentException(SR.ParserKeysAreStrings); 478throw new ArgumentException(SR.ParserKeysAreStrings); 594throw new InvalidOperationException(SR.ParserDictionarySealed);
System\Windows\Media\Animation\BeginStoryboard.cs (8)
80throw new ArgumentException(SR.Storyboard_UnrecognizedHandoffBehavior); 105throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, "Name")); 117throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "BeginStoryboard")); 139throw new InvalidOperationException(SR.Storyboard_StoryboardReferenceRequired); 146throw new InvalidOperationException(SR.Storyboard_UnableToFreeze); 204throw new InvalidOperationException(SR.Storyboard_StoryboardReferenceRequired);
System\Windows\Media\Animation\ControllableStoryboardAction.cs (5)
48throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "ControllableStoryboardAction")); 95throw new InvalidOperationException(SR.Storyboard_BeginStoryboardNameRequired); 104throw new InvalidOperationException(SR.Format(SR.Storyboard_BeginStoryboardNoStoryboard, BeginStoryboardName));
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (4)
314SR.Format( 315SR.Animation_Invalid_DefaultValue, 325SR.Format( 326SR.Animation_Invalid_DefaultValue,
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
227throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, nameof(child)); 277throw new InvalidOperationException(SR.Animation_NoTextChildren);
System\Windows\Media\Animation\SeekStoryboard.cs (5)
37throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "SeekStoryboard")); 72throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "SeekStoryboard")); 81throw new ArgumentException(SR.Storyboard_UnrecognizedTimeSeekOrigin);
System\Windows\Media\Animation\SetStoryboardSpeedRatio.cs (2)
37throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "SetStoryboardSpeedRatio"));
System\Windows\Media\Animation\Storyboard.cs (54)
271SR.Format(SR.Storyboard_NoNameScope, targetName)); 277SR.Format(SR.Storyboard_NameNotFound, targetName, nameScopeUsed.GetType().ToString())); 283throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotDependencyObject, targetName )); 319SR.Format(SR.Storyboard_NameNotFound, targetName, nameScope.GetType().ToString())); 328SR.Format(SR.Storyboard_NameNotFound, targetName, fe.GetType().ToString())); 337SR.Format(SR.Storyboard_NameNotFound, targetName, fce.GetType().ToString())); 343SR.Format(SR.Storyboard_NoNameScope, targetName)); 350throw new InvalidOperationException(SR.Format(SR.Storyboard_BeginStoryboardNameNotFound, targetName)); 397throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetNameNotAllowedInStyle, nameString)); 445throw new InvalidOperationException(SR.Format(SR.Storyboard_NoTarget, currentTimeline.GetType().ToString() )); 453throw new InvalidOperationException(SR.Format(SR.Storyboard_TargetPropertyRequired, currentTimeline.GetType().ToString() )); 463throw new InvalidOperationException(SR.Storyboard_PropertyPathEmpty); 476throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, currentPropertyPath.Path )); 542throw new InvalidOperationException(SR.Format(SR.Storyboard_MediaElementNotFound, currentObjectName )); 556throw new InvalidOperationException(SR.Storyboard_MediaElementRequired); 690throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathObjectNotFound, AccessorName(path, i-1), path.Path )); 697throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathPropertyNotFound, path.Path )); 724throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathFrozenCheckFailed, AccessorName(path, i-1), path.Path, intermediateFreezable.GetType().ToString() )); 730throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path)); 745throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyObject, AccessorName(path, i-1), path.Path)); 750throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathMustPointToDependencyProperty, path.Path )); 755throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathSealedCheckFailed, intermediateDP.Name, path.Path, intermediateDO)); 760throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathIncludesNonAnimatableProperty, path.Path, intermediateDP.Name)); 796throw new InvalidOperationException(SR.Format(SR.Storyboard_AnimationMismatch, animationClock.Timeline.GetType(), targetProperty.Name, targetProperty.PropertyType)); 843throw new InvalidOperationException(SR.Format(SR.Storyboard_PropertyPathUnresolved, path.Path)); 874throw new InvalidOperationException(SR.Format(SR.Storyboard_ImmutableTargetNotSupported, path.Path)); 945throw new InvalidOperationException(SR.Format(SR.Storyboard_ComplexPathNotSupported, targetObject.GetType().ToString())); 1215throw new ArgumentException(SR.Storyboard_UnrecognizedHandoffBehavior); 1947throw new InvalidOperationException(SR.Storyboard_NeverApplied);
System\Windows\MessageBox.cs (1)
397throw new ArgumentException(SR.CantShowMBServiceWithOwner);
System\Windows\MultiDataTrigger.cs (3)
109throw new InvalidOperationException(SR.SourceNameNotSupportedForDataTriggers); 132throw new InvalidOperationException(SR.Format(SR.UnexpectedValueTypeForDataTrigger, propertyValue.ValueType));
System\Windows\Navigation\Journal.cs (3)
327throw new InvalidOperationException(SR.InvalidOperation_CannotClearFwdStack); 356throw new InvalidOperationException(SR.NoBackEntry); 372throw new InvalidOperationException(SR.NoForwardEntry);
System\Windows\Navigation\JournalEntryListConverter.cs (1)
160current.SetValue(JournalEntry.NameProperty, SR.NavWindowMenuCurrentPage);
System\Windows\Navigation\NavigationService.cs (24)
111throw new Exception(SR.Format(SR.MustImplementIUriContext, typeof(IUriContext))); 192throw new System.ArgumentException(SR.HyperLinkTargetNotFound); 549throw new InvalidOperationException(SR.InvalidOperation_CantChangeJournalOwnership); 582throw new Exception(SR.Format(SR.LoopDetected, _currentCleanSource)); 1089throw new InvalidOperationException(SR.Format(SR.WrongNavigateRootElement, bp.ToString())); 1398throw new InvalidOperationException(SR.InvalidOperation_AddBackEntryNoContent); 1415SR.Format(SR.InvalidOperation_MustImplementIPCCSOrHandleNavigating, 1619throw new InvalidOperationException(SR.InvalidOperation_CannotReenterPageFunction); 1698throw new InvalidOperationException(SR.NoForwardEntry); 1712throw new InvalidOperationException(SR.NoBackEntry); 2622throw new Exception(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 2855throw new Exception(SR.Format(SR.GetStreamFailed, requestUri.ToString())); 2909throw new InvalidOperationException(SR.FailedToConvertResource); 3227throw new SystemException(SR.Format(SR.CustomContentStateMustBeSerializable, type)); 3306name = SR.Untitled; 3666throw new InvalidOperationException(SR.WindowAlreadyClosed); 3868throw new InvalidOperationException(SR.UiLessPageFunctionNotCallingOnReturn);
System\Windows\Navigation\NavigationWindow.cs (1)
838throw new InvalidOperationException(SR.NoAddChild);
System\Windows\Navigation\RequestNavigateEventArgs.cs (1)
68throw new InvalidOperationException(SR.RequestNavigateEventMustHaveRoutedEvent);
System\Windows\PropertyPath.cs (18)
375throw new InvalidOperationException(SR.Format(SR.PropertyPathSyntaxError, detail)); 560throw new InvalidOperationException(SR.Format(SR.PropertyPathInvalidAccessor, 566throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count)); 583throw new InvalidOperationException(SR.Format(SR.PropertyPathNoOwnerType, ownerName)); 643throw new InvalidOperationException(SR.Format(SR.PropertyPathNoProperty, ownerType.Name, propertyName)); 732throw new InvalidOperationException(SR.Format(SR.PathParameterIsNull, index)); 736throw new InvalidOperationException(SR.Format(SR.PathParametersIndexOutOfRange, index, PathParameters.Count)); 760throw new InvalidOperationException(SR.Format(SR.PropertyPathIndexWrongType, paramList[i].parenString, paramList[i].valueString)); 845throw new ArgumentException(SR.Format(SR.ParserPrefixNSProperty, nsPrefix, name));
System\Windows\PropertyPathConverter.cs (6)
102throw new ArgumentException(SR.Format(SR.CannotConvertType, source.GetType().FullName, typeof(PropertyPath))); 133throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(PropertyPath), destinationType.FullName)); 139throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(PropertyPath)), nameof(value));
System\Windows\ResourceDictionary.cs (17)
136throw new ArgumentException(SR.Format(SR.ResourceDictionaryLoadFromFailure, value == null ? "''" : value.ToString())); 223throw new InvalidOperationException(SR.Format(SR.ResourceDictionaryLoadFromFailure, _source.ToString())); 280throw new NotSupportedException(SR.NamesNotSupportedInsideResourceDictionary); 431throw new InvalidOperationException(SR.ResourceDictionaryIsReadOnly); 626throw new InvalidOperationException(SR.ResourceDictionaryIsReadOnly); 686throw new InvalidOperationException(SR.ResourceDictionaryIsReadOnly); 874throw new InvalidOperationException(SR.ResourceDictionaryIsReadOnly); 988throw new InvalidOperationException(SR.NestedBeginInitNotSupported); 1007throw new InvalidOperationException(SR.EndInitWithoutBeginInitNotSupported); 1174throw new InvalidOperationException(SR.ResourceDictionaryDuplicateDeferredContent); 1179throw new InvalidOperationException(SR.ResourceDictionaryDeferredContentFailure); 1292throw new ArgumentException(SR.KeyCollectionHasInvalidKey); 1502throw new InvalidOperationException(SR.ResourceDictionaryInvalidMergedDictionary); 1524throw new InvalidOperationException(SR.ResourceDictionaryInvalidMergedDictionary); 1546throw new InvalidOperationException(SR.ResourceDictionaryInvalidMergedDictionary);
System\Windows\ResourceReferenceExpressionConverter.cs (2)
116throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "ResourceReferenceExpression"));
System\Windows\Setter.cs (14)
49throw new ArgumentException(SR.SetterValueCannotBeUnset); 68throw new ArgumentException(SR.Format(SR.ReadOnlyPropertyNotAllowed, property.Name, GetType().Name)); 72throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInStyle, FrameworkElement.NameProperty.Name)); 90throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "Setter.Property")); 98throw new ArgumentException(SR.StylePropertyInStyleNotAllowed); 112throw new ArgumentException(SR.Format(SR.SetterValueOfMarkupExtensionNotSupported, 119throw new ArgumentException(SR.Format(SR.InvalidSetterValue, value, dp.OwnerType, dp.Name)); 172throw new ArgumentException(SR.SetterValueCannotBeUnset); 180throw new ArgumentException(SR.StyleValueOfExpressionNotSupported);
System\Windows\SetterBase.cs (2)
50throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "SetterBase"));
System\Windows\SetterBaseCollection.cs (2)
101throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "SetterBaseCollection"));
System\Windows\Shell\JumpList.cs (4)
62throw new ArgumentException(SR.JumpItemsRejectedEventArgs_CountMismatch); 352throw new InvalidOperationException(SR.JumpList_CantNestBeginInitCalls); 368throw new NotSupportedException(SR.JumpList_CantCallUnbalancedEndInit); 416throw new InvalidOperationException(SR.JumpList_CantApplyUntilEndInit);
System\Windows\StaticResourceExtension.cs (6)
89throw new Exception(SR.Format(SR.ParserNoResource, ResourceKey.ToString())); 198throw new InvalidOperationException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, "IXamlSchemaContextProvider")); 204throw new InvalidOperationException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, "IAmbientProvider"));
System\Windows\Style.cs (28)
158throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style")); 167throw new ArgumentException(SR.Format(SR.MustBeFrameworkDerived, value.Name)); 197throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style")); 205throw new ArgumentException(SR.StyleCannotBeBasedOnSelf); 304throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Style")); 394throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(SetterBase)), nameof(value)); 469throw new InvalidOperationException(SR.Format(SR.StyleTargetTypeMismatchWithElement, 493throw new InvalidOperationException(SR.Format(SR.NullPropertyIllegal, "TargetType")); 501throw new InvalidOperationException(SR.Format(SR.MustBaseOnStyleOfABaseType, _targetType.Name)); 577throw new InvalidOperationException(SR.Format( 578SR.StyleBasedOnHasLoop)); 630throw new InvalidOperationException(SR.Format(SR.SetterOnStyleNotAllowedToHaveTarget, setter.TargetName)); 734throw new InvalidOperationException(SR.StyleTriggersCannotTargetTheTemplate); 742throw new InvalidOperationException(SR.Format(SR.TriggerOnStyleNotAllowedToHaveSource, conditions[k].SourceName)); 786throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInStyle, trigger.GetType().Name)); 796throw new InvalidOperationException(SR.Format(SR.EventTriggerOnStyleNotAllowedToHaveTarget, eventTrigger.SourceName));
System\Windows\StyleHelper.cs (33)
109throw new InvalidOperationException(SR.CannotHaveOverridesDefaultStyleInThemeStyle); 115throw new InvalidOperationException(SR.CannotHaveEventHandlersInThemeStyle); 228throw new InvalidOperationException(SR.Format( 229SR.SystemResourceForTypeIsNotStyle, themeStyleKey)); 431throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name)); 438throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 445throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name)); 452throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name)); 459throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name)); 496throw new InvalidOperationException(SR.Format(SR.NameNotFound, propertyValue.ChildName)); 551throw new InvalidOperationException(SR.MissingTriggerProperty); 982throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name)); 999throw new InvalidOperationException(SR.Format(SR.UnsupportedTriggerInTemplate, triggerBase.GetType().Name)); 1087throw new InvalidOperationException(SR.Format(SR.EventTriggerTargetNameUnresolvable, eventTrigger.SourceName)); 1596throw new InvalidOperationException(SR.Format(SR.CrossThreadAccessOfUnshareableFreezable, freezable.GetType().FullName)); 2080SR.Format(SR.TemplateCircularReferenceFound, name, walkNode.GetType())); 2334throw new InvalidOperationException(SR.Format(SR.MustBeFrameworkDerived, d.GetType())); 4086throw new InvalidOperationException(SR.ChildTemplateInstanceDoesNotExist); 5316throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, childName)); 5323throw new InvalidOperationException(SR.StyleHasTooManyElements);
System\Windows\SystemKeyConverter.cs (2)
132throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "SystemResourceKey or SystemThemeKey"));
System\Windows\TemplateBindingExpressionConverter.cs (2)
45throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "TemplateBindingExpression"));
System\Windows\TemplateBindingExtension.cs (1)
57throw new InvalidOperationException(SR.MarkupExtensionProperty);
System\Windows\TemplateBindingExtensionConverter.cs (2)
51throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "TemplateBindingExtension"), nameof(value));
System\Windows\TemplateContent.cs (3)
1008throw new System.Windows.Markup.XamlParseException(SR.ParserUnexpectedEndEle); 1236throw new InvalidOperationException(SR.Format(SR.MissingContentSource, contentSource, targetType));
System\Windows\TemplateContentLoader.cs (4)
24throw new InvalidOperationException(SR.Format(SR.DeferringLoaderNoContext, nameof(TemplateContentLoader), typeof(T).Name)); 31throw new NotSupportedException(SR.Format(SR.DeferringLoaderNoSave, nameof(TemplateContentLoader)));
System\Windows\TemplateKey.cs (9)
50throw new InvalidOperationException(SR.Format(SR.PropertyMustHaveValue, "DataType", this.GetType().Name)); 69throw new InvalidOperationException(SR.Format(SR.PropertyIsInitializeOnly, "DataType", this.GetType().Name)); 71throw new InvalidOperationException(SR.Format(SR.PropertyIsImmutable, "DataType", this.GetType().Name)); 163result = new ArgumentException(SR.Format(SR.MustBeTypeOrString, dataType.GetType().Name), argName); 167result = new ArgumentException(SR.DataTypeCannotBeObject, argName);
System\Windows\ThemeDictionaryExtension.cs (4)
68throw new InvalidOperationException(SR.ThemeDictionaryExtension_Name); 74throw new InvalidOperationException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, "IProvideValueTarget" )); 86throw new InvalidOperationException(SR.ThemeDictionaryExtension_Source);
System\Windows\ThicknessConverter.cs (8)
124throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(Thickness)), nameof(value)); 134throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(Thickness), destinationType.FullName)); 196throw new FormatException(SR.Format(SR.InvalidStringThickness, s)); 210_ => throw new FormatException(SR.Format(SR.InvalidStringThickness, s)),
System\Windows\Trigger.cs (13)
39throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Trigger")); 69throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Trigger")); 79throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 85throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported); 116throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "Trigger")); 181throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(Setter)), nameof(o)); 199throw new InvalidOperationException(SR.Format(SR.InvalidPropertyValue, _value, _property.Name ));
System\Windows\TriggerAction.cs (4)
87throw new InvalidOperationException(SR.TriggerActionMustBelongToASingleTrigger); 102throw new InvalidOperationException(SR.TriggerActionAlreadySealed); 114throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "TriggerAction"));
System\Windows\TriggerActionCollection.cs (3)
292throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "TriggerActionCollection")); 305throw new ArgumentException(SR.MustBeTriggerAction);
System\Windows\TriggerBase.cs (7)
177throw new ArgumentException(SR.StylePropertyInStyleNotAllowed); 191throw new ArgumentException(SR.ChildNameMustBeNonEmpty); 247throw new InvalidOperationException(SR.Format(SR.PropertyTriggerCycleDetected, source.Name)); 300throw new InvalidOperationException(SR.Format(SR.VisualTriggerSettersIncludeUnsupportedSetterType, setters[i].GetType().Name)); 358throw new InvalidOperationException(SR.PropertyTriggerLayerLimitExceeded);
System\Windows\TriggerCollection.cs (2)
131throw new InvalidOperationException(SR.Format(SR.CannotChangeAfterSealed, "TriggerCollection"));
System\Windows\Window.cs (29)
257throw new InvalidOperationException(SR.DragMoveFail); 280throw new InvalidOperationException(SR.ShowDialogOnVisible); 284throw new InvalidOperationException(SR.ShowDialogOnModal); 800throw new InvalidOperationException(SR.ChangeNotAllowedAfterShow); 1234throw new ArgumentException(SR.CannotSetOwnerToItself); 1239throw new InvalidOperationException(SR.CantSetOwnerAfterDialogIsShown); 1247throw new InvalidOperationException(SR.CantSetOwnerToClosedWindow); 1249throw new InvalidOperationException(SR.CantSetOwnerWhosHwndIsNotCreated); 1268throw new ArgumentException(SR.Format(SR.CircularOwnerChild, value, this)); 1388throw new InvalidOperationException(SR.DialogResultMustBeSetAfterShowDialog); 1783throw new InvalidOperationException(SR.WindowMustBeRoot); 2400throw new InvalidOperationException(SR.WindowMustBeRoot); 3223throw new InvalidOperationException(SR.CantSetOwnerAfterDialogIsShown); 3702throw new InvalidOperationException(SR.ReshowNotAllowed); 3710throw new InvalidOperationException(SR.InvalidOperationDuringClosing); 3715throw new InvalidOperationException(SR.InvalidCompositionTarget); 3723throw new InvalidOperationException(SR.NotAllowedBeforeShow); 5686throw new ArgumentException(SR.Format(SR.ValueNotBetweenInt32MinMax, l)); 5697throw new ArgumentException(SR.Format(SR.InvalidValueForTopLeft, length)); 5703throw new ArgumentException(SR.Format(SR.ValueNotBetweenInt32MinMax, length)); 6319throw new InvalidOperationException(SR.TransformNotSupported); 6333throw new InvalidOperationException(SR.ClipToBoundsNotSupported); 6834throw new InvalidOperationException(SR.IncorrectFlowDirection); 6947throw new InvalidOperationException(SR.MustUseWindowStyleNone); 6958throw new InvalidOperationException(SR.ShowNonActivatedAndMaximized);