107 references to UiScope
PresentationFramework (107)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
393if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
MS\Internal\Documents\TextBoxLine.cs (2)
206var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 460var uiScope = textEditor?.UiScope;
System\windows\Documents\CaretElement.cs (1)
830return GetOwnerElement(_textEditor.UiScope);
System\Windows\Documents\ImmComposition.cs (1)
1854get { return _editor?.UiScope; }
System\Windows\Documents\Speller.cs (6)
75_textEditor.UiScope.LostFocus -= new RoutedEventHandler(OnLostFocus); 464_spellingReform = (SpellingReform)_textEditor.UiScope.GetValue(SpellCheck.SpellingReformProperty); 489_textEditor.UiScope.LostFocus += new RoutedEventHandler(OnLostFocus); 600_textEditor.UiScope.LostFocus -= new RoutedEventHandler(OnLostFocus); 682if (!_textEditor.UiScope.IsKeyboardFocused) 1499_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default)
System\windows\Documents\TextEditor.cs (5)
460Invariant.Assert(this.UiScope != null); 1260if (source == this.UiScope) 1265if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1323while (scroller != null && scroller != this.UiScope) 1584this.UiScope.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(OnTextViewUpdatedWorker), EventArgs.Empty);
System\windows\Documents\TextEditorContextMenu.cs (16)
106if (!TextEditorMouse.IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 130if (This.UiScope.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null) 134contextMenu = This.UiScope.ContextMenu; 167contextMenu.PlacementTarget = This.UiScope; 210Point uiScopeMouseDownPoint = Mouse.GetPosition(This.UiScope); 273GeneralTransform transform = element.TransformToAncestor(This.UiScope); 284for (Visual visual = This.UiScope; visual != null; visual = VisualTreeHelper.GetParent(visual) as Visual) 289GeneralTransform transform = visual.TransformToDescendant(This.UiScope); 298PresentationSource source = PresentationSource.CriticalFromVisual(This.UiScope); 317GeneralTransform transform = compositionTarget.RootVisual.TransformToDescendant(This.UiScope); 499menuItem.CommandTarget = textEditor.UiScope; 522menuItem.CommandTarget = textEditor.UiScope; 602menuItem.CommandTarget = textEditor.UiScope; 617CommandTarget = textEditor.UiScope, 625CommandTarget = textEditor.UiScope, 633CommandTarget = textEditor.UiScope,
System\windows\Documents\TextEditorCopyPaste.cs (11)
80if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Text)) 87if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.UnicodeText)) 107if (wpfContainerMemory != null && ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.XamlPackage)) 113if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Rtf)) 143if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Xaml)) 153This.UiScope.RaiseEvent(dataObjectCopyingEventArgs); 204This.UiScope.RaiseEvent(dataObjectPastingEventArgs); 490if (This.UiScope is PasswordBox) 514if (This.UiScope is PasswordBox) 535if (This.UiScope is PasswordBox) 560if (This.UiScope is PasswordBox)
System\windows\Documents\TextEditorDragDrop.cs (7)
94if (_textEditor.UiScope is PasswordBox) 184_textEditor.UiScope.ReleaseMouseCapture(); 223_textEditor.UiScope, // dragSource, 266_textEditor.UiScope, TextBox.TextProperty); 367double pageHeight = (double)_textEditor.UiScope.GetValue(TextEditor.PageHeightProperty); 590_textEditor.UiScope.Focus(); 654source = PresentationSource.CriticalFromVisual(_textEditor.UiScope);
System\windows\Documents\TextEditorMouse.cs (22)
135transform = textEditor.UiScope.TransformToDescendant(textEditor.TextView.RenderScope); 164if (!This.UiScope.Focusable) 183if (This.UiScope != Keyboard.FocusedElement) 218if (!IsPointWithinInteractiveArea(This, e.GetPosition(This.UiScope))) 240This.UiScope.CaptureMouse(); 255This.UiScope.CaptureMouse(); 287if (This.UiScope.IsKeyboardFocused) 328if (!This.UiScope.IsMouseCaptured) 370This.UiScope.ReleaseMouseCapture(); 396if (IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 463if (!This.UiScope.IsMouseCaptured) 508if (scroller != null && This.UiScope is TextBoxBase) 515double pageHeight = (double)((TextBoxBase)This.UiScope).ViewportHeight; 533double pageWidth = (double)((TextBoxBase)This.UiScope).ViewportWidth; 604Visual scrollViewer = VisualTreeHelper.GetParent(This.UiScope) as Visual; 621This.UiScope.Focus(); // Raises a public event. 634return This.UiScope == Keyboard.FocusedElement && 684if (This.Selection != null && !This.UiScope.IsMouseCaptured) 695else if (This.UiScope.IsFocused && This.Selection.Contains(mouseMovePoint)) 761HitTestResult hitTestResult = VisualTreeHelper.HitTest(textEditor.UiScope, point); 776DependencyObject hitElement = textEditor.UiScope.InputHitTest(point) as DependencyObject; 786if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.UiScope)
System\windows\Documents\TextEditorSelection.cs (7)
575double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 692double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 1127FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 1403double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 1499double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 2245FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2378double pageHeight = (double)textEditor.UiScope.GetValue(TextEditor.PageHeightProperty);
System\windows\Documents\TextEditorTyping.cs (15)
304if (This.TextView != null && !This.UiScope.IsMouseCaptured) 1042if (This.Selection.IsTableCellRange || !This.AcceptsReturn || !This.UiScope.IsKeyboardFocused) 1220Invariant.Assert(This.UiScope != null); 1221UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1222This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1236Invariant.Assert(This.UiScope != null); 1237UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1238This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1325if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1356if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1601IWin32Window win32Window = PresentationSource.CriticalFromVisual(This.UiScope) as IWin32Window; 1701if (TextEditor.UiScope == null) 1729if (TextEditor.UiScope == null) 1863This.UiScope.IsMouseOver) 1874if (This.UiScope is RichTextBox && This.TextView != null && This.TextView.IsValid)
System\windows\Documents\TextSelection.cs (10)
44Invariant.Assert(textEditor.UiScope != null); 1608Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 1615backgroundPropertyValue = textEditor.UiScope.GetValue(System.Windows.Controls.Panel.BackgroundProperty); 2348if (textEditor.UiScope is TextBoxBase) 2350double viewportWidth = ((TextBoxBase)textEditor.UiScope).ViewportWidth; 2351double extentWidth = ((TextBoxBase)textEditor.UiScope).ExtentWidth; 2375FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2392scrollToOriginPosition -= ((TextBoxBase)textEditor.UiScope).HorizontalOffset; 2446while (element != _textEditor.UiScope && element != null) 2651return _textEditor.UiScope;
System\Windows\Documents\TextStore.cs (3)
2047composition = new FrameworkRichTextComposition(InputManager.UnsecureCurrent, editor.UiScope, owner); 2051composition = new FrameworkTextComposition(InputManager.Current, editor.UiScope, owner); 2083get { return this.TextEditor.UiScope; }