107 references to UiScope
PresentationFramework (107)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
392if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
MS\Internal\Documents\TextBoxLine.cs (2)
205var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 459var uiScope = textEditor?.UiScope;
System\windows\Documents\CaretElement.cs (1)
829return GetOwnerElement(_textEditor.UiScope);
System\Windows\Documents\ImmComposition.cs (1)
1853get { return _editor?.UiScope; }
System\Windows\Documents\Speller.cs (6)
74_textEditor.UiScope.LostFocus -= new RoutedEventHandler(OnLostFocus); 463_spellingReform = (SpellingReform)_textEditor.UiScope.GetValue(SpellCheck.SpellingReformProperty); 488_textEditor.UiScope.LostFocus += new RoutedEventHandler(OnLostFocus); 599_textEditor.UiScope.LostFocus -= new RoutedEventHandler(OnLostFocus); 681if (!_textEditor.UiScope.IsKeyboardFocused) 1498_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default)
System\windows\Documents\TextEditor.cs (5)
459Invariant.Assert(this.UiScope != null); 1259if (source == this.UiScope) 1264if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1322while (scroller != null && scroller != this.UiScope) 1583this.UiScope.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(OnTextViewUpdatedWorker), EventArgs.Empty);
System\windows\Documents\TextEditorContextMenu.cs (16)
105if (!TextEditorMouse.IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 129if (This.UiScope.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null) 133contextMenu = This.UiScope.ContextMenu; 166contextMenu.PlacementTarget = This.UiScope; 209Point uiScopeMouseDownPoint = Mouse.GetPosition(This.UiScope); 272GeneralTransform transform = element.TransformToAncestor(This.UiScope); 283for (Visual visual = This.UiScope; visual != null; visual = VisualTreeHelper.GetParent(visual) as Visual) 288GeneralTransform transform = visual.TransformToDescendant(This.UiScope); 297PresentationSource source = PresentationSource.CriticalFromVisual(This.UiScope); 316GeneralTransform transform = compositionTarget.RootVisual.TransformToDescendant(This.UiScope); 498menuItem.CommandTarget = textEditor.UiScope; 521menuItem.CommandTarget = textEditor.UiScope; 601menuItem.CommandTarget = textEditor.UiScope; 616CommandTarget = textEditor.UiScope, 624CommandTarget = textEditor.UiScope, 632CommandTarget = textEditor.UiScope,
System\windows\Documents\TextEditorCopyPaste.cs (11)
79if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Text)) 86if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.UnicodeText)) 106if (wpfContainerMemory != null && ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.XamlPackage)) 112if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Rtf)) 142if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Xaml)) 152This.UiScope.RaiseEvent(dataObjectCopyingEventArgs); 203This.UiScope.RaiseEvent(dataObjectPastingEventArgs); 489if (This.UiScope is PasswordBox) 513if (This.UiScope is PasswordBox) 534if (This.UiScope is PasswordBox) 559if (This.UiScope is PasswordBox)
System\windows\Documents\TextEditorDragDrop.cs (7)
93if (_textEditor.UiScope is PasswordBox) 183_textEditor.UiScope.ReleaseMouseCapture(); 222_textEditor.UiScope, // dragSource, 265_textEditor.UiScope, TextBox.TextProperty); 366double pageHeight = (double)_textEditor.UiScope.GetValue(TextEditor.PageHeightProperty); 589_textEditor.UiScope.Focus(); 653source = PresentationSource.CriticalFromVisual(_textEditor.UiScope);
System\windows\Documents\TextEditorMouse.cs (22)
134transform = textEditor.UiScope.TransformToDescendant(textEditor.TextView.RenderScope); 163if (!This.UiScope.Focusable) 182if (This.UiScope != Keyboard.FocusedElement) 217if (!IsPointWithinInteractiveArea(This, e.GetPosition(This.UiScope))) 239This.UiScope.CaptureMouse(); 254This.UiScope.CaptureMouse(); 286if (This.UiScope.IsKeyboardFocused) 327if (!This.UiScope.IsMouseCaptured) 369This.UiScope.ReleaseMouseCapture(); 395if (IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 462if (!This.UiScope.IsMouseCaptured) 507if (scroller != null && This.UiScope is TextBoxBase) 514double pageHeight = (double)((TextBoxBase)This.UiScope).ViewportHeight; 532double pageWidth = (double)((TextBoxBase)This.UiScope).ViewportWidth; 603Visual scrollViewer = VisualTreeHelper.GetParent(This.UiScope) as Visual; 620This.UiScope.Focus(); // Raises a public event. 633return This.UiScope == Keyboard.FocusedElement && 683if (This.Selection != null && !This.UiScope.IsMouseCaptured) 694else if (This.UiScope.IsFocused && This.Selection.Contains(mouseMovePoint)) 760HitTestResult hitTestResult = VisualTreeHelper.HitTest(textEditor.UiScope, point); 775DependencyObject hitElement = textEditor.UiScope.InputHitTest(point) as DependencyObject; 785if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.UiScope)
System\windows\Documents\TextEditorSelection.cs (7)
574double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 691double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 1126FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 1402double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 1498double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 2244FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2377double pageHeight = (double)textEditor.UiScope.GetValue(TextEditor.PageHeightProperty);
System\windows\Documents\TextEditorTyping.cs (15)
303if (This.TextView != null && !This.UiScope.IsMouseCaptured) 1041if (This.Selection.IsTableCellRange || !This.AcceptsReturn || !This.UiScope.IsKeyboardFocused) 1219Invariant.Assert(This.UiScope != null); 1220UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1221This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1235Invariant.Assert(This.UiScope != null); 1236UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1237This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1324if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1355if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1600IWin32Window win32Window = PresentationSource.CriticalFromVisual(This.UiScope) as IWin32Window; 1700if (TextEditor.UiScope == null) 1728if (TextEditor.UiScope == null) 1862This.UiScope.IsMouseOver) 1873if (This.UiScope is RichTextBox && This.TextView != null && This.TextView.IsValid)
System\windows\Documents\TextSelection.cs (10)
43Invariant.Assert(textEditor.UiScope != null); 1607Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 1614backgroundPropertyValue = textEditor.UiScope.GetValue(System.Windows.Controls.Panel.BackgroundProperty); 2347if (textEditor.UiScope is TextBoxBase) 2349double viewportWidth = ((TextBoxBase)textEditor.UiScope).ViewportWidth; 2350double extentWidth = ((TextBoxBase)textEditor.UiScope).ExtentWidth; 2374FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2391scrollToOriginPosition -= ((TextBoxBase)textEditor.UiScope).HorizontalOffset; 2445while (element != _textEditor.UiScope && element != null) 2650return _textEditor.UiScope;
System\Windows\Documents\TextStore.cs (3)
2046composition = new FrameworkRichTextComposition(InputManager.UnsecureCurrent, editor.UiScope, owner); 2050composition = new FrameworkTextComposition(InputManager.Current, editor.UiScope, owner); 2082get { return this.TextEditor.UiScope; }