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)
829return GetOwnerElement(_textEditor.UiScope);
System\Windows\Documents\ImmComposition.cs (1)
1867get { return (_editor == null) ? null : _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); 603_textEditor.UiScope.LostFocus -= new RoutedEventHandler(OnLostFocus); 685if (!_textEditor.UiScope.IsKeyboardFocused) 1502_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default)
System\windows\Documents\TextEditor.cs (5)
468Invariant.Assert(this.UiScope != null); 1266if (source == this.UiScope) 1271if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1335while (scroller != null && scroller != this.UiScope) 1596this.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); 497menuItem.CommandTarget = textEditor.UiScope; 516menuItem.CommandTarget = textEditor.UiScope; 592menuItem.CommandTarget = textEditor.UiScope; 606menuItem.CommandTarget = textEditor.UiScope; 612menuItem.CommandTarget = textEditor.UiScope; 618menuItem.CommandTarget = 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); 488if (This.UiScope is PasswordBox) 512if (This.UiScope is PasswordBox) 533if (This.UiScope is PasswordBox) 558if (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); 167if (!This.UiScope.Focusable) 186if (This.UiScope != Keyboard.FocusedElement) 221if (!IsPointWithinInteractiveArea(This, e.GetPosition(This.UiScope))) 243This.UiScope.CaptureMouse(); 258This.UiScope.CaptureMouse(); 290if (This.UiScope.IsKeyboardFocused) 331if (!This.UiScope.IsMouseCaptured) 373This.UiScope.ReleaseMouseCapture(); 399if (IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 466if (!This.UiScope.IsMouseCaptured) 511if (scroller != null && This.UiScope is TextBoxBase) 518double pageHeight = (double)((TextBoxBase)This.UiScope).ViewportHeight; 536double pageWidth = (double)((TextBoxBase)This.UiScope).ViewportWidth; 607Visual scrollViewer = VisualTreeHelper.GetParent(This.UiScope) as Visual; 624This.UiScope.Focus(); // Raises a public event. 637return This.UiScope == Keyboard.FocusedElement && 687if (This.Selection != null && !This.UiScope.IsMouseCaptured) 698else if (This.UiScope.IsFocused && This.Selection.Contains(mouseMovePoint)) 764HitTestResult hitTestResult = VisualTreeHelper.HitTest(textEditor.UiScope, point); 779DependencyObject hitElement = textEditor.UiScope.InputHitTest(point) as DependencyObject; 789if (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)
307if (This.TextView != null && !This.UiScope.IsMouseCaptured) 1051if (This.Selection.IsTableCellRange || !This.AcceptsReturn || !This.UiScope.IsKeyboardFocused) 1229Invariant.Assert(This.UiScope != null); 1230UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1231This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1245Invariant.Assert(This.UiScope != null); 1246UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1247This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1337if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1368if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1613IWin32Window win32Window = PresentationSource.CriticalFromVisual(This.UiScope) as IWin32Window; 1713if (TextEditor.UiScope == null) 1741if (TextEditor.UiScope == null) 1875This.UiScope.IsMouseOver) 1886if (This.UiScope is RichTextBox && This.TextView != null && This.TextView.IsValid)
System\windows\Documents\TextSelection.cs (10)
44Invariant.Assert(textEditor.UiScope != null); 1623Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 1630backgroundPropertyValue = textEditor.UiScope.GetValue(System.Windows.Controls.Panel.BackgroundProperty); 2363if (textEditor.UiScope is TextBoxBase) 2365double viewportWidth = ((TextBoxBase)textEditor.UiScope).ViewportWidth; 2366double extentWidth = ((TextBoxBase)textEditor.UiScope).ExtentWidth; 2390FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2407scrollToOriginPosition -= ((TextBoxBase)textEditor.UiScope).HorizontalOffset; 2459while (element != _textEditor.UiScope && element != null) 2664return _textEditor.UiScope;
System\Windows\Documents\TextStore.cs (3)
2053composition = new FrameworkRichTextComposition(InputManager.UnsecureCurrent, editor.UiScope, owner); 2057composition = new FrameworkTextComposition(InputManager.Current, editor.UiScope, owner); 2089get { return this.TextEditor.UiScope; }