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