107 references to UiScope
PresentationFramework (107)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
415if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
src\Framework\MS\Internal\Documents\TextBoxLine.cs (2)
215var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 469var uiScope = textEditor?.UiScope;
src\Framework\System\windows\Documents\CaretElement.cs (1)
836return GetOwnerElement(_textEditor.UiScope);
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
2065get { return (_editor == null) ? null : _editor.UiScope; }
src\Framework\System\Windows\Documents\Speller.cs (6)
84_textEditor.UiScope.LostFocus -= new RoutedEventHandler(OnLostFocus); 530_spellingReform = (SpellingReform)_textEditor.UiScope.GetValue(SpellCheck.SpellingReformProperty); 555_textEditor.UiScope.LostFocus += new RoutedEventHandler(OnLostFocus); 669_textEditor.UiScope.LostFocus -= new RoutedEventHandler(OnLostFocus); 756if (!_textEditor.UiScope.IsKeyboardFocused) 1601_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default)
src\Framework\System\windows\Documents\TextEditor.cs (5)
489Invariant.Assert(this.UiScope != null); 1299if (source == this.UiScope) 1304if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1368while (scroller != null && scroller != this.UiScope) 1635this.UiScope.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(OnTextViewUpdatedWorker), EventArgs.Empty);
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (16)
117if (!TextEditorMouse.IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 141if (This.UiScope.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null) 145contextMenu = This.UiScope.ContextMenu; 178contextMenu.PlacementTarget = This.UiScope; 221Point uiScopeMouseDownPoint = Mouse.GetPosition(This.UiScope); 289GeneralTransform transform = element.TransformToAncestor(This.UiScope); 300for (Visual visual = This.UiScope; visual != null; visual = VisualTreeHelper.GetParent(visual) as Visual) 305GeneralTransform transform = visual.TransformToDescendant(This.UiScope); 314PresentationSource source = PresentationSource.CriticalFromVisual(This.UiScope); 341GeneralTransform transform = compositionTarget.RootVisual.TransformToDescendant(This.UiScope); 525menuItem.CommandTarget = textEditor.UiScope; 544menuItem.CommandTarget = textEditor.UiScope; 626menuItem.CommandTarget = textEditor.UiScope; 648menuItem.CommandTarget = textEditor.UiScope; 654menuItem.CommandTarget = textEditor.UiScope; 666menuItem.CommandTarget = textEditor.UiScope;
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (11)
122if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Text)) 129if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.UnicodeText)) 157if (wpfContainerMemory != null && ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.XamlPackage)) 163if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Rtf)) 194if (ConfirmDataFormatSetting(This.UiScope, dataObject, DataFormats.Xaml)) 212This.UiScope.RaiseEvent(dataObjectCopyingEventArgs); 273This.UiScope.RaiseEvent(dataObjectPastingEventArgs); 616if (This.UiScope is PasswordBox) 647if (This.UiScope is PasswordBox) 668if (This.UiScope is PasswordBox) 700if (This.UiScope is PasswordBox)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (7)
114if (_textEditor.UiScope is PasswordBox) 212_textEditor.UiScope.ReleaseMouseCapture(); 251_textEditor.UiScope, // dragSource, 295_textEditor.UiScope, TextBox.TextProperty); 396double pageHeight = (double)_textEditor.UiScope.GetValue(TextEditor.PageHeightProperty); 619_textEditor.UiScope.Focus(); 690source = PresentationSource.CriticalFromVisual(_textEditor.UiScope);
src\Framework\System\windows\Documents\TextEditorMouse.cs (22)
151transform = textEditor.UiScope.TransformToDescendant(textEditor.TextView.RenderScope); 183if (!This.UiScope.Focusable) 202if (This.UiScope != Keyboard.FocusedElement) 237if (!IsPointWithinInteractiveArea(This, e.GetPosition(This.UiScope))) 259This.UiScope.CaptureMouse(); 274This.UiScope.CaptureMouse(); 306if (This.UiScope.IsKeyboardFocused) 347if (!This.UiScope.IsMouseCaptured) 389This.UiScope.ReleaseMouseCapture(); 415if (IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 482if (!This.UiScope.IsMouseCaptured) 527if (scroller != null && This.UiScope is TextBoxBase) 534double pageHeight = (double)((TextBoxBase)This.UiScope).ViewportHeight; 552double pageWidth = (double)((TextBoxBase)This.UiScope).ViewportWidth; 622Visual scrollViewer = VisualTreeHelper.GetParent(This.UiScope) as Visual; 639This.UiScope.Focus(); // Raises a public event. 652return This.UiScope == Keyboard.FocusedElement && 702if (This.Selection != null && !This.UiScope.IsMouseCaptured) 713else if (This.UiScope.IsFocused && This.Selection.Contains(mouseMovePoint)) 779HitTestResult hitTestResult = VisualTreeHelper.HitTest(textEditor.UiScope, point); 794DependencyObject hitElement = textEditor.UiScope.InputHitTest(point) as DependencyObject; 804if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.UiScope)
src\Framework\System\windows\Documents\TextEditorSelection.cs (7)
598double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 716double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 1151FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 1427double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 1523double pageHeight = (double)This.UiScope.GetValue(TextEditor.PageHeightProperty); 2269FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2402double pageHeight = (double)textEditor.UiScope.GetValue(TextEditor.PageHeightProperty);
src\Framework\System\windows\Documents\TextEditorTyping.cs (15)
320if (This.TextView != null && !This.UiScope.IsMouseCaptured) 1077if (This.Selection.IsTableCellRange || !This.AcceptsReturn || !This.UiScope.IsKeyboardFocused) 1255Invariant.Assert(This.UiScope != null); 1256UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1257This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1271Invariant.Assert(This.UiScope != null); 1272UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1273This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1363if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1394if (This == null || !This._IsEnabled || This.IsReadOnly || !This.UiScope.IsKeyboardFocused) 1644IWin32Window win32Window = PresentationSource.CriticalFromVisual(This.UiScope) as IWin32Window; 1752if (TextEditor.UiScope == null) 1780if (TextEditor.UiScope == null) 1914This.UiScope.IsMouseOver) 1925if (This.UiScope is RichTextBox && This.TextView != null && This.TextView.IsValid)
src\Framework\System\windows\Documents\TextSelection.cs (10)
50Invariant.Assert(textEditor.UiScope != null); 1629Brush caretBrush = (Brush)textEditor.UiScope.GetValue(TextBoxBase.CaretBrushProperty); 1636backgroundPropertyValue = textEditor.UiScope.GetValue(System.Windows.Controls.Panel.BackgroundProperty); 2374if (textEditor.UiScope is TextBoxBase) 2376double viewportWidth = ((TextBoxBase)textEditor.UiScope).ViewportWidth; 2377double extentWidth = ((TextBoxBase)textEditor.UiScope).ExtentWidth; 2401FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2418scrollToOriginPosition -= ((TextBoxBase)textEditor.UiScope).HorizontalOffset; 2470while (element != _textEditor.UiScope && element != null) 2680return _textEditor.UiScope;
src\Framework\System\Windows\Documents\TextStore.cs (3)
1933composition = new FrameworkRichTextComposition(InputManager.UnsecureCurrent, editor.UiScope, owner); 1937composition = new FrameworkTextComposition(InputManager.Current, editor.UiScope, owner); 1969get { return this.TextEditor.UiScope; }