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