107 references to UiScope
PresentationFramework (107)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
392
if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.
UiScope
.IsFocused) &&
MS\Internal\Documents\TextBoxLine.cs (2)
205
var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.
UiScope
;
459
var uiScope = textEditor?.
UiScope
;
System\windows\Documents\CaretElement.cs (1)
829
return GetOwnerElement(_textEditor.
UiScope
);
System\Windows\Documents\ImmComposition.cs (1)
1853
get { return _editor?.
UiScope
; }
System\Windows\Documents\Speller.cs (6)
74
_textEditor.
UiScope
.LostFocus -= new RoutedEventHandler(OnLostFocus);
463
_spellingReform = (SpellingReform)_textEditor.
UiScope
.GetValue(SpellCheck.SpellingReformProperty);
488
_textEditor.
UiScope
.LostFocus += new RoutedEventHandler(OnLostFocus);
599
_textEditor.
UiScope
.LostFocus -= new RoutedEventHandler(OnLostFocus);
681
if (!_textEditor.
UiScope
.IsKeyboardFocused)
1498
_textEditor.
UiScope
.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default)
System\windows\Documents\TextEditor.cs (5)
459
Invariant.Assert(this.
UiScope
!= null);
1259
if (source == this.
UiScope
)
1264
if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.
UiScope
)
1322
while (scroller != null && scroller != this.
UiScope
)
1583
this.
UiScope
.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(OnTextViewUpdatedWorker), EventArgs.Empty);
System\windows\Documents\TextEditorContextMenu.cs (16)
105
if (!TextEditorMouse.IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.
UiScope
)))
129
if (This.
UiScope
.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null)
133
contextMenu = This.
UiScope
.ContextMenu;
166
contextMenu.PlacementTarget = This.
UiScope
;
209
Point uiScopeMouseDownPoint = Mouse.GetPosition(This.
UiScope
);
272
GeneralTransform transform = element.TransformToAncestor(This.
UiScope
);
283
for (Visual visual = This.
UiScope
; visual != null; visual = VisualTreeHelper.GetParent(visual) as Visual)
288
GeneralTransform transform = visual.TransformToDescendant(This.
UiScope
);
297
PresentationSource source = PresentationSource.CriticalFromVisual(This.
UiScope
);
316
GeneralTransform transform = compositionTarget.RootVisual.TransformToDescendant(This.
UiScope
);
498
menuItem.CommandTarget = textEditor.
UiScope
;
521
menuItem.CommandTarget = textEditor.
UiScope
;
601
menuItem.CommandTarget = textEditor.
UiScope
;
616
CommandTarget = textEditor.
UiScope
,
624
CommandTarget = textEditor.
UiScope
,
632
CommandTarget = textEditor.
UiScope
,
System\windows\Documents\TextEditorCopyPaste.cs (11)
79
if (ConfirmDataFormatSetting(This.
UiScope
, dataObject, DataFormats.Text))
86
if (ConfirmDataFormatSetting(This.
UiScope
, dataObject, DataFormats.UnicodeText))
106
if (wpfContainerMemory != null && ConfirmDataFormatSetting(This.
UiScope
, dataObject, DataFormats.XamlPackage))
112
if (ConfirmDataFormatSetting(This.
UiScope
, dataObject, DataFormats.Rtf))
142
if (ConfirmDataFormatSetting(This.
UiScope
, dataObject, DataFormats.Xaml))
152
This.
UiScope
.RaiseEvent(dataObjectCopyingEventArgs);
203
This.
UiScope
.RaiseEvent(dataObjectPastingEventArgs);
489
if (This.
UiScope
is PasswordBox)
513
if (This.
UiScope
is PasswordBox)
534
if (This.
UiScope
is PasswordBox)
559
if (This.
UiScope
is PasswordBox)
System\windows\Documents\TextEditorDragDrop.cs (7)
93
if (_textEditor.
UiScope
is PasswordBox)
183
_textEditor.
UiScope
.ReleaseMouseCapture();
222
_textEditor.
UiScope
, // dragSource,
265
_textEditor.
UiScope
, TextBox.TextProperty);
366
double pageHeight = (double)_textEditor.
UiScope
.GetValue(TextEditor.PageHeightProperty);
589
_textEditor.
UiScope
.Focus();
653
source = PresentationSource.CriticalFromVisual(_textEditor.
UiScope
);
System\windows\Documents\TextEditorMouse.cs (22)
134
transform = textEditor.
UiScope
.TransformToDescendant(textEditor.TextView.RenderScope);
163
if (!This.
UiScope
.Focusable)
182
if (This.
UiScope
!= Keyboard.FocusedElement)
217
if (!IsPointWithinInteractiveArea(This, e.GetPosition(This.
UiScope
)))
239
This.
UiScope
.CaptureMouse();
254
This.
UiScope
.CaptureMouse();
286
if (This.
UiScope
.IsKeyboardFocused)
327
if (!This.
UiScope
.IsMouseCaptured)
369
This.
UiScope
.ReleaseMouseCapture();
395
if (IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.
UiScope
)))
462
if (!This.
UiScope
.IsMouseCaptured)
507
if (scroller != null && This.
UiScope
is TextBoxBase)
514
double pageHeight = (double)((TextBoxBase)This.
UiScope
).ViewportHeight;
532
double pageWidth = (double)((TextBoxBase)This.
UiScope
).ViewportWidth;
603
Visual scrollViewer = VisualTreeHelper.GetParent(This.
UiScope
) as Visual;
620
This.
UiScope
.Focus(); // Raises a public event.
633
return This.
UiScope
== Keyboard.FocusedElement &&
683
if (This.Selection != null && !This.
UiScope
.IsMouseCaptured)
694
else if (This.
UiScope
.IsFocused && This.Selection.Contains(mouseMovePoint))
760
HitTestResult hitTestResult = VisualTreeHelper.HitTest(textEditor.
UiScope
, point);
775
DependencyObject hitElement = textEditor.
UiScope
.InputHitTest(point) as DependencyObject;
785
if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.
UiScope
)
System\windows\Documents\TextEditorSelection.cs (7)
574
double pageHeight = (double)This.
UiScope
.GetValue(TextEditor.PageHeightProperty);
691
double pageHeight = (double)This.
UiScope
.GetValue(TextEditor.PageHeightProperty);
1126
FlowDirection controlFlowDirection = This.
UiScope
.FlowDirection;
1402
double pageHeight = (double)This.
UiScope
.GetValue(TextEditor.PageHeightProperty);
1498
double pageHeight = (double)This.
UiScope
.GetValue(TextEditor.PageHeightProperty);
2244
FlowDirection controlFlowDirection = This.
UiScope
.FlowDirection;
2377
double pageHeight = (double)textEditor.
UiScope
.GetValue(TextEditor.PageHeightProperty);
System\windows\Documents\TextEditorTyping.cs (15)
303
if (This.TextView != null && !This.
UiScope
.IsMouseCaptured)
1041
if (This.Selection.IsTableCellRange || !This.AcceptsReturn || !This.
UiScope
.IsKeyboardFocused)
1219
Invariant.Assert(This.
UiScope
!= null);
1220
UIElementPropertyUndoUnit.Add(This.TextContainer, This.
UiScope
, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
1221
This.
UiScope
.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
1235
Invariant.Assert(This.
UiScope
!= null);
1236
UIElementPropertyUndoUnit.Add(This.TextContainer, This.
UiScope
, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
1237
This.
UiScope
.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
1324
if (This == null || !This._IsEnabled || This.IsReadOnly || !This.
UiScope
.IsKeyboardFocused)
1355
if (This == null || !This._IsEnabled || This.IsReadOnly || !This.
UiScope
.IsKeyboardFocused)
1600
IWin32Window win32Window = PresentationSource.CriticalFromVisual(This.
UiScope
) as IWin32Window;
1700
if (TextEditor.
UiScope
== null)
1728
if (TextEditor.
UiScope
== null)
1862
This.
UiScope
.IsMouseOver)
1873
if (This.
UiScope
is RichTextBox && This.TextView != null && This.TextView.IsValid)
System\windows\Documents\TextSelection.cs (10)
43
Invariant.Assert(textEditor.
UiScope
!= null);
1607
Brush caretBrush = (Brush)textEditor.
UiScope
.GetValue(TextBoxBase.CaretBrushProperty);
1614
backgroundPropertyValue = textEditor.
UiScope
.GetValue(System.Windows.Controls.Panel.BackgroundProperty);
2347
if (textEditor.
UiScope
is TextBoxBase)
2349
double viewportWidth = ((TextBoxBase)textEditor.
UiScope
).ViewportWidth;
2350
double extentWidth = ((TextBoxBase)textEditor.
UiScope
).ExtentWidth;
2374
FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.
UiScope
.GetValue(FrameworkElement.FlowDirectionProperty);
2391
scrollToOriginPosition -= ((TextBoxBase)textEditor.
UiScope
).HorizontalOffset;
2445
while (element != _textEditor.
UiScope
&& element != null)
2650
return _textEditor.
UiScope
;
System\Windows\Documents\TextStore.cs (3)
2046
composition = new FrameworkRichTextComposition(InputManager.UnsecureCurrent, editor.
UiScope
, owner);
2050
composition = new FrameworkTextComposition(InputManager.Current, editor.
UiScope
, owner);
2082
get { return this.TextEditor.
UiScope
; }