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