107 references to UiScope
PresentationFramework (107)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
395if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
MS\Internal\Documents\TextBoxLine.cs (2)
213var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 467var uiScope = textEditor?.UiScope;
System\windows\Documents\CaretElement.cs (1)
832return GetOwnerElement(_textEditor.UiScope);
System\Windows\Documents\ImmComposition.cs (1)
1875get { return (_editor == null) ? null : _editor.UiScope; }
System\Windows\Documents\Speller.cs (6)
79_textEditor.UiScope.LostFocus -= new RoutedEventHandler(OnLostFocus); 468_spellingReform = (SpellingReform)_textEditor.UiScope.GetValue(SpellCheck.SpellingReformProperty); 493_textEditor.UiScope.LostFocus += new RoutedEventHandler(OnLostFocus); 607_textEditor.UiScope.LostFocus -= new RoutedEventHandler(OnLostFocus); 689if (!_textEditor.UiScope.IsKeyboardFocused) 1506_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default)
System\windows\Documents\TextEditor.cs (5)
474Invariant.Assert(this.UiScope != null); 1272if (source == this.UiScope) 1277if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1341while (scroller != null && scroller != this.UiScope) 1602this.UiScope.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(OnTextViewUpdatedWorker), EventArgs.Empty);
System\windows\Documents\TextEditorContextMenu.cs (16)
108if (!TextEditorMouse.IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 132if (This.UiScope.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null) 136contextMenu = This.UiScope.ContextMenu; 169contextMenu.PlacementTarget = This.UiScope; 212Point uiScopeMouseDownPoint = Mouse.GetPosition(This.UiScope); 275GeneralTransform transform = element.TransformToAncestor(This.UiScope); 286for (Visual visual = This.UiScope; visual != null; visual = VisualTreeHelper.GetParent(visual) as Visual) 291GeneralTransform transform = visual.TransformToDescendant(This.UiScope); 300PresentationSource source = PresentationSource.CriticalFromVisual(This.UiScope); 319GeneralTransform transform = compositionTarget.RootVisual.TransformToDescendant(This.UiScope); 499menuItem.CommandTarget = textEditor.UiScope; 518menuItem.CommandTarget = textEditor.UiScope; 594menuItem.CommandTarget = textEditor.UiScope; 608menuItem.CommandTarget = textEditor.UiScope; 614menuItem.CommandTarget = textEditor.UiScope; 620menuItem.CommandTarget = textEditor.UiScope;
System\windows\Documents\TextEditorCopyPaste.cs (11)
93if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Text)) 100if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.UnicodeText)) 120if (wpfContainerMemory != null && ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.XamlPackage)) 126if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Rtf)) 156if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Xaml)) 166This.UiScope.RaiseEvent(dataObjectCopyingEventArgs); 217This.UiScope.RaiseEvent(dataObjectPastingEventArgs); 501if (This.UiScope is PasswordBox) 525if (This.UiScope is PasswordBox) 546if (This.UiScope is PasswordBox) 571if (This.UiScope is PasswordBox)
System\windows\Documents\TextEditorDragDrop.cs (7)
111if (_textEditor.UiScope is PasswordBox) 201_textEditor.UiScope.ReleaseMouseCapture(); 240_textEditor.UiScope, // dragSource, 283_textEditor.UiScope, TextBox.TextProperty); 384double pageHeight = (double)_textEditor.UiScope.GetValue(TextEditor.PageHeightProperty); 607_textEditor.UiScope.Focus(); 671source = PresentationSource.CriticalFromVisual(_textEditor.UiScope);
System\windows\Documents\TextEditorMouse.cs (22)
149transform = textEditor.UiScope.TransformToDescendant(textEditor.TextView.RenderScope); 181if (!This.UiScope.Focusable) 200if (This.UiScope != Keyboard.FocusedElement) 235if (!IsPointWithinInteractiveArea(This, e.GetPosition(This.UiScope))) 257This.UiScope.CaptureMouse(); 272This.UiScope.CaptureMouse(); 304if (This.UiScope.IsKeyboardFocused) 345if (!This.UiScope.IsMouseCaptured) 387This.UiScope.ReleaseMouseCapture(); 413if (IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 480if (!This.UiScope.IsMouseCaptured) 525if (scroller != null && This.UiScope is TextBoxBase) 532double pageHeight = (double)((TextBoxBase)This.UiScope).ViewportHeight; 550double pageWidth = (double)((TextBoxBase)This.UiScope).ViewportWidth; 621Visual scrollViewer = VisualTreeHelper.GetParent(This.UiScope) as Visual; 638This.UiScope.Focus(); // Raises a public event. 651return This.UiScope == Keyboard.FocusedElement && 701if (This.Selection != null && !This.UiScope.IsMouseCaptured) 712else if (This.UiScope.IsFocused && This.Selection.Contains(mouseMovePoint)) 778HitTestResult hitTestResult = VisualTreeHelper.HitTest(textEditor.UiScope, point); 793DependencyObject hitElement = textEditor.UiScope.InputHitTest(point) as DependencyObject; 803if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.UiScope)
System\windows\Documents\TextEditorSelection.cs (7)
590double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 707double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 1142FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 1418double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 1514double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 2260FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2393double pageHeight = (double)textEditor.UiScope.GetValue(TextEditor.PageHeightProperty);
System\windows\Documents\TextEditorTyping.cs (15)
316if (This.TextView != null && !This.UiScope.IsMouseCaptured) 1060if (This.Selection.IsTableCellRange || !This.AcceptsReturn || !This.UiScope.IsKeyboardFocused) 1238Invariant.Assert(This.UiScope != null); 1239UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1240This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1254Invariant.Assert(This.UiScope != null); 1255UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1256This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1346if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1377if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1622IWin32Window win32Window = PresentationSource.CriticalFromVisual(This.UiScope) as IWin32Window; 1722if (TextEditor.UiScope == null) 1750if (TextEditor.UiScope == null) 1884This.UiScope.IsMouseOver) 1895if (This.UiScope is RichTextBox && This.TextView != null && This.TextView.IsValid)
System\windows\Documents\TextSelection.cs (10)
47Invariant.Assert(textEditor.UiScope != null); 1626Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 1633backgroundPropertyValue = textEditor.UiScope.GetValue(System.Windows.Controls.Panel.BackgroundProperty); 2366if (textEditor.UiScope is TextBoxBase) 2368double viewportWidth = ((TextBoxBase)textEditor.UiScope).ViewportWidth; 2369double extentWidth = ((TextBoxBase)textEditor.UiScope).ExtentWidth; 2393FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2410scrollToOriginPosition -= ((TextBoxBase)textEditor.UiScope).HorizontalOffset; 2462while (element != _textEditor.UiScope && element != null) 2667return _textEditor.UiScope;
System\Windows\Documents\TextStore.cs (3)
2064composition = new FrameworkRichTextComposition(InputManager.UnsecureCurrent, editor.UiScope, owner); 2068composition = new FrameworkTextComposition(InputManager.Current, editor.UiScope, owner); 2100get { return this.TextEditor.UiScope; }