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