2 types derived from UIElement
PresentationFramework (2)
System\windows\Documents\CaretElement.cs (1)
1198private class CaretSubElement : UIElement
System\Windows\FrameworkElement.cs (1)
94public partial class FrameworkElement : UIElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
2 instantiations of UIElement
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11872DefaultConstructor = delegate () { return new System.Windows.UIElement(); },
System\Windows\Markup\KnownTypes.cs (1)
1623case KnownElements.UIElement: o = new System.Windows.UIElement(); break;
2751 references to UIElement
Microsoft.CodeAnalysis.EditorFeatures.Wpf (18)
Adornments\BrushTag.cs (1)
16/// just a simple single <see cref="UIElement"/> should subclass <see cref="GraphicsTag"/>. In that case the <see
Adornments\GraphicsResult.cs (2)
13public UIElement VisualElement { get; } 16public GraphicsResult(UIElement visualElement, Action? dispose)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
179public static void UpdateColor(TextFormattingRunProperties format, UIElement adornment)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (7)
32private UIElement _focusedElement = null; 33private readonly List<UIElement> _tabNavigableChildren; 69((UIElement)_findAdornmentLayer).LayoutUpdated += FindAdornmentCanvas_LayoutUpdated; 132((UIElement)_textView.Caret).Visibility = Visibility.Visible; 135private void FocusElement(UIElement firstElement, Func<int, int> selector) 301var adornment = _findAdornmentLayer.Elements[0].Adornment; 366((UIElement)_findAdornmentLayer).LayoutUpdated -= FindAdornmentCanvas_LayoutUpdated;
QuickInfo\OnTheFlyDocsView.xaml.cs (5)
266public UIElement OnDemandLinkContent { get; } 268public UIElement LoadingContent { get; } 270public UIElement ResultsContent { get; } 314private UIElement ToUIElement(object model) 315=> _viewElementFactoryService.CreateViewElement<UIElement>(_textView, model);
QuickInfo\OnTheFlyDocsViewFactory.cs (2)
24[TypeConversion(from: typeof(QuickInfoOnTheFlyDocsElement), to: typeof(UIElement))] 48if (typeof(TView) != typeof(UIElement))
Microsoft.VisualStudio.LanguageServices (3)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
335renderHeight = ((UIElement)border).RenderSize.Height;
InheritanceMargin\InheritanceGlyphFactory.cs (1)
59public UIElement? GenerateGlyph(IWpfTextViewLine line, IGlyphTag tag)
PreviewPane\PreviewPane.xaml.cs (1)
212var preview = grid.Children[0];
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
209image.SetBinding(CrispImage.GrayscaleProperty, new Binding(UIElement.IsEnabledProperty.Name)
PresentationCore (1191)
MS\Internal\Automation\ElementUtil.cs (6)
113internal static Rect GetLocalRect( UIElement element ) 128internal static Rect GetScreenRect( IntPtr hwnd, UIElement el ) 168UIElement el = visual as UIElement; 260if ( !(sibling is UIElement) || (((UIElement)sibling).Visibility == Visibility.Visible ) )
MS\Internal\Automation\SynchronizedInputAdaptor.cs (4)
42UIElement e = _owner as UIElement; 76UIElement e = _owner as UIElement;
MS\Internal\DeferredElementTreeState.cs (2)
93UIElement e = element as UIElement;
MS\Internal\DpiUtil\DpiUtil.cs (6)
177lock (UIElement.DpiLock) 181int sizeOfList = UIElement.DpiScaleXValues.Count; 185if (UIElement.DpiScaleXValues[index] == pixelsPerInchX / DpiUtil.DefaultPixelsPerInch && 186UIElement.DpiScaleYValues[index] == pixelsPerInchY / DpiUtil.DefaultPixelsPerInch) 195UIElement.DpiScaleXValues.Add(pixelsPerInchX / DpiUtil.DefaultPixelsPerInch); 196UIElement.DpiScaleYValues.Add(pixelsPerInchY / DpiUtil.DefaultPixelsPerInch);
MS\Internal\DpiUtil\DpiUtil+SystemDpiHelper.cs (6)
68lock (UIElement.DpiLock) 70return new DpiScale2(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 80lock(UIElement.DpiLock) 82UIElement.DpiScaleXValues.Insert(0, systemDpiScale.DpiScaleX); 83UIElement.DpiScaleYValues.Insert(0, systemDpiScale.DpiScaleY);
MS\Internal\Interop\TipTsfHelper.cs (2)
163UIElement uiElement; 168if ((uiElement = focusedObject as UIElement) != null)
MS\Internal\SynchronizedInputHelper.cs (5)
18UIElement e = o as UIElement; 134UIElement e = logicalParent as UIElement; 296if (InputManager.ListeningElement is UIElement e)
MS\Internal\UIElementHelper.cs (15)
19UIElement oAsUIElement = o as UIElement; 34UIElement oAsUIElement = o as UIElement; 49UIElement uie; 53if ((uie = o as UIElement) != null) 69internal static UIElement GetContainingUIElement2D(DependencyObject reference) 71UIElement element = null; 75element = reference as UIElement; 113UIElement childAsUIElement = child as UIElement; 133return (o is UIElement or UIElement3D); 138UIElement e = null; 179out UIElement e, 189e = o as UIElement;
System\Windows\Automation\AutomationProperties.cs (5)
344typeof(UIElement), 346new UIPropertyMetadata((UIElement)null)); 351public static void SetLabeledBy(DependencyObject element, UIElement value) 361public static UIElement GetLabeledBy(DependencyObject element) 365return ((UIElement)element.GetValue(LabeledByProperty));
System\Windows\Automation\Peers\AutomationPeer.cs (2)
410UIElement uie = focusedElement as UIElement;
System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
43/// <seealso cref="UIElement.OnCreateAutomationPeer"/> virtual callback. If FrameworkContentElement does not
System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (1)
16public GenericRootAutomationPeer(UIElement owner): base(owner)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (7)
93&& child is UIElement 94&& (peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)child)) != null ) 216UIElement containingUIElement = GetContainingUIElement(_owner); 238private static UIElement GetContainingUIElement(DependencyObject reference) 240UIElement element = null; 244element = reference as UIElement; 332UIElement element = AutomationProperties.GetLabeledBy(_owner);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (12)
16public UIElementAutomationPeer(UIElement owner) 23public UIElement Owner 38/// <seealso cref="UIElement.OnCreateAutomationPeer"/> virtual callback. If UIElement does not 42public static AutomationPeer CreatePeerForElement(UIElement element) 50public static AutomationPeer FromElement(UIElement element) 111&& child is UIElement 112&& (peer = CreatePeerForElement((UIElement)child)) != null ) 259internal static Rect CalculateVisibleBoundingRect(UIElement owner) 379UIElement element = AutomationProperties.GetLabeledBy(_owner); 420UIElement element = _owner.PositionAndSizeOfSetController; 455UIElement element = _owner.PositionAndSizeOfSetController; 524private UIElement _owner;
System\Windows\ContentElement.cs (15)
30UIElement.RegisterEvents(typeof(ContentElement)); 33UIElement.IsFocusedPropertyKey.OverrideMetadata( 549UIElement.IsFocusedProperty.AddOwner( 596UIElement.IsEnabledProperty.AddOwner( 618add { EventHandlersStoreAdd(UIElement.IsEnabledChangedKey, value); } 619remove { EventHandlersStoreRemove(UIElement.IsEnabledChangedKey, value); } 684ce.RaiseDependencyPropertyChanged(UIElement.IsEnabledChangedKey, e); 704UIElement.FocusableProperty.AddOwner( 724add {EventHandlersStoreAdd(UIElement.FocusableChangedKey, value);} 725remove {EventHandlersStoreRemove(UIElement.FocusableChangedKey, value);} 733ce.RaiseDependencyPropertyChanged(UIElement.FocusableChangedKey, e); 788UIElement.AllowDropProperty.AddOwner( 947internal static readonly UncommonField<EventHandlersStore> EventHandlersStoreField = UIElement.EventHandlersStoreField; 948internal static readonly UncommonField<InputBindingCollection> InputBindingCollectionField = UIElement.InputBindingCollectionField; 949internal static readonly UncommonField<CommandBindingCollection> CommandBindingCollectionField = UIElement.CommandBindingCollectionField;
System\Windows\dataobject.cs (6)
796UIElement.AddHandler(element, CopyingEvent, handler); 806UIElement.RemoveHandler(element, CopyingEvent, handler); 845UIElement.AddHandler(element, PastingEvent, handler); 855UIElement.RemoveHandler(element, PastingEvent, handler); 884UIElement.AddHandler(element, SettingDataEvent, handler); 894UIElement.RemoveHandler(element, SettingDataEvent, handler);
System\Windows\DpiScale.cs (1)
14/// or <see cref="System.Windows.UIElement"/> is rendered.
System\Windows\DragDrop.cs (42)
52UIElement.AddHandler(element, PreviewQueryContinueDragEvent, handler); 62UIElement.RemoveHandler(element, PreviewQueryContinueDragEvent, handler); 77UIElement.AddHandler(element, QueryContinueDragEvent, handler); 87UIElement.RemoveHandler(element, QueryContinueDragEvent, handler); 102UIElement.AddHandler(element, PreviewGiveFeedbackEvent, handler); 112UIElement.RemoveHandler(element, PreviewGiveFeedbackEvent, handler); 127UIElement.AddHandler(element, GiveFeedbackEvent, handler); 137UIElement.RemoveHandler(element, GiveFeedbackEvent, handler); 152UIElement.AddHandler(element, PreviewDragEnterEvent, handler); 162UIElement.RemoveHandler(element, PreviewDragEnterEvent, handler); 177UIElement.AddHandler(element, DragEnterEvent, handler); 187UIElement.RemoveHandler(element, DragEnterEvent, handler); 202UIElement.AddHandler(element, PreviewDragOverEvent, handler); 212UIElement.RemoveHandler(element, PreviewDragOverEvent, handler); 227UIElement.AddHandler(element, DragOverEvent, handler); 237UIElement.RemoveHandler(element, DragOverEvent, handler); 252UIElement.AddHandler(element, PreviewDragLeaveEvent, handler); 262UIElement.RemoveHandler(element, PreviewDragLeaveEvent, handler); 277UIElement.AddHandler(element, DragLeaveEvent, handler); 287UIElement.RemoveHandler(element, DragLeaveEvent, handler); 302UIElement.AddHandler(element, PreviewDropEvent, handler); 312UIElement.RemoveHandler(element, PreviewDropEvent, handler); 327UIElement.AddHandler(element, DropEvent, handler); 337UIElement.RemoveHandler(element, DropEvent, handler); 380if (dragSource is UIElement) 382((UIElement)dragSource).RaiseEvent(args); 411if (dragSource is UIElement) 413((UIElement)dragSource).RaiseEvent(args); 696if (_dragSource is UIElement) 698((UIElement)_dragSource).RaiseEvent(args); 719if (_dragSource is UIElement) 721((UIElement)_dragSource).RaiseEvent(args); 753if (_dragSource is UIElement) 755((UIElement)_dragSource).RaiseEvent(args); 776if (_dragSource is UIElement) 778((UIElement)_dragSource).RaiseEvent(args); 1155if (target is UIElement) 1157((UIElement)target).RaiseEvent(dragEventArgs); 1179if (target is UIElement) 1181((UIElement)target).RaiseEvent(dragEventArgs); 1305UIElement targetUIElement; 1312targetUIElement = target as UIElement;
System\Windows\EventManager.cs (2)
109/// <see cref="UIElement.AddHandler(RoutedEvent, Delegate)"/> <para/> 156if (!typeof(UIElement).IsAssignableFrom(classType) &&
System\Windows\FocusWithinProperty.cs (3)
16UIElement.IsKeyboardFocusWithinPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 28UIElement.IsKeyboardFocusWithinProperty,
System\Windows\Generated\ContentElement.cs (80)
372UIElement.BuildRouteHelper(this, route, args); 395UIElement.RaiseEventImpl(this, e); 414UIElement.RaiseEventImpl(this, args); 427UIElement.RaiseEventImpl(this, args); 727UIElement.IsMouseDirectlyOverPropertyKey.OverrideMetadata( 733UIElement.IsMouseOverPropertyKey.OverrideMetadata( 738UIElement.IsStylusOverPropertyKey.OverrideMetadata( 743UIElement.IsKeyboardFocusWithinPropertyKey.OverrideMetadata( 748UIElement.IsMouseCapturedPropertyKey.OverrideMetadata( 754UIElement.IsMouseCaptureWithinPropertyKey.OverrideMetadata( 759UIElement.IsStylusDirectlyOverPropertyKey.OverrideMetadata( 765UIElement.IsStylusCapturedPropertyKey.OverrideMetadata( 771UIElement.IsStylusCaptureWithinPropertyKey.OverrideMetadata( 776UIElement.IsKeyboardFocusedPropertyKey.OverrideMetadata( 782UIElement.AreAnyTouchesDirectlyOverPropertyKey.OverrideMetadata( 787UIElement.AreAnyTouchesOverPropertyKey.OverrideMetadata( 792UIElement.AreAnyTouchesCapturedPropertyKey.OverrideMetadata( 797UIElement.AreAnyTouchesCapturedWithinPropertyKey.OverrideMetadata( 884public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 891add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 892remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 903public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 910add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 911remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 922public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 929add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 930remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 941public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 948add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 949remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 960public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 967add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 968remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 979public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 986add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 987remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 998public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 1005add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 1006remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 1017public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 1024add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 1025remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 2243public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 2255add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 2256remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 2272RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2278public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2283public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2288public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2295add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2296remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2312RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2318public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2330add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2331remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2347RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2353public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2360add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2361remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2377RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2383public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2395add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2396remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2412RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2418public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2430add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2431remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2447RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2453public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2460add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2461remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2477RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2483public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2495add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2496remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2512RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2518public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2523public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2528public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2533public static readonly DependencyProperty AreAnyTouchesCapturedWithinProperty = UIElement.AreAnyTouchesCapturedWithinProperty.AddOwner(_typeofThis);
System\Windows\Generated\UIElement.cs (293)
24static private readonly Type _typeofThis = typeof(UIElement); 372UIElement.BuildRouteHelper(this, route, args); 381/// <see cref="UIElement.BuildRoute"/> and 395UIElement.RaiseEventImpl(this, e); 414UIElement.RaiseEventImpl(this, args); 427UIElement.RaiseEventImpl(this, args); 728EventManager.RegisterClassHandler(type, Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseDownThunk), true); 729EventManager.RegisterClassHandler(type, Mouse.MouseDownEvent, new MouseButtonEventHandler(UIElement.OnMouseDownThunk), true); 730EventManager.RegisterClassHandler(type, Mouse.PreviewMouseUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseUpThunk), true); 731EventManager.RegisterClassHandler(type, Mouse.MouseUpEvent, new MouseButtonEventHandler(UIElement.OnMouseUpThunk), true); 732EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonDownThunk), false); 733EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonDownThunk), false); 734EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonUpThunk), false); 735EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonUpThunk), false); 736EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonDownThunk), false); 737EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonDownThunk), false); 738EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonUpThunk), false); 739EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonUpThunk), false); 740EventManager.RegisterClassHandler(type, Mouse.PreviewMouseMoveEvent, new MouseEventHandler(UIElement.OnPreviewMouseMoveThunk), false); 741EventManager.RegisterClassHandler(type, Mouse.MouseMoveEvent, new MouseEventHandler(UIElement.OnMouseMoveThunk), false); 742EventManager.RegisterClassHandler(type, Mouse.PreviewMouseWheelEvent, new MouseWheelEventHandler(UIElement.OnPreviewMouseWheelThunk), false); 743EventManager.RegisterClassHandler(type, Mouse.MouseWheelEvent, new MouseWheelEventHandler(UIElement.OnMouseWheelThunk), false); 744EventManager.RegisterClassHandler(type, Mouse.MouseEnterEvent, new MouseEventHandler(UIElement.OnMouseEnterThunk), false); 745EventManager.RegisterClassHandler(type, Mouse.MouseLeaveEvent, new MouseEventHandler(UIElement.OnMouseLeaveThunk), false); 746EventManager.RegisterClassHandler(type, Mouse.GotMouseCaptureEvent, new MouseEventHandler(UIElement.OnGotMouseCaptureThunk), false); 747EventManager.RegisterClassHandler(type, Mouse.LostMouseCaptureEvent, new MouseEventHandler(UIElement.OnLostMouseCaptureThunk), false); 748EventManager.RegisterClassHandler(type, Mouse.QueryCursorEvent, new QueryCursorEventHandler(UIElement.OnQueryCursorThunk), false); 749EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 750EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 751EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 752EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 753EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 754EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 755EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 756EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 757EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 758EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 759EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 760EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 761EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 762EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 763EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 764EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 765EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 766EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 767EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 768EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 769EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 770EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 771EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyDownEvent, new KeyEventHandler(UIElement.OnPreviewKeyDownThunk), false); 772EventManager.RegisterClassHandler(type, Keyboard.KeyDownEvent, new KeyEventHandler(UIElement.OnKeyDownThunk), false); 773EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyUpEvent, new KeyEventHandler(UIElement.OnPreviewKeyUpThunk), false); 774EventManager.RegisterClassHandler(type, Keyboard.KeyUpEvent, new KeyEventHandler(UIElement.OnKeyUpThunk), false); 775EventManager.RegisterClassHandler(type, Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewGotKeyboardFocusThunk), false); 776EventManager.RegisterClassHandler(type, Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnGotKeyboardFocusThunk), false); 777EventManager.RegisterClassHandler(type, Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewLostKeyboardFocusThunk), false); 778EventManager.RegisterClassHandler(type, Keyboard.LostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnLostKeyboardFocusThunk), false); 779EventManager.RegisterClassHandler(type, TextCompositionManager.PreviewTextInputEvent, new TextCompositionEventHandler(UIElement.OnPreviewTextInputThunk), false); 780EventManager.RegisterClassHandler(type, TextCompositionManager.TextInputEvent, new TextCompositionEventHandler(UIElement.OnTextInputThunk), false); 781EventManager.RegisterClassHandler(type, CommandManager.PreviewExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnPreviewExecutedThunk), false); 782EventManager.RegisterClassHandler(type, CommandManager.ExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnExecutedThunk), false); 783EventManager.RegisterClassHandler(type, CommandManager.PreviewCanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnPreviewCanExecuteThunk), false); 784EventManager.RegisterClassHandler(type, CommandManager.CanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnCanExecuteThunk), false); 785EventManager.RegisterClassHandler(type, CommandDevice.CommandDeviceEvent, new CommandDeviceEventHandler(UIElement.OnCommandDeviceThunk), false); 786EventManager.RegisterClassHandler(type, DragDrop.PreviewQueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnPreviewQueryContinueDragThunk), false); 787EventManager.RegisterClassHandler(type, DragDrop.QueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnQueryContinueDragThunk), false); 788EventManager.RegisterClassHandler(type, DragDrop.PreviewGiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnPreviewGiveFeedbackThunk), false); 789EventManager.RegisterClassHandler(type, DragDrop.GiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnGiveFeedbackThunk), false); 790EventManager.RegisterClassHandler(type, DragDrop.PreviewDragEnterEvent, new DragEventHandler(UIElement.OnPreviewDragEnterThunk), false); 791EventManager.RegisterClassHandler(type, DragDrop.DragEnterEvent, new DragEventHandler(UIElement.OnDragEnterThunk), false); 792EventManager.RegisterClassHandler(type, DragDrop.PreviewDragOverEvent, new DragEventHandler(UIElement.OnPreviewDragOverThunk), false); 793EventManager.RegisterClassHandler(type, DragDrop.DragOverEvent, new DragEventHandler(UIElement.OnDragOverThunk), false); 794EventManager.RegisterClassHandler(type, DragDrop.PreviewDragLeaveEvent, new DragEventHandler(UIElement.OnPreviewDragLeaveThunk), false); 795EventManager.RegisterClassHandler(type, DragDrop.DragLeaveEvent, new DragEventHandler(UIElement.OnDragLeaveThunk), false); 796EventManager.RegisterClassHandler(type, DragDrop.PreviewDropEvent, new DragEventHandler(UIElement.OnPreviewDropThunk), false); 797EventManager.RegisterClassHandler(type, DragDrop.DropEvent, new DragEventHandler(UIElement.OnDropThunk), false); 798EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 799EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 800EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 801EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 802EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 803EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 804EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 805EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 806EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 807EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 816UIElement uie = sender as UIElement; 838UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 850UIElement uie = sender as UIElement; 872UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 879UIElement uie = sender as UIElement; 901UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 908UIElement uie = sender as UIElement; 930UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 937UIElement uie = sender as UIElement; 962UIElement uie = sender as UIElement; 987UIElement uie = sender as UIElement; 1012UIElement uie = sender as UIElement; 1037UIElement uie = sender as UIElement; 1062UIElement uie = sender as UIElement; 1087UIElement uie = sender as UIElement; 1112UIElement uie = sender as UIElement; 1137UIElement uie = sender as UIElement; 1162UIElement uie = sender as UIElement; 1187UIElement uie = sender as UIElement; 1216UIElement uie = sender as UIElement; 1242UIElement uie = sender as UIElement; 1267UIElement uie = sender as UIElement; 1292UIElement uie = sender as UIElement; 1317UIElement uie = sender as UIElement; 1342UIElement uie = sender as UIElement; 1367UIElement uie = sender as UIElement; 1392UIElement uie = sender as UIElement; 1417UIElement uie = sender as UIElement; 1442UIElement uie = sender as UIElement; 1467UIElement uie = sender as UIElement; 1492UIElement uie = sender as UIElement; 1517UIElement uie = sender as UIElement; 1542UIElement uie = sender as UIElement; 1567UIElement uie = sender as UIElement; 1592UIElement uie = sender as UIElement; 1617UIElement uie = sender as UIElement; 1642UIElement uie = sender as UIElement; 1667UIElement uie = sender as UIElement; 1692UIElement uie = sender as UIElement; 1717UIElement uie = sender as UIElement; 1742UIElement uie = sender as UIElement; 1767UIElement uie = sender as UIElement; 1792UIElement uie = sender as UIElement; 1817UIElement uie = sender as UIElement; 1842UIElement uie = sender as UIElement; 1867UIElement uie = sender as UIElement; 1892UIElement uie = sender as UIElement; 1917UIElement uie = sender as UIElement; 1946UIElement uie = sender as UIElement; 1972UIElement uie = sender as UIElement; 1997UIElement uie = sender as UIElement; 2022UIElement uie = sender as UIElement; 2047UIElement uie = sender as UIElement; 2072UIElement uie = sender as UIElement; 2097UIElement uie = sender as UIElement; 2122UIElement uie = sender as UIElement; 2147UIElement uie = sender as UIElement; 2212UIElement uie = sender as UIElement; 2237UIElement uie = sender as UIElement; 2262UIElement uie = sender as UIElement; 2287UIElement uie = sender as UIElement; 2312UIElement uie = sender as UIElement; 2337UIElement uie = sender as UIElement; 2362UIElement uie = sender as UIElement; 2387UIElement uie = sender as UIElement; 2412UIElement uie = sender as UIElement; 2437UIElement uie = sender as UIElement; 2462UIElement uie = sender as UIElement; 2487UIElement uie = sender as UIElement; 2512UIElement uie = sender as UIElement; 2537UIElement uie = sender as UIElement; 2562UIElement uie = sender as UIElement; 2587UIElement uie = sender as UIElement; 2612UIElement uie = sender as UIElement; 2637UIElement uie = sender as UIElement; 2662UIElement uie = sender as UIElement; 2687UIElement uie = sender as UIElement; 2712UIElement uie = sender as UIElement; 2737UIElement uie = sender as UIElement; 2844add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 2845remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 2863add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 2864remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 2882add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 2883remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 2901add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 2902remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 2920add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 2921remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 2939add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 2940remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 2958add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 2959remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 2977add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 2978remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 4213((UIElement) d).RaiseIsMouseDirectlyOverChanged(e); 4227add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 4228remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 4244RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 4309add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4310remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4326RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 4349((UIElement) d).RaiseIsMouseCapturedChanged(e); 4363add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 4364remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 4380RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 4411add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 4412remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 4428RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 4451((UIElement) d).RaiseIsStylusDirectlyOverChanged(e); 4465add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 4466remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 4482RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 4505((UIElement) d).RaiseIsStylusCapturedChanged(e); 4519add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 4520remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 4536RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 4567add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 4568remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 4584RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 4607((UIElement) d).RaiseIsKeyboardFocusedChanged(e); 4621add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 4622remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 4638RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args);
System\Windows\Generated\UIElement3D.cs (66)
173UIElement.BuildRouteHelper(this, route, args); 196UIElement.RaiseEventImpl(this, e); 215UIElement.RaiseEventImpl(this, args); 228UIElement.RaiseEventImpl(this, args); 609public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 616add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 617remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 628public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 635add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 636remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 647public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 654add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 655remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 666public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 673add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 674remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 685public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 692add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 693remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 704public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 711add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 712remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 723public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 730add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 731remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 742public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 749add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 750remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 1968public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 1980add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 1981remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 1997RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2003public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2008public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2013public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2020add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2021remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2037RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2043public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2055add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2056remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2072RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2078public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2085add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2086remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2102RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2108public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2120add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2121remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2137RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2143public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2155add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2156remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2172RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2178public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2185add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2186remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2202RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2208public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2220add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2221remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2237RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2243public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2248public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2253public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2258public static readonly DependencyProperty AreAnyTouchesCapturedWithinProperty = UIElement.AreAnyTouchesCapturedWithinProperty.AddOwner(_typeofThis);
System\Windows\GlobalEventManager.cs (2)
58typeof(UIElement).IsAssignableFrom(classType) || 406if (dType.SystemType == typeof(UIElement) || dType.SystemType == typeof(ContentElement))
System\Windows\IContentHost.cs (1)
71void OnChildDesiredSizeChanged(UIElement child);
System\Windows\Input\AccessKeyManager.cs (11)
146UIElement.AddHandler(element, AccessKeyPressedEvent, handler); 156UIElement.RemoveHandler(element, AccessKeyPressedEvent, handler); 234UIElement invokeUIElement = null; 240UIElement target = targets[i] as UIElement; 502UIElement uiElem = element as UIElement; 529return ((bool)element.GetValue(UIElement.IsEnabledProperty)); 547public UIElement target; 786public UIElement Target 821private UIElement _target;
System\Windows\Input\Command\CommandManager.cs (14)
47public static void AddPreviewExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 60public static void RemovePreviewExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 82public static void AddExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 95public static void RemoveExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 117public static void AddPreviewCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 130public static void RemovePreviewCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 152public static void AddCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 165public static void RemoveCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 283bool isUIElement = targetElementAsDO is UIElement; 291localInputBindings = ((UIElement)targetElement).InputBindingsInternal; 345localCommandBindings = ((UIElement)targetElement).CommandBindingsInternal; 538UIElement uiElement => uiElement.CommandBindingsInternal, 702UIElement element = childScope as UIElement;
System\Windows\Input\Command\RoutedCommand.cs (3)
349if (targetAsDO is UIElement uie) 377UIElement targetUIElement = target as UIElement;
System\Windows\Input\FocusManager.cs (8)
35UIElement.AddHandler(element, GotFocusEvent, handler); 45UIElement.RemoveHandler(element, GotFocusEvent, handler); 60UIElement.AddHandler(element, LostFocusEvent, handler); 70UIElement.RemoveHandler(element, LostFocusEvent, handler); 213oldVisual.ClearValue(UIElement.IsFocusedPropertyKey); 222newVisual.SetValue(UIElement.IsFocusedPropertyKey, BooleanBoxes.TrueBox); 340UIElement uiElement = d as UIElement;
System\Windows\Input\InputElement.cs (5)
24return o is UIElement or ContentElement or UIElement3D; 35if(o is UIElement) 95if(o is UIElement uiElement) 142if(o is UIElement uiElement) 352private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\Input\InputManager.cs (1)
781if (eventSource is UIElement e)
System\Windows\Input\InputMethod.cs (4)
455public void ShowConfigureUI(UIElement element) 491public void ShowRegisterWordUI(UIElement element, string registeredText) 1482private bool _ShowConfigureUI(UIElement element, bool fShow) 1535private bool _ShowRegisterWordUI(UIElement element, bool fShow, string strRegister)
System\Windows\Input\Keyboard.cs (25)
29UIElement.AddHandler(element, PreviewKeyDownEvent, handler); 39UIElement.RemoveHandler(element, PreviewKeyDownEvent, handler); 54UIElement.AddHandler(element, KeyDownEvent, handler); 64UIElement.RemoveHandler(element, KeyDownEvent, handler); 79UIElement.AddHandler(element, PreviewKeyUpEvent, handler); 89UIElement.RemoveHandler(element, PreviewKeyUpEvent, handler); 104UIElement.AddHandler(element, KeyUpEvent, handler); 114UIElement.RemoveHandler(element, KeyUpEvent, handler); 129UIElement.AddHandler(element, PreviewGotKeyboardFocusEvent, handler); 139UIElement.RemoveHandler(element, PreviewGotKeyboardFocusEvent, handler); 154UIElement.AddHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler); 164UIElement.RemoveHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler); 179UIElement.AddHandler(element, KeyboardInputProviderAcquireFocusEvent, handler); 189UIElement.RemoveHandler(element, KeyboardInputProviderAcquireFocusEvent, handler); 204UIElement.AddHandler(element, GotKeyboardFocusEvent, handler); 214UIElement.RemoveHandler(element, GotKeyboardFocusEvent, handler); 229UIElement.AddHandler(element, PreviewLostKeyboardFocusEvent, handler); 239UIElement.RemoveHandler(element, PreviewLostKeyboardFocusEvent, handler); 254UIElement.AddHandler(element, LostKeyboardFocusEvent, handler); 264UIElement.RemoveHandler(element, LostKeyboardFocusEvent, handler); 382UIElement uie = element as UIElement; 391if((bool)element.GetValue(UIElement.IsEnabledProperty) == false) 402BaseValueSourceInternal valueSource = element.GetValueSource(UIElement.FocusableProperty, null, out hasModifiers); 403bool focusable = (bool) element.GetValue(UIElement.FocusableProperty);
System\Windows\Input\KeyboardDevice.cs (6)
387if (o is UIElement uie) 413if (o is UIElement uie) 441UIElement.FocusWithinProperty.OnOriginValueChanged(oldFocus, _focus, ref _focusTreeState); 447o.SetValue(UIElement.IsKeyboardFocusedPropertyKey, false); // Same property for ContentElements 453o.SetValue(UIElement.IsKeyboardFocusedPropertyKey, true); // Same property for ContentElements 654UIElement.FocusWithinProperty.OnOriginValueChanged(_focus, _focus, ref _focusTreeState);
System\Windows\Input\Manipulation.cs (18)
32public static bool IsManipulationActive(UIElement element) 39private static ManipulationDevice GetActiveManipulationDevice(UIElement element) 57public static void StartInertia(UIElement element) 72public static void CompleteManipulation(UIElement element) 81internal static bool TryCompleteManipulation(UIElement element) 98public static void SetManipulationMode(UIElement element, ManipulationModes mode) 118public static ManipulationModes GetManipulationMode(UIElement element) 139public static void SetManipulationContainer(UIElement element, IInputElement container) 160public static IInputElement GetManipulationContainer(UIElement element) 178public static void SetManipulationPivot(UIElement element, ManipulationPivot pivot) 198public static ManipulationPivot GetManipulationPivot(UIElement element) 217public static void AddManipulator(UIElement element, IManipulator manipulator) 236public static void RemoveManipulator(UIElement element, IManipulator manipulator) 247internal static bool TryRemoveManipulator(UIElement element, IManipulator manipulator) 265public static void SetManipulationParameter(UIElement element, ManipulationParameters2D parameter) 296internal static UIElement FindManipulationParent(Visual visual) 300UIElement element = visual as UIElement;
System\Windows\Input\ManipulationDevice.cs (7)
24private ManipulationDevice(UIElement element) : base() 73internal static ManipulationDevice AddManipulationDevice(UIElement element) 84_manipulationDevices = new Dictionary<UIElement, ManipulationDevice>(2); 102internal static ManipulationDevice GetManipulationDevice(UIElement element) 250foreach (UIElement element in _manipulationDevices.Keys) 511private UIElement _target; 524private static Dictionary<UIElement, ManipulationDevice> _manipulationDevices;
System\Windows\Input\ManipulationLogic.cs (10)
530UIElement uie = _currentContainer as UIElement; 581_root = presentationSource.RootVisual as UIElement; 620UIElement container = _currentContainer as UIElement; 629UIElement container = _currentContainer as UIElement; 666UIElement container = _currentContainer as UIElement; 739private UIElement _root;
System\Windows\Input\Mouse.cs (30)
29UIElement.AddHandler(element, PreviewMouseMoveEvent, handler); 39UIElement.RemoveHandler(element, PreviewMouseMoveEvent, handler); 54UIElement.AddHandler(element, MouseMoveEvent, handler); 64UIElement.RemoveHandler(element, MouseMoveEvent, handler); 79UIElement.AddHandler(element, PreviewMouseDownOutsideCapturedElementEvent, handler); 89UIElement.RemoveHandler(element, PreviewMouseDownOutsideCapturedElementEvent, handler); 104UIElement.AddHandler(element, PreviewMouseUpOutsideCapturedElementEvent, handler); 114UIElement.RemoveHandler(element, PreviewMouseUpOutsideCapturedElementEvent, handler); 129UIElement.AddHandler(element, PreviewMouseDownEvent, handler); 139UIElement.RemoveHandler(element, PreviewMouseDownEvent, handler); 154UIElement.AddHandler(element, MouseDownEvent, handler); 164UIElement.RemoveHandler(element, MouseDownEvent, handler); 179UIElement.AddHandler(element, PreviewMouseUpEvent, handler); 189UIElement.RemoveHandler(element, PreviewMouseUpEvent, handler); 204UIElement.AddHandler(element, MouseUpEvent, handler); 214UIElement.RemoveHandler(element, MouseUpEvent, handler); 229UIElement.AddHandler(element, PreviewMouseWheelEvent, handler); 239UIElement.RemoveHandler(element, PreviewMouseWheelEvent, handler); 254UIElement.AddHandler(element, MouseWheelEvent, handler); 264UIElement.RemoveHandler(element, MouseWheelEvent, handler); 279UIElement.AddHandler(element, MouseEnterEvent, handler); 289UIElement.RemoveHandler(element, MouseEnterEvent, handler); 304UIElement.AddHandler(element, MouseLeaveEvent, handler); 314UIElement.RemoveHandler(element, MouseLeaveEvent, handler); 329UIElement.AddHandler(element, GotMouseCaptureEvent, handler); 339UIElement.RemoveHandler(element, GotMouseCaptureEvent, handler); 354UIElement.AddHandler(element, LostMouseCaptureEvent, handler); 364UIElement.RemoveHandler(element, LostMouseCaptureEvent, handler); 379UIElement.AddHandler(element, QueryCursorEvent, handler); 389UIElement.RemoveHandler(element, QueryCursorEvent, handler);
System\Windows\Input\MouseDevice.cs (21)
306if (element is UIElement) 308UIElement e = element as UIElement; 651UIElement.MouseOverProperty.OnOriginValueChanged(_mouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState); 704if (dependencyObject is UIElement uie) 743UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(_mouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState); 749private bool ValidateUIElementForCapture(UIElement element) 962if (o is UIElement uie) 987if (o is UIElement uie) 1014UIElement.MouseOverProperty.OnOriginValueChanged(oldMouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState); 1020o.SetValue(UIElement.IsMouseDirectlyOverPropertyKey, false); // Same property for ContentElements 1025o.SetValue(UIElement.IsMouseDirectlyOverPropertyKey, true); // Same property for ContentElements 1056if (o is UIElement uie) 1081if (o is UIElement uie) 1108UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(oldMouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState); 1114o.SetValue(UIElement.IsMouseCapturedPropertyKey, false); // Same property for ContentElements 1119o.SetValue(UIElement.IsMouseCapturedPropertyKey, true); // Same property for ContentElements 1587UIElement eTest = null; 1593eTest = ieTest as UIElement; 2159UIElement root = inputSource.RootVisual as UIElement;
System\Windows\Input\Stylus\Common\Stylus.cs (44)
27UIElement.AddHandler(element, PreviewStylusDownEvent, handler); 37UIElement.RemoveHandler(element, PreviewStylusDownEvent, handler); 52UIElement.AddHandler(element, StylusDownEvent, handler); 62UIElement.RemoveHandler(element, StylusDownEvent, handler); 77UIElement.AddHandler(element, PreviewStylusUpEvent, handler); 87UIElement.RemoveHandler(element, PreviewStylusUpEvent, handler); 102UIElement.AddHandler(element, StylusUpEvent, handler); 112UIElement.RemoveHandler(element, StylusUpEvent, handler); 127UIElement.AddHandler(element, PreviewStylusMoveEvent, handler); 137UIElement.RemoveHandler(element, PreviewStylusMoveEvent, handler); 152UIElement.AddHandler(element, StylusMoveEvent, handler); 162UIElement.RemoveHandler(element, StylusMoveEvent, handler); 177UIElement.AddHandler(element, PreviewStylusInAirMoveEvent, handler); 187UIElement.RemoveHandler(element, PreviewStylusInAirMoveEvent, handler); 202UIElement.AddHandler(element, StylusInAirMoveEvent, handler); 212UIElement.RemoveHandler(element, StylusInAirMoveEvent, handler); 227UIElement.AddHandler(element, StylusEnterEvent, handler); 237UIElement.RemoveHandler(element, StylusEnterEvent, handler); 252UIElement.AddHandler(element, StylusLeaveEvent, handler); 262UIElement.RemoveHandler(element, StylusLeaveEvent, handler); 277UIElement.AddHandler(element, PreviewStylusInRangeEvent, handler); 287UIElement.RemoveHandler(element, PreviewStylusInRangeEvent, handler); 302UIElement.AddHandler(element, StylusInRangeEvent, handler); 312UIElement.RemoveHandler(element, StylusInRangeEvent, handler); 327UIElement.AddHandler(element, PreviewStylusOutOfRangeEvent, handler); 337UIElement.RemoveHandler(element, PreviewStylusOutOfRangeEvent, handler); 352UIElement.AddHandler(element, StylusOutOfRangeEvent, handler); 362UIElement.RemoveHandler(element, StylusOutOfRangeEvent, handler); 377UIElement.AddHandler(element, PreviewStylusSystemGestureEvent, handler); 387UIElement.RemoveHandler(element, PreviewStylusSystemGestureEvent, handler); 402UIElement.AddHandler(element, StylusSystemGestureEvent, handler); 412UIElement.RemoveHandler(element, StylusSystemGestureEvent, handler); 427UIElement.AddHandler(element, GotStylusCaptureEvent, handler); 437UIElement.RemoveHandler(element, GotStylusCaptureEvent, handler); 452UIElement.AddHandler(element, LostStylusCaptureEvent, handler); 462UIElement.RemoveHandler(element, LostStylusCaptureEvent, handler); 477UIElement.AddHandler(element, StylusButtonDownEvent, handler); 487UIElement.RemoveHandler(element, StylusButtonDownEvent, handler); 503UIElement.AddHandler(element, StylusButtonUpEvent, handler); 513UIElement.RemoveHandler(element, StylusButtonUpEvent, handler); 529UIElement.AddHandler(element, PreviewStylusButtonDownEvent, handler); 539UIElement.RemoveHandler(element, PreviewStylusButtonDownEvent, handler); 555UIElement.AddHandler(element, PreviewStylusButtonUpEvent, handler); 565UIElement.RemoveHandler(element, PreviewStylusButtonUpEvent, handler);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
668protected bool ValidateUIElementForCapture(UIElement element)
System\Windows\Input\Stylus\Common\StylusPlugin.cs (1)
189public UIElement Element
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (3)
225internal StylusPlugInCollection(UIElement element) 242internal UIElement Element 598private UIElement _element;
System\Windows\Input\Stylus\Common\StylusPlugInCollectionBase.cs (1)
58internal abstract void UpdateState(UIElement element);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (13)
517if (o is UIElement element) 543if (o is UIElement element) 569UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(oldCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 575o.SetValue(UIElement.IsStylusCapturedPropertyKey, false); // Same property for ContentElements 581o.SetValue(UIElement.IsStylusCapturedPropertyKey, true); // Same property for ContentElements 604if (o is UIElement element) 633if (o is UIElement element) 663UIElement.StylusOverProperty.OnOriginValueChanged(oldOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState); 669o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, false); // Same property for ContentElements 675o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, true); // Same property for ContentElements 778if (dependencyObject is UIElement uie) 821UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(_stylusCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 883UIElement.StylusOverProperty.OnOriginValueChanged(_stylusOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (6)
561UIElement e = element as UIElement; 945UIElement eTest = null; 950eTest = ieTest as UIElement; 1027UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
52internal override void UpdateState(UIElement element)
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (5)
179internal StylusPlugInCollection FindPlugInCollection(UIElement element) 250UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement; 364UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (3)
344UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement; 501internal StylusPlugInCollection FindPlugInCollection(UIElement element)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (15)
2065if (o is UIElement uie) 2094if (o is UIElement uie) 2124UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(oldCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 2130o.SetValue(UIElement.IsStylusCapturedPropertyKey, false); // Same property for ContentElements 2135o.SetValue(UIElement.IsStylusCapturedPropertyKey, true); // Same property for ContentElements 2153if (o is UIElement uie) 2182if (o is UIElement uie) 2212UIElement.StylusOverProperty.OnOriginValueChanged(oldOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState); 2218o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, false); // Same property for ContentElements 2223o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, true); // Same property for ContentElements 2361UIElement.StylusOverProperty.OnOriginValueChanged(_stylusOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState); 2431if (dependencyObject is UIElement uie) 2474UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(_stylusCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 2664UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (6)
258UIElement e = element as UIElement; 587UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement; 1019UIElement eTest = null; 1024eTest = ieTest as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (1)
58internal override void UpdateState(UIElement element)
System\Windows\Input\TextCompositionManager.cs (12)
49UIElement.AddHandler(element, PreviewTextInputStartEvent, handler); 61UIElement.RemoveHandler(element, PreviewTextInputStartEvent, handler); 78UIElement.AddHandler(element, TextInputStartEvent, handler); 90UIElement.RemoveHandler(element, TextInputStartEvent, handler); 107UIElement.AddHandler(element, PreviewTextInputUpdateEvent, handler); 119UIElement.RemoveHandler(element, PreviewTextInputUpdateEvent, handler); 136UIElement.AddHandler(element, TextInputUpdateEvent, handler); 148UIElement.RemoveHandler(element, TextInputUpdateEvent, handler); 165UIElement.AddHandler(element, PreviewTextInputEvent, handler); 177UIElement.RemoveHandler(element, PreviewTextInputEvent, handler); 194UIElement.AddHandler(element, TextInputEvent, handler); 206UIElement.RemoveHandler(element, TextInputEvent, handler);
System\Windows\Input\TouchDevice.cs (25)
210UIElement eTest = ieTest as UIElement; 325UIElement uiElement; 347UIElement oldUIElement; 390o.SetValue(UIElement.AreAnyTouchesCapturedPropertyKey, 396o.SetValue(UIElement.AreAnyTouchesCapturedPropertyKey, BooleanBoxes.TrueBox); 447ReverseInheritProperty property = capture ? (ReverseInheritProperty)UIElement.TouchesCapturedWithinProperty : (ReverseInheritProperty)UIElement.TouchesOverProperty; 518UIElement uiElement; 593private static void CastInputElement(IInputElement element, out UIElement uiElement, out ContentElement contentElement, out UIElement3D uiElement3D) 595uiElement = element as UIElement; 756UIElement manipulatableElement = GetManipulatableElement(); 854UIElement oldUIElement; 858UIElement newUIElement; 901o.SetValue(UIElement.AreAnyTouchesDirectlyOverPropertyKey, 907o.SetValue(UIElement.AreAnyTouchesDirectlyOverPropertyKey, BooleanBoxes.TrueBox); 1023UIElement manipulatableElement = GetManipulatableElement(); 1057private UIElement GetManipulatableElement() 1059UIElement element = InputElement.GetContainingUIElement(_directlyOver as DependencyObject) as UIElement; 1068private void PromoteMainToManipulation(UIElement manipulatableElement, TouchEventArgs touchEventArgs) 1085UIElement element = _captured as UIElement; 1099UIElement element = _manipulatingElement.Target as UIElement;
System\Windows\Input\TouchesCapturedWithinProperty.cs (2)
10base(UIElement.AreAnyTouchesCapturedWithinPropertyKey, 16internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\Input\TouchesOverProperty.cs (2)
10base(UIElement.AreAnyTouchesOverPropertyKey, 18internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\InterOp\HwndSource.cs (20)
575if(_rootVisual is UIElement) 577((UIElement)(_rootVisual)).LayoutUpdated += new EventHandler(OnLayoutUpdated); 585UIElement.PropagateResumeLayout(null, value); 598if(oldRoot is UIElement) 600((UIElement)oldRoot).LayoutUpdated -= new EventHandler(OnLayoutUpdated); 603UIElement.PropagateSuspendLayout(oldRoot); 788UIElement root = _rootVisual as UIElement; 904UIElement root = _rootVisual as UIElement; 1005if ((_rootVisual is UIElement) && _hwndTarget!= null && _hwndTarget.IsDisposed == false) 1022UIElement rootUIElement = null; 1023rootUIElement = _rootVisual as UIElement; 1185UIElement rootUIElement=null; 1186rootUIElement = _rootVisual as UIElement; 1328private void Process_WM_WINDOWPOSCHANGING(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 1402private void Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 1490private void DisableSizeToContent(UIElement rootUIElement, IntPtr hwnd) 1966UIElement root =_rootVisual as UIElement;
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (3)
15if (!(sink is UIElement)) 25_sinkElement = sink as UIElement; 89private UIElement _sinkElement;
System\Windows\InterOp\HwndTarget.cs (6)
1409UIElement uiroot = (UIElement)root; 1816UIElement element = d as UIElement; 2307DpiScale newDpiScale = new DpiScale(UIElement.DpiScaleXValues[dpiFlags.Index], UIElement.DpiScaleYValues[dpiFlags.Index]);
System\Windows\LayoutManager.cs (37)
59private void setForceLayout(UIElement e) 64private void markTreeDirty(UIElement e) 69UIElement p = e.GetUIParentNo3DTraversal() as UIElement; 86UIElement uie = ((UIElement)v); 206UIElement currentElement = null; 453private Rect getProperArrangeRect(UIElement element) 512internal override void setRequest(UIElement e, Request r) 517internal override Request getRequest(UIElement e) 522internal override bool canRelyOnParentRecalc(UIElement parent) 528internal override void invalidate(UIElement e) 537internal override void setRequest(UIElement e, Request r) 542internal override Request getRequest(UIElement e) 547internal override bool canRelyOnParentRecalc(UIElement parent) 553internal override void invalidate(UIElement e) 781internal UIElement GetLastExceptionElement() 786internal void SetLastExceptionElement(UIElement e) 793private UIElement _forceLayoutElement; //set in extreme situations, forces the update of the whole tree containing the element 794private UIElement _lastExceptionElement; //set on exception in Measure or Arrange. 803internal static int s_LayoutRecursionLimit = UIElement.MAX_ELEMENTS_IN_ROUTE; //to keep these two constants in sync 832internal abstract Request getRequest(UIElement e); 833internal abstract void setRequest(UIElement e, Request r); 834internal abstract bool canRelyOnParentRecalc(UIElement parent); 835internal abstract void invalidate(UIElement e); 839internal UIElement Target; 858private void _addRequest(UIElement e) 872internal void Add(UIElement e) 879UIElement parent = e.GetUIParentWithinLayoutIsland(); 902UIElement p = e.GetUIParentWithinLayoutIsland(); 925internal void Remove(UIElement e) 933internal void RemoveOrphans(UIElement parent) 938UIElement child = r.Target; 955internal UIElement GetTopMost() 957UIElement found = null; 962UIElement t = r.Target; 985private Request _getNewRequest(UIElement e)
System\Windows\Media\BitmapCacheBrush.cs (8)
204UIElement element = Target as UIElement; 259private void DoLayout(UIElement element) 270UIElement.PropagateResumeLayout(null, element); 284UIElement element = (UIElement)Target; 313UIElement element = arg as UIElement;
System\Windows\Media\Generated\BitmapCacheBrush.cs (2)
134UIElement element = (UIElement)oldV;
System\Windows\Media\Generated\VisualBrush.cs (2)
76UIElement element = (UIElement)oldV;
System\Windows\Media\Visual.cs (14)
2612UIElement.PropagateResumeLayout(this, child); 2690UIElement.PropagateSuspendLayout(child); 4279UIElement.InvalidateForceInheritPropertyOnChildren(this, property); 4688lock (UIElement.DpiLock) 4690if (UIElement.DpiScaleXValues.Count == 0) 4693return UIElement.EnsureDpiScale(); 4697dpi = new DpiScale(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 4703if (index < 3 && UIElement.DpiScaleXValues[index] != 0 && UIElement.DpiScaleYValues[index] != 0) 4705dpi = new DpiScale(UIElement.DpiScaleXValues[index], UIElement.DpiScaleYValues[index]); 4711dpi = new DpiScale(UIElement.DpiScaleXValues[actualIndex], UIElement.DpiScaleYValues[actualIndex]);
System\Windows\Media\VisualBrush.cs (8)
186UIElement element = Visual as UIElement; 226private void DoLayout(UIElement element) 237UIElement.PropagateResumeLayout(null, element); 253UIElement element = (UIElement)Visual; 282UIElement element = arg as UIElement;
System\Windows\MouseCaptureWithinProperty.cs (3)
16UIElement.IsMouseCaptureWithinPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 28UIElement.IsMouseCaptureWithinProperty,
System\Windows\MouseOverProperty.cs (2)
16UIElement.IsMouseOverPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\Navigation\BaseUriHelper.cs (2)
564UIElement uie = doCurrent as UIElement;
System\Windows\PresentationSource.cs (8)
133if (o is UIElement uie) 201if (o is UIElement uie) 439UIElement oldRootUIElement = oldRoot as UIElement; 440UIElement newRootUIElement = newRoot as UIElement; 536Debug.Assert(uie is UIElement3D or UIElement); 701if (doTarget is UIElement uiElement)
System\Windows\ReverseInheritProperty.cs (8)
33internal abstract void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue); 105UIElement uie; 163UIElement uie; 234private static bool BlockReverseInheritance(UIElement uie, ContentElement ce, UIElement3D uie3D) 254private static void SetFlag(UIElement uie, ContentElement ce, UIElement3D uie3D, CoreFlags flag, bool value) 272private static bool IsFlagSet(UIElement uie, ContentElement ce, UIElement3D uie3D, CoreFlags flag) 292private static void CastElement(DependencyObject o, out UIElement uie, out ContentElement ce, out UIElement3D uie3D) 294uie = o as UIElement;
System\Windows\SizeChangedInfo.cs (3)
37public SizeChangedInfo(UIElement element, Size previousSize, bool widthChanged, bool heightChanged) 98internal UIElement Element 104private UIElement _element;
System\Windows\StylusCaptureWithinProperty.cs (3)
16UIElement.IsStylusCaptureWithinPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 28UIElement.IsStylusCaptureWithinProperty,
System\Windows\StylusOverProperty.cs (2)
16UIElement.IsStylusOverPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\UIElement.cs (145)
35/// <seealso cref="UIElement" /> 72UIElement.RegisterEvents(typeof(UIElement)); 75typeof(UIElement), 79typeof(UIElement), 83typeof(UIElement), 87typeof(UIElement), 90EventManager.RegisterClassHandler(typeof(UIElement), ManipulationStartingEvent, new EventHandler<ManipulationStartingEventArgs>(OnManipulationStartingThunk)); 91EventManager.RegisterClassHandler(typeof(UIElement), ManipulationStartedEvent, new EventHandler<ManipulationStartedEventArgs>(OnManipulationStartedThunk)); 92EventManager.RegisterClassHandler(typeof(UIElement), ManipulationDeltaEvent, new EventHandler<ManipulationDeltaEventArgs>(OnManipulationDeltaThunk)); 93EventManager.RegisterClassHandler(typeof(UIElement), ManipulationInertiaStartingEvent, new EventHandler<ManipulationInertiaStartingEventArgs>(OnManipulationInertiaStartingThunk)); 94EventManager.RegisterClassHandler(typeof(UIElement), ManipulationBoundaryFeedbackEvent, new EventHandler<ManipulationBoundaryFeedbackEventArgs>(OnManipulationBoundaryFeedbackThunk)); 95EventManager.RegisterClassHandler(typeof(UIElement), ManipulationCompletedEvent, new EventHandler<ManipulationCompletedEventArgs>(OnManipulationCompletedThunk)); 135typeof(UIElement), 305/// Causes <see cref="System.Windows.UIElement.OnRender"/> to be called at a later time. 324protected virtual void OnChildDesiredSizeChanged(UIElement child) 459UIElement e = (UIElement)v; 504UIElement e = (UIElement)v; 693UIElement p; 713internal void GetUIParentOrICH(out UIElement uiParent, out IContentHost ich) 725uiParent = (UIElement)v; 732internal UIElement GetUIParentWithinLayoutIsland() 734UIElement uiParent = null; 745uiParent = (UIElement)v; 799DependencyObject parent = GetUIParent() as UIElement; 1334/// <seealso cref="UIElement.RenderTransform" /> 1340typeof(UIElement), 1359UIElement uie = (UIElement)d; 1378/// <seealso cref="UIElement.RenderTransformOrigin" /> 1383typeof(UIElement), 1412UIElement uie = (UIElement)d; 1433if (parent is not UIElement and not UIElement3D) 1480if (parent is not UIElement and not UIElement3D) 1575UIElement uie = sender as UIElement; 1656UIElement uiElement = e as UIElement; 1690UIElement uiElement = e as UIElement; 1881UIElement uiElement = d as UIElement; 1917UIElement uiElement = d as UIElement; 1966public Point TranslatePoint(Point point, UIElement relativeTo) 2063UIElement element = candidate as UIElement; 2184newEvent = UIElement.PreviewMouseLeftButtonDownEvent; 2186newEvent = UIElement.MouseLeftButtonDownEvent; 2188newEvent = UIElement.PreviewMouseLeftButtonUpEvent; 2190newEvent = UIElement.MouseLeftButtonUpEvent; 2194newEvent = UIElement.PreviewMouseRightButtonDownEvent; 2196newEvent = UIElement.MouseRightButtonDownEvent; 2198newEvent = UIElement.PreviewMouseRightButtonUpEvent; 2200newEvent = UIElement.MouseRightButtonUpEvent; 2257UIElement.BuildRouteHelper(sender, route, args); 2311UIElement.BuildRouteHelper(sender, route, args); 2665typeof(UIElement), 2673UIElement uie = (UIElement) d; 2700= DependencyProperty.Register("OpacityMask", typeof(Brush), typeof(UIElement), 2705UIElement uie = (UIElement) d; 2732typeof(UIElement), 2737UIElement uie = (UIElement)d; 2766typeof(UIElement), 2771UIElement uie = (UIElement)d; 2796typeof(UIElement), 2801((UIElement) d).pushBitmapEffectInput((BitmapEffectInput) e.NewValue); 2824UIElement uie = (UIElement) d; 2835UIElement uie = (UIElement) d; 2846UIElement uie = (UIElement) d; 2857UIElement uie = (UIElement) d; 2873typeof(UIElement), 2878UIElement uie = (UIElement)d; 2921typeof(UIElement), 2943typeof(UIElement), 2951UIElement uie = (UIElement) d; 3046UIElement p; 3349typeof(UIElement), 3356UIElement uie = (UIElement) d; 3390typeof(UIElement), 3397UIElement uie = (UIElement) d; 3422typeof(UIElement), 3429UIElement uie = (UIElement) d; 3472public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement)); 3486public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement)); 3504typeof(UIElement), 3519UIElement uiElement = ((UIElement)d); 3569typeof(UIElement), 3619UIElement uie = (UIElement) d; 3660UIElement uie = (UIElement)d; 3696typeof(UIElement), 3723UIElement uie = (UIElement) d; 3763UIElement uie = (UIElement)d; 3796typeof(UIElement), 3814return ((UIElement)d).IsVisible ? BooleanBoxes.TrueBox : BooleanBoxes.FalseBox; 3894UIElement uie = (UIElement) d; 3924typeof(UIElement), 3950UIElement uie = (UIElement) d; 4165UIElement uiElement, 4242UIElement element = vChild as UIElement; 4309typeof(UIElement), 4337((UIElement)d).CoerceStylusProperties(); 4341Manipulation.TryCompleteManipulation((UIElement)d); 4369public static readonly RoutedEvent ManipulationStartingEvent = Manipulation.ManipulationStartingEvent.AddOwner(typeof(UIElement)); 4383((UIElement)sender).OnManipulationStarting(e); 4394public static readonly RoutedEvent ManipulationStartedEvent = Manipulation.ManipulationStartedEvent.AddOwner(typeof(UIElement)); 4408((UIElement)sender).OnManipulationStarted(e); 4419public static readonly RoutedEvent ManipulationDeltaEvent = Manipulation.ManipulationDeltaEvent.AddOwner(typeof(UIElement)); 4433((UIElement)sender).OnManipulationDelta(e); 4444public static readonly RoutedEvent ManipulationInertiaStartingEvent = Manipulation.ManipulationInertiaStartingEvent.AddOwner(typeof(UIElement)); 4458((UIElement)sender).OnManipulationInertiaStarting(e); 4469public static readonly RoutedEvent ManipulationBoundaryFeedbackEvent = Manipulation.ManipulationBoundaryFeedbackEvent.AddOwner(typeof(UIElement)); 4483((UIElement)sender).OnManipulationBoundaryFeedback(e); 4494public static readonly RoutedEvent ManipulationCompletedEvent = Manipulation.ManipulationCompletedEvent.AddOwner(typeof(UIElement)); 4508((UIElement)sender).OnManipulationCompleted(e); 4675private static readonly UncommonField<WeakReference<UIElement>> _positionAndSizeOfSetController = new UncommonField<WeakReference<UIElement>>(); 4683internal UIElement PositionAndSizeOfSetController 4687UIElement element = null; 4688WeakReference<UIElement> wRef = _positionAndSizeOfSetController.GetValue(this); 4698_positionAndSizeOfSetController.SetValue(this, new WeakReference<UIElement>(value));
System\Windows\UIElement3D.cs (26)
30UIElement.RegisterEvents(typeof(UIElement3D)); 33IsVisibleProperty = UIElement.IsVisibleProperty.AddOwner(typeof(UIElement3D)); 41UIElement.IsVisiblePropertyKey); 44IsFocusedProperty = UIElement.IsFocusedProperty.AddOwner(typeof(UIElement3D)); 49UIElement.IsFocusedPropertyKey); 80UIElement.AllowDropProperty.AddOwner( 136if (parent is not UIElement and not UIElement3D) 168UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 180if (parent is not UIElement and not UIElement3D) 201UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 269UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 641UIElement.VisibilityProperty.AddOwner( 802UIElement.IsEnabledProperty.AddOwner( 824add { EventHandlersStoreAdd(UIElement.IsEnabledChangedKey, value); } 825remove { EventHandlersStoreRemove(UIElement.IsEnabledChangedKey, value); } 873if (parent == null || (bool)parent.GetValue(UIElement.IsEnabledProperty)) 893uie.RaiseDependencyPropertyChanged(UIElement.IsEnabledChangedKey, e); 923UIElement.IsHitTestVisibleProperty.AddOwner( 1041add { EventHandlersStoreAdd(UIElement.IsVisibleChangedKey, value); } 1042remove { EventHandlersStoreRemove(UIElement.IsVisibleChangedKey, value); } 1141UIElement.FocusableProperty.AddOwner( 1161add { EventHandlersStoreAdd(UIElement.FocusableChangedKey, value); } 1162remove { EventHandlersStoreRemove(UIElement.FocusableChangedKey, value); } 1170uie.RaiseDependencyPropertyChanged(UIElement.FocusableChangedKey, e); 1365UIElement element = vChild as UIElement;
PresentationFramework (1243)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
152public override UIElement GetParent(Object selection)
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
84public abstract UIElement GetParent(Object selection);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
148public static UIElement GetParent(Object selection) 168public static UIElement GetParent(ITextPointer pointer) 178return (UIElement)scrollViewer.ScrollViewer.Content; 209return parent as UIElement;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
94public override UIElement GetParent(Object selection)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
85public override UIElement GetParent(Object selection) 90return (UIElement)selection;
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (3)
91public override UIElement GetParent(Object selection) 95UIElement element = selection as UIElement;
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (3)
66internal static void HostComponent(AdornerLayer adornerLayer, IAnnotationComponent component, UIElement annotatedElement, bool reorder) 133public override UIElement Host { get { return _adornerLayer; } } 146AdornerLayer parentLayer = AdornerLayer.GetAdornerLayer((UIElement)parent);
MS\Internal\Annotations\Component\AnnotationAdorner.cs (10)
32public AnnotationAdorner(IAnnotationComponent component, UIElement annotatedElement) : base(annotatedElement) 36if (component is UIElement) 40this.AddVisualChild((UIElement)_annotationComponent); 60if (!(_annotationComponent is UIElement)) 108return (UIElement)_annotationComponent; 136((UIElement)_annotationComponent).Measure(childConstraint); 149((UIElement)_annotationComponent).Arrange(new Rect(((UIElement)_annotationComponent).DesiredSize)); 164this.RemoveVisualChild((UIElement)_annotationComponent); 230private UIElement _annotatedElement;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (4)
143UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject 163UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
1120UIElement uie = TopOwner as UIElement;
MS\Internal\Annotations\Component\HighlightComponent.cs (2)
167public UIElement AnnotatedElement 171return _attachedAnnotation != null ? (_attachedAnnotation.Parent as UIElement) : null;
MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
70UIElement AnnotatedElement { get; }
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (5)
143public UIElement AnnotatedElement 147return _attachedAnnotation != null ? (_attachedAnnotation.Parent as UIElement) : null; 497_uiParent = PathNode.GetParent(textContainer.Parent) as UIElement; 1019UIElement host = component.PresentationContext.Host; 1185private UIElement _uiParent = null; // the TextContainer parent. We need to handle GotFocus/LostFocus events
MS\Internal\Annotations\Component\PresentationContext.cs (1)
28public abstract UIElement Host { get; }
MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (4)
115UIElement parent = ((UIElement)VisualTreeHelper.GetParent(this)) as UIElement; 119((UIElement)VisualTreeHelper.GetParent(this)).InvalidateArrange();
MS\Internal\Controls\InkCanvasInnerCanvas.cs (8)
58UIElement removedElement = visualRemoved as UIElement; 82foreach (UIElement child in InternalChildren) 130foreach (UIElement child in InternalChildren) 182protected override void OnChildDesiredSizeChanged(UIElement child) 248internal UIElement HitTestOnElements(Point point) 250UIElement hitElement = null; 277hitElement = currentObject as UIElement;
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
26internal InkCanvasSelectionAdorner(UIElement adornedElement)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (4)
1085UIElement IAnnotationComponent.AnnotatedElement 1089return _attachedAnnotation != null ? _attachedAnnotation.Parent as UIElement : null; 1333SetValue(UIElement.VisibilityProperty, Visibility.Collapsed); 1592UIElement parent = component.AnnotatedElement;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
467public static StickyNoteContentControl CreateContentControl(StickyNoteType type, UIElement content)
MS\Internal\Controls\TemplatedAdorner.cs (1)
39public TemplatedAdorner(UIElement adornedElement, ControlTemplate adornerTemplate) : base(adornedElement)
MS\Internal\Data\DataBindEngine.cs (2)
214(_layoutElement = c.TargetElement as UIElement) != null) 697private UIElement _layoutElement;
MS\Internal\DataStreams.cs (6)
79private ArrayList SaveSubStreams(UIElement element) 159UIElement element = node as UIElement; 237private void LoadSubStreams(UIElement element, ArrayList subStreams) 281UIElement element = node as UIElement;
MS\Internal\Documents\DocumentGrid.cs (6)
1172UIElement background = _childrenCollection[_backgroundVisualIndex] as UIElement; 1210UIElement uiPage = _childrenCollection[visualChild] as UIElement; 2280UIElement page = _childrenCollection[i] as UIElement;
MS\Internal\Documents\DocumentPageTextView.cs (2)
474internal override UIElement RenderScope 701private readonly UIElement _owner;
MS\Internal\Documents\MultiPageTextView.cs (3)
38internal MultiPageTextView(DocumentViewerBase viewer, UIElement renderScope, ITextContainer textContainer) 624internal override UIElement RenderScope 1548private readonly UIElement _renderScope;
MS\Internal\Documents\ScrollData.cs (16)
30internal void LineUp(UIElement owner) 38internal void LineDown(UIElement owner) 46internal void LineLeft(UIElement owner) 54internal void LineRight(UIElement owner) 62internal void PageUp(UIElement owner) 70internal void PageDown(UIElement owner) 78internal void PageLeft(UIElement owner) 86internal void PageRight(UIElement owner) 94internal void MouseWheelUp(UIElement owner) 102internal void MouseWheelDown(UIElement owner) 110internal void MouseWheelLeft(UIElement owner) 118internal void MouseWheelRight(UIElement owner) 126internal void SetHorizontalOffset(UIElement owner, double offset) 148internal void SetVerticalOffset(UIElement owner, double offset) 170internal Rect MakeVisible(UIElement owner, Visual visual, Rect rectangle) 231internal void SetScrollOwner(UIElement owner, ScrollViewer value)
MS\Internal\Documents\TextBoxView.cs (1)
1255UIElement ITextView.RenderScope
MS\Internal\Documents\TextContainerHelper.cs (8)
346if (element is UIElement) 350peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 407if (element is UIElement) 409peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 478if (element is UIElement) 480peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 699internal static int GetCPFromEmbeddedObject(UIElement embeddedObject, ElementEdge edge) 738&& (peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)child)) != null)
MS\Internal\Documents\TextDocumentView.cs (4)
546internal override UIElement RenderScope 550UIElement renderScope = null; 555while (visual != null && !(visual is UIElement)) 559renderScope = visual as UIElement;
MS\Internal\Documents\TextParagraphView.cs (1)
451internal override UIElement RenderScope
MS\Internal\Documents\TextViewBase.cs (2)
290internal abstract UIElement RenderScope { get; } 633UIElement ITextView.RenderScope
MS\Internal\Documents\UIElementIsland.cs (7)
31internal UIElementIsland(UIElement child) 113internal UIElement Root 146private UIElement _child; // Hosted UIElement root. 220void IContentHost.OnChildDesiredSizeChanged(UIElement child) 246internal DesiredSizeChangedEventArgs(UIElement child) 254internal UIElement Child 262private readonly UIElement _child;
MS\Internal\FrameworkObject.cs (2)
912UIElement uiElement; 915if ((uiElement = _do as UIElement) != null)
MS\Internal\Helper.cs (10)
518internal static Size MeasureElementWithSingleChild(UIElement element, Size constraint) 520UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 535internal static Size ArrangeElementWithSingleChild(UIElement element, Size arrangeSize) 537UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 1346UIElement uiElement = element as UIElement; 1376UIElement element = d as UIElement;
MS\Internal\Ink\ClipboardProcessor.cs (13)
136List<UIElement> elements = new List<UIElement>(inkCanvasSelection.SelectedElements); 181internal bool PasteData(IDataObject dataObject, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 200List<UIElement> elements = xamlData.Elements; 315private bool CopySelectionInXAML(IDataObject dataObject, StrokeCollection strokes, List<UIElement> elements, Matrix transform, Size size) 341UIElement newElement = XamlReader.Load(new XmlTextReader(new StringReader(xml))) as UIElement; 354ClipboardData data = new XamlClipboardData(new UIElement[] { inkCanvas }); 371private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 377List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count); 378foreach (UIElement uiElement in rootInkCanvas.Children) 384foreach ( UIElement child in children )
MS\Internal\Ink\EditingCoordinator.cs (4)
968_inkCanvas.AddHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 998_inkCanvas.AddHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>)); 1021_inkCanvas.RemoveHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 1036_inkCanvas.RemoveHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>));
MS\Internal\Ink\ElementsClipboardData.cs (6)
31internal ElementsClipboardData(UIElement[] elements) 35ElementList = new List<UIElement>(elements); 50internal List<UIElement> Elements 60return new List<UIElement>(); 76protected List<UIElement> ElementList 98private List<UIElement> _elementList;
MS\Internal\Ink\InkCanvasSelection.cs (16)
77internal ReadOnlyCollection<UIElement> SelectedElements 83_selectedElements = new List<UIElement>(); 86return new ReadOnlyCollection<UIElement>(_selectedElements); 193internal void Select(StrokeCollection strokes, IList<UIElement> elements, bool raiseSelectionChanged) 229_selectedElements = new List<UIElement>(elements); 329internal void RemoveElement(UIElement removedElement) 355internal void UpdateElementBounds(UIElement element, Matrix transform) 368internal void UpdateElementBounds(UIElement originalElement, UIElement updatedElement, Matrix transform) 539IList<UIElement> elements, 725IList<UIElement> elements = SelectedElements; 1015private static bool FrameworkElementArraysAreEqual(IList<UIElement> elements1, IList<UIElement> elements2) 1034foreach ( UIElement e in elements1 ) 1065foreach ( UIElement element in SelectedElements ) 1110private List<UIElement> _selectedElements;
MS\Internal\Ink\LassoSelectionBehavior.cs (11)
238List<UIElement> elementsToSelect = new List<UIElement>(); 266UIElement tappedElement; 336private List<UIElement> HitTestForElements() 338List<UIElement> elementsToSelect = new List<UIElement>(); 347UIElement uiElement = this.InkCanvas.Children[x]; 358private void HitTestElement(InkCanvasInnerCanvas parent, UIElement uiElement, List<UIElement> elementsToSelect) 383private static ElementCornerPoints GetTransformedElementCornerPoints(InkCanvasInnerCanvas canvas, UIElement childElement) 631private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement)
MS\Internal\Ink\SelectionEditingBehavior.cs (2)
81InkCanvas.SelectionAdorner.AddHandler(UIElement.LostMouseCaptureEvent, 93InkCanvas.SelectionAdorner.RemoveHandler(UIElement.LostMouseCaptureEvent,
MS\Internal\Ink\TextClipboardData.cs (1)
70ElementList = new List<UIElement>();
MS\Internal\Ink\XamlClipboardData.cs (5)
33internal XamlClipboardData(UIElement[] elements) : base (elements) 73foreach ( UIElement element in Elements ) 89ElementList = new List<UIElement>(); 96UIElement element = XamlReader.Load(new System.Xml.XmlTextReader(new System.IO.StringReader(xml)), useRestrictiveXamlReader: true) as UIElement;
MS\Internal\LayoutDump.cs (16)
86internal static void DumpLayoutTreeToFile(string tagName, UIElement root, string fileName) 103internal static string DumpLayoutTreeToString(string tagName, UIElement root) 127internal static void DumpLayoutTree(XmlTextWriter writer, string tagName, UIElement root) 169internal delegate bool DumpCustomUIElement(XmlTextWriter writer, UIElement element, bool uiElementsOnly); 201if (visual is UIElement) 203DumpUIElement(writer, (UIElement)visual, parent, false); 242private static void DumpUIElement(XmlTextWriter writer, UIElement element, Visual parent, bool uiElementsOnly) 357List<UIElement> uiElements = new List<UIElement>(); 419internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements) 426if (child is UIElement) 428uiElements.Add((UIElement)(child)); 462private static bool DumpDocumentPageView(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 478private static bool DumpText(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 511private static bool DumpFlowDocumentScrollViewer(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 537private static bool DumpFlowDocumentView(XmlTextWriter writer, UIElement element, bool uiElementsOnly)
MS\Internal\PtsHost\FlowDocumentPage.cs (4)
400internal void OnChildDesiredSizeChangedCore(UIElement child) 959if (embeddedObject is ContentElement || embeddedObject is UIElement) 961if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 1220void IContentHost.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\LineBase.cs (2)
304if (embeddedObject is UIElement) 311run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph);
MS\Internal\PtsHost\PageVisual.cs (1)
150void IContentHost.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\PtsHost.cs (1)
2509UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.Element).Child;
MS\Internal\PtsHost\RunClient.cs (1)
35internal InlineObjectRun(int cch, UIElement element, TextRunProperties textProps, TextParagraph host)
MS\Internal\PtsHost\TextParaClient.cs (4)
1267UIElement uiElement = (UIElement)inlineObjects[i].Element; 1301UIElement uiElement = (UIElement)inlineObjects[i].Element;
MS\Internal\Text\ComplexLine.cs (4)
200proxyVisual.Offset = new Vector(UIElement.RoundLayoutValue(lineOffset.X + rect.Left, dpi.DpiScaleX), 201UIElement.RoundLayoutValue(lineOffset.Y + rect.Top, dpi.DpiScaleY)); 526if (element is UIElement) 533run = new InlineObject(dcp, TextContainerHelper.EmbeddedObjectLength, (UIElement)element, textProps, _owner);
MS\Internal\Text\InlineObject.cs (3)
30internal InlineObject(int dcp, int cch, UIElement element, TextRunProperties textProps, System.Windows.Controls.TextBlock host) 160internal UIElement Element { get { return _element; } } 175private readonly UIElement _element;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
62internal static Point ClientToScreen(UIElement relativeTo, Point point)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
493public void OnChildDesiredSizeChanged(UIElement child)
System\Windows\Annotations\AnnotationService.cs (9)
939UIElement root = _root as UIElement; 991IList<UIElement> processedElements = new List<UIElement>(); 994UIElement parent = annotation.Parent as UIElement; 1017private static void InvalidateAdorners(UIElement element) 1706UIElement root = _root as UIElement;
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
134foreach (UIElement child in this.OwningGrid.Children) 378foreach (UIElement child in this.OwningGrid.Children) 619foreach (UIElement child in this.OwningGrid.Children)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
225UIElement owningRow = GetWrapper();
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (5)
129UIElement uiElement = textView?.RenderScope; 138UIElement uiScope; 159UIElement uiScope; 192UIElement uiScope; 213private Rect CalculateBoundingRect(bool clipToVisible, out UIElement uiScope)
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
115if (document is UIElement) 117documentPeer = UIElementAutomationPeer.CreatePeerForElement((UIElement)document);
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
138foreach (UIElement e in _owner.HeaderRowPresenter.ActualColumnHeaders)
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (2)
171&& (includeInvisibleItems || ((UIElement)child).IsVisible) 172&& (peer = CreatePeerForElement((UIElement)child)) != null)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
56foreach (UIElement ele in rowPresenter.ActualCells)
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
155foreach (UIElement child in childItems)
System\Windows\Automation\Peers\ItemAutomationPeer.cs (5)
82internal UIElement GetWrapper() 84UIElement wrapper = null; 95wrapper = item as UIElement; 97wrapper = owner.ItemContainerGenerator.ContainerFromItem(item) as UIElement; 107UIElement wrapper = GetWrapper();
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
79foreach (UIElement child in childItems) 785return UIElementAutomationPeer.CreatePeerForElement((UIElement)_container);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
175UIElement uiElement = owner.ItemContainerGenerator.ContainerFromIndex(i) as UIElement;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
117&& (peer = CreatePeerForElement((UIElement)child)) != null)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
223UIElement uiElement = textView?.RenderScope;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (4)
89&& child is UIElement) 93object dataItem = (child as UIElement) != null ? (logicalParentAp.Owner as ItemsControl).GetItemOrContainerFromContainer(child as UIElement) : child; 130peer = CreatePeerForElement((UIElement)child);
System\Windows\Controls\AdornedElementPlaceholder.cs (9)
59if (!(value is UIElement)) 60throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 65this.Child = (UIElement)value; 85public UIElement AdornedElement 99public virtual UIElement Child 108UIElement old = _child; 190UIElement child = Child; 205UIElement child = Child; 237private UIElement _child;
System\Windows\Controls\Border.cs (20)
210UIElement child = Child; 216borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 217UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 263borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 264UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 270UIElement child = Child; 413pen.Thickness = UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX); 478pen.Thickness = UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX); 511pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY); 544pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY); 576ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX), 577UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY)); 581ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 582UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 586ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX), 587RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY));
System\Windows\Controls\Button.cs (1)
238/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Calendar.cs (1)
84EventManager.RegisterClassHandler(typeof(Calendar), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
System\Windows\Controls\Canvas.cs (13)
73public static double GetLeft(UIElement element) 85public static void SetLeft(UIElement element, double length) 99public static double GetTop(UIElement element) 111public static void SetTop(UIElement element, double length) 125public static double GetRight(UIElement element) 137public static void SetRight(UIElement element, double length) 151public static double GetBottom(UIElement element) 163public static void SetBottom(UIElement element, double length) 187UIElement uie = d as UIElement; 261foreach (UIElement child in InternalChildren) 284foreach (UIElement child in InternalChildren) 332/// Override of <seealso cref="UIElement.GetLayoutClip"/>.
System\Windows\Controls\CheckBox.cs (1)
55/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\CleanUpVirtualizedItemEventArgs.cs (3)
12public CleanUpVirtualizedItemEventArgs(object value, UIElement element) 35public UIElement UIElement 61private UIElement _element;
System\Windows\Controls\ComboBox.cs (4)
53EventManager.RegisterClassHandler(typeof(ComboBox), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus)); // call us even if textbox in the style get focus 894_clonedElement = logicalElement as UIElement; 1897/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2032private UIElement _clonedElement;
System\Windows\Controls\ComboBoxItem.cs (1)
173SetFlags(newContent is UIElement, VisualFlags.IsLayoutIslandRoot);
System\Windows\Controls\ContentPresenter.cs (10)
1015UIElement e = content as UIElement; 1019Debug.Assert(tc.CanConvertTo(typeof(UIElement))); 1020e = (UIElement) tc.ConvertTo(content, typeof(UIElement)); 1066private UIElement DefaultExpansion(object content, ContentPresenter container) 1089Debug.Assert(!(content is String) && !(content is UIElement)); // these are handled by different templates 1128Debug.Assert(!(tc != null && tc.CanConvertTo(typeof(UIElement)))); // this is handled by a different template 1182else if (item is UIElement) 1190tc.CanConvertTo(typeof(UIElement)))
System\Windows\Controls\ContextMenu.cs (3)
184public UIElement PlacementTarget 186get { return (UIElement) GetValue(PlacementTargetProperty); } 377/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ContextMenuService.cs (10)
169typeof(UIElement), // Type 171new FrameworkPropertyMetadata((UIElement)null)); // Default Value 179public static UIElement GetPlacementTarget(DependencyObject element) 182return (UIElement)element.GetValue(PlacementTargetProperty); 190public static void SetPlacementTarget(DependencyObject element, UIElement value) 348UIElement.AddHandler(element, ContextMenuOpeningEvent, handler); 358UIElement.RemoveHandler(element, ContextMenuOpeningEvent, handler); 377UIElement.AddHandler(element, ContextMenuClosingEvent, handler); 387UIElement.RemoveHandler(element, ContextMenuClosingEvent, handler); 392EventManager.RegisterClassHandler(typeof(UIElement), ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening));
System\Windows\Controls\Control.cs (10)
29EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 30EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 31EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 32EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 563if ((e.RoutedEvent == UIElement.PreviewMouseLeftButtonDownEvent) || 564(e.RoutedEvent == UIElement.PreviewMouseRightButtonDownEvent)) 698UIElement child = (UIElement)(this.GetVisualChild(0)); 720UIElement child = (UIElement)(this.GetVisualChild(0));
System\Windows\Controls\DataGrid.cs (15)
2299UIElement source = e.OriginalSource as UIElement; 5589UIElement startElement = Keyboard.FocusedElement as UIElement; 5923UIElement startElement = Keyboard.FocusedElement as UIElement; 6375UIElement sourceElement = e.OriginalSource as UIElement; 6390sourceElement = VisualTreeHelper.GetParent(sourceElement) as UIElement; 6613UIElement element = Mouse.DirectlyOver as UIElement; 6622element = VisualTreeHelper.GetParent(row) as UIElement; 6634UIElement element = Mouse.DirectlyOver as UIElement; 6643element = VisualTreeHelper.GetParent(cell) as UIElement;
System\Windows\Controls\DataGridCell.cs (2)
551DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 564DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement);
System\Windows\Controls\DataGridCellsPanel.cs (29)
83UIElement parent = VisualTreeHelper.GetParent(this) as UIElement; 98private static void MeasureChild(UIElement child, Size constraint) 532private UIElement GenerateChild( 552private UIElement GenerateChild( 560UIElement child = generator.GenerateNext(out newlyRealized) as UIElement; 623private void AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized) 662private void InsertRecycledContainer(int childIndex, UIElement container) 670private void InsertNewContainer(int childIndex, UIElement container) 678private void InsertContainer(int childIndex, UIElement container, bool isRecycled) 766UIElement child = _realizedChildren[realizedChildIndex]; 841UIElement child = GenerateChild(generator, constraint, column, ref childIndex, out childSize); 966UIElement child = generator.ContainerFromIndex(columnIndex) as UIElement; 1058UIElement child = children[i] as UIElement; 1170UIElement visualChild; 1171UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 1270public UIElement OldClippedChild 1275public UIElement NewClippedChild 1412ArrangeChild(children[childIndex] as UIElement, i, arrangeState); 1434UIElement child = children[additionalChildIndices[i]] as UIElement; 1454UIElement child, 1962_realizedChildren = new List<UIElement>(children.Count); 2369internal Geometry GetFrozenClipForChild(UIElement child) 2455private UIElement _clippedChildForFrozenBehaviour; 2457private List<UIElement> _realizedChildren;
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
42style.Setters.Add(new Setter(UIElement.IsHitTestVisibleProperty, false)); 43style.Setters.Add(new Setter(UIElement.FocusableProperty, false));
System\Windows\Controls\DataGridHelper.cs (11)
168public static T FindVisualParent<T>(UIElement element) where T : UIElement 170UIElement parent = element; 179parent = VisualTreeHelper.GetParent(parent) as UIElement; 196UIElement uielement = element as UIElement; 239UIElement element = (UIElement)cell; 288return panel.GetFrozenClipForChild((UIElement)cell); 303UIElement element = (UIElement)cell;
System\Windows\Controls\DatePicker.cs (1)
86EventManager.RegisterClassHandler(typeof(DatePicker), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
System\Windows\Controls\Decorator.cs (8)
64if (!(value is UIElement)) 66throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 74this.Child = (UIElement)value; 103public virtual UIElement Child 190UIElement child = Child; 206UIElement child = Child; 217internal UIElement IntChild 226UIElement _child;
System\Windows\Controls\DefinitionBase.cs (2)
801internal void EnsureDeferredValidation(UIElement layoutUpdatedHost) 959private UIElement _layoutUpdatedHost; // UIElement for which layout updated event handler is registered
System\Windows\Controls\DockPanel.cs (6)
99public static Dock GetDock(UIElement element) 112public static void SetDock(UIElement element, Dock dock) 121UIElement uie = d as UIElement; //it may be anyting, like FlowDocument... bug 1237275 213UIElement child = children[i]; 278UIElement child = children[i];
System\Windows\Controls\DocumentViewer.cs (1)
854/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Expander.cs (1)
293/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\FlowDocumentReader.cs (5)
764/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 956if (focusedElement is UIElement) 958((UIElement)focusedElement).Focus(); 1577if (CurrentViewer != null && CurrentViewer is UIElement) 1579((UIElement)CurrentViewer).Focus();
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
750/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1101UIElement targetUIElement; 1120else if (args.TargetObject is UIElement) 1122targetUIElement = (UIElement)args.TargetObject;
System\Windows\Controls\Frame.cs (1)
527/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Grid.cs (24)
71UIElement cell = value as UIElement; 78throw (new ArgumentException(SR.Format(SR.Grid_UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value")); 123public static void SetColumn(UIElement element, int value) 136public static int GetColumn(UIElement element) 148public static void SetRow(UIElement element, int value) 161public static int GetRow(UIElement element) 173public static void SetColumnSpan(UIElement element, int value) 186public static int GetColumnSpan(UIElement element) 198public static void SetRowSpan(UIElement element, int value) 211public static int GetRowSpan(UIElement element) 223public static void SetIsSharedSizeScope(UIElement element, bool value) 235public static bool GetIsSharedSizeScope(UIElement element) 365UIElement child = children[i]; 663UIElement child = children[i]; 685UIElement cell = children[currentCell]; 891UIElement child = children[i]; 1353UIElement child = InternalChildren[cell]; 2112definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2151definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2201definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi); 2225final = UIElement.RoundLayoutValue(finalOld, dpi); 2251double dpiIncrement = UIElement.RoundLayoutValue(1.0, dpi); 2661double roundedSize = UIElement.RoundLayoutValue(def.SizeCache, dpi);
System\Windows\Controls\GridSplitter.cs (4)
292/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 369/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 885delta = UIElement.RoundLayoutValue(delta, dpi.DpiScaleX); 893delta = UIElement.RoundLayoutValue(delta, dpi.DpiScaleY);
System\Windows\Controls\GridViewColumnHeader.cs (2)
242/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 538/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
256UIElement child = children[GetVisualIndex(i)]; 346UIElement child = children[GetVisualIndex(i)]; 784/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\GridViewRowPresenter.cs (6)
141UIElement child = children[column.ActualIndex]; 217UIElement child = children[column.ActualIndex]; 401internal List<UIElement> ActualCells 405List<UIElement> list = new List<UIElement>(); 416UIElement cell = children[indexList[i]];
System\Windows\Controls\GroupBox.cs (1)
37/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\GroupItem.cs (1)
34/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Image.cs (1)
178/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\InkCanvas.cs (37)
276if (e.Property == UIElement.RenderTransformProperty || 434public static double GetTop(UIElement element) 446public static void SetTop(UIElement element, double length) 468public static double GetBottom(UIElement element) 480public static void SetBottom(UIElement element, double length) 502public static double GetLeft(UIElement element) 514public static void SetLeft(UIElement element, double length) 536public static double GetRight(UIElement element) 548public static void SetRight(UIElement element, double length) 561UIElement uie = d as UIElement; 652_selectionAdorner.SetBinding(UIElement.VisibilityProperty, activeEditingModeBinding); 1704public ReadOnlyCollection<UIElement> GetSelectedElements() 1736public void Select(IEnumerable<UIElement> selectedElements) 1747public void Select(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 1758UIElement[] validElements = ValidateSelectedElements(selectedElements); 2099List<UIElement> newElements = new List<UIElement>(); 2115foreach ( UIElement element in newElements ) 2312ChangeInkCanvasSelection(new StrokeCollection(), new UIElement[]{}); 2328CoreChangeSelection(new StrokeCollection(), new UIElement[] { }, raiseSelectionChangedEvent); 2337internal void ChangeInkCanvasSelection(StrokeCollection strokes, UIElement[] elements) 2352UIElement[] validElements = elements; 2420private void CoreChangeSelection(StrokeCollection validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged) 2509private UIElement[] ValidateSelectedElements(IEnumerable<UIElement> selectedElements) 2513return new UIElement[]{}; 2516List<UIElement> elements = new List<UIElement>(); 2517foreach (UIElement element in selectedElements) 2540private bool InkCanvasIsAncestorOf(UIElement element) 2671IList<UIElement> elements = GetSelectedElements(); 2676removeSelectedElements ? new List<UIElement>() : elements, 2689foreach ( UIElement element in elements ) 2726IEnumerable<UIElement> children = null; 2732UIElement[] uiElementArray = new UIElement[uiElementCollection.Count];
System\Windows\Controls\InkPresenter.cs (1)
210UIElement child = Child;
System\Windows\Controls\ItemsControl.cs (16)
1159UIElement ui = container as UIElement; 1176ui = VisualTreeHelper.GetParent(ui) as UIElement; 1336if (p != null && (visual is UIElement)) 1338p.Children.RemoveNoVerify((UIElement)visual); 1566return (item is UIElement); 2947UIElement element, 2956UIElement element, 2983UIElement element, 3074UIElement element, 3197UIElement focusedElement = e.OriginalSource as UIElement; 3207UIElement itemContainer = itemsControl._focusedInfo.Container as UIElement; 3268UIElement container = info.Container as UIElement;
System\Windows\Controls\Label.cs (9)
84typeof(UIElement), 87(UIElement) null, 96public UIElement Target 98get { return (UIElement) GetValue(TargetProperty); } 106UIElement oldElement = (UIElement) e.OldValue; 107UIElement newElement = (UIElement) e.NewValue; 164/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListBox.cs (1)
217/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListBoxItem.cs (1)
233/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListView.cs (1)
221/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\MediaElement.cs (1)
689/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Menu.cs (1)
115/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\MenuItem.cs (6)
1280/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1598UIElement uiElement = source as UIElement; 2254internal static void SetInsideContextMenuProperty(UIElement element, bool value) 2657private static bool GetBoolField(UIElement element, BoolField field) 2662private static void SetBoolField(UIElement element, BoolField field, bool value)
System\Windows\Controls\Page.cs (4)
577UIElement child = this.GetVisualChild(0) as UIElement; 602UIElement child = this.GetVisualChild(0) as UIElement;
System\Windows\Controls\Panel.cs (15)
88UIElement uie = value as UIElement; 92throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 659UIElement child; 660while ((child = generator.GenerateNext() as UIElement) != null) 719UIElement e = generator.GenerateNext() as UIElement; 750UIElement e = generator.GenerateNext(out isNewlyRealized) as UIElement; 776UIElement[] elements = new UIElement[containerCount]; 915public static void SetZIndex(UIElement element, int value) 927public static int GetZIndex(UIElement element) 945UIElement child = d as UIElement;
System\Windows\Controls\PasswordBox.cs (1)
432/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\PopupControlService.cs (14)
64UIElement rootAsUIElement = source != null ? source.RootVisual as UIElement : null; 857UIElement ownerUIE; 859if ((ownerUIE = owner as UIElement) != null) 875UIElement uieParent = KeyboardNavigation.GetParentUIElementFromContentElement(ownerCE, ref ichParent); 976if (sourceDO is UIElement uiElement) 1054UIElement uie = GetTarget(o); 1157UIElement uie = o as UIElement; 1188private static UIElement GetTarget(DependencyObject o) 1190UIElement uie = o as UIElement; 1199uie = ceParent as UIElement; 1283UIElement uie = GetTarget(owner);
System\Windows\Controls\Primitives\BulletDecorator.cs (9)
76public UIElement Bullet 102UIElement child = Child; 238UIElement bullet = Bullet; 239UIElement content = Child; 269UIElement bullet = Bullet; 270UIElement content = Child; 324private double GetFirstLineHeight(UIElement element) 328UIElement text = FindText(element); 442UIElement _bullet = null;
System\Windows\Controls\Primitives\ButtonBase.cs (2)
106/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 143e.Target = (UIElement)sender;
System\Windows\Controls\Primitives\CalendarItem.cs (2)
432foreach (UIElement element in this.YearView.Children) 1002monthCell.AddHandler(UIElement.PreviewKeyDownEvent, new RoutedEventHandler(CellOrMonth_PreviewKeyDown), true);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
140UIElement child = (VisualTreeHelper.GetChildrenCount(this) > 0) ? VisualTreeHelper.GetChild(this, 0) as UIElement : null;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
295var parent = this.Parent as UIElement;
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
543/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
366/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1156if (args.TargetObject is UIElement targetObject)
System\Windows\Controls\Primitives\LayoutInformation.cs (2)
54public static UIElement GetLayoutExceptionElement(Dispatcher dispatcher) 58UIElement e = null;
System\Windows\Controls\Primitives\Popup.cs (33)
107typeof(UIElement), 117public UIElement Child 119get { return (UIElement) GetValue(ChildProperty); } 127UIElement oldChild = (UIElement) e.OldValue; 128UIElement newChild = (UIElement) e.NewValue; 175private static void RegisterPopupWithPlacementTarget(Popup popup, UIElement placementTarget) 206private static void UnregisterPopupFromPlacementTarget(Popup popup, UIElement placementTarget) 231private void UpdatePlacementTargetRegistration(UIElement oldValue, UIElement newValue) 634typeof(UIElement), 646public UIElement PlacementTarget 648get { return (UIElement) GetValue(PlacementTargetProperty); } 662ctrl.UpdatePlacementTargetRegistration((UIElement)e.OldValue, (UIElement)e.NewValue); 666UnregisterPopupFromPlacementTarget(ctrl, (UIElement)e.OldValue); 868public static void CreateRootPopup(Popup popup, UIElement child) 880internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty) 979internal static bool IsRootedInPopup(Popup parentPopup, UIElement element) 1298UIElement element = value as UIElement; 1301throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 1360UIElement placementTarget = PlacementTarget; 1538UIElement child = Child; 2306UIElement target = GetTarget() as UIElement; 2384UIElement child = Child; 2394UIElement target = GetTarget() as UIElement; 3281UIElement target = popup.PlacementTarget; 3538var target = popup?.GetTarget() as UIElement;
System\Windows\Controls\Primitives\PopupRoot.cs (3)
80/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 91internal UIElement Child 304UIElement child = Child;
System\Windows\Controls\Primitives\RepeatButton.cs (1)
186/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
123/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (5)
363override internal UIElement TemplateChild 371UIElement oldTemplate = base.TemplateChild; 472UIElement child = this.GetVisualChild(0) as UIElement; 502/// Override of <seealso cref="UIElement.GetLayoutClip"/>.
System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (2)
54UIElement element = d as UIElement;
System\Windows\Controls\Primitives\Selector.cs (2)
1318UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement;
System\Windows\Controls\Primitives\StatusBar.cs (1)
171/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\StatusBarItem.cs (1)
35/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\TabPanel.cs (8)
95foreach (UIElement child in InternalChildren) 139foreach (UIElement child in InternalChildren) 182/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 200private Size GetDesiredSizeWithoutMargin(UIElement element) 215foreach (UIElement child in InternalChildren) 253foreach (UIElement child in InternalChildren) 302foreach (UIElement child in InternalChildren) 322foreach (UIElement child in InternalChildren)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1674if (visual is UIElement) 1676((UIElement)visual).AddToEventRoute(route, args);
System\Windows\Controls\Primitives\Thumb.cs (1)
204/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ToggleButton.cs (1)
239/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (7)
69List<UIElement> generatedItemsCollection = toolBarPanel.GeneratedItemsCollection; 74UIElement child = generatedItemsCollection[i]; 100UIElement child = children[i] as UIElement; 116UIElement child = children[i] as UIElement; 202UIElement child = children[i];
System\Windows\Controls\Primitives\ToolBarPanel.cs (15)
60UIElement child = _generatedItemsCollection[i]; 297UIElement child = (UIElement)children[i]; 352_generatedItemsCollection = new List<UIElement>(children.Count); 369UIElement child = children[i]; 412UIElement e = generator.GenerateNext() as UIElement; 430private void RemoveChild(UIElement child) 468UIElement e = generator.GenerateNext(out isNewlyRealized) as UIElement; 497UIElement[] elements = new UIElement[containerCount]; 501UIElement child = _generatedItemsCollection[fromPos.Index + i]; 533internal List<UIElement> GeneratedItemsCollection 542private List<UIElement> _generatedItemsCollection;
System\Windows\Controls\Primitives\UniformGrid.cs (3)
173UIElement child = InternalChildren[i]; 209foreach (UIElement child in InternalChildren) 265UIElement child = InternalChildren[i];
System\Windows\Controls\ProgressBar.cs (3)
185_glow.InvalidateProperty(UIElement.OpacityMaskProperty); 217_glow.SetCurrentValue(UIElement.OpacityMaskProperty, mask); 294/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\RadioButton.cs (1)
223/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\RichTextBox.cs (2)
285/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 410UIElement renderScope = this.RenderScope;
System\Windows\Controls\ScrollViewer.cs (11)
952UIElement currentFocusUIElement = focusedElement as UIElement; 1142UIElement child = (count > 0) ? this.GetVisualChild(0) as UIElement : null; 2244UIElement uie = child as UIElement; 2270UIElement uie = visi as UIElement; 2443/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2724hsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedHorizontalScrollBarVisibilityProperty)); 2734vsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedVerticalScrollBarVisibilityProperty));
System\Windows\Controls\Separator.cs (1)
40/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\SinglePageViewer.cs (1)
364/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Slider.cs (1)
1289/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Stack.cs (6)
582UIElement child = children[i]; 742UIElement child = (UIElement)children[i]; 834? ((UIElement)children[i]).DesiredSize.Width 835: ((UIElement)children[i]).DesiredSize.Height; 860return (children.IndexOf((UIElement)dependencyObjectChild));
System\Windows\Controls\StickyNote.cs (6)
575UIElement innerControl = this.Content.InnerControl as UIElement; 606UIElement contentContainer = GetContentContainer(); 709private UIElement GetContentContainer() 711return GetTemplateChild(SNBConstants.c_ContentControlId) as UIElement; 1476Path = new PropertyPath(UIElement.IsKeyboardFocusWithinProperty),
System\Windows\Controls\TabControl.cs (1)
303/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TabItem.cs (1)
259/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TextAdaptor.cs (1)
238UIElement renderScope = textView.RenderScope;
System\Windows\Controls\TextBlock.cs (9)
98void IContentHost.OnChildDesiredSizeChanged(UIElement child) 140if (value is UIElement) 142value = new InlineUIContainer((UIElement)value); 1879protected virtual void OnChildDesiredSizeChangedCore(UIElement child) 1885/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 3663if (embeddedObject is ContentElement || embeddedObject is UIElement) 3665if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 3722if (fd != null && d is UIElement) 3724fd.OnChildDesiredSizeChanged((UIElement)d);
System\Windows\Controls\TextBox.cs (1)
1003/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ToolBar.cs (6)
447/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 636UIElement newFocusElement = null; 637UIElement currentFocusElement = e.Source as UIElement; 648newFocusElement = VisualTreeHelper.GetChild(itemsHost, 0) as UIElement; 651newFocusElement = VisualTreeHelper.GetChild(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
System\Windows\Controls\ToolTip.cs (3)
239public UIElement PlacementTarget 241get { return (UIElement) GetValue(PlacementTargetProperty); } 440/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ToolTipService.cs (10)
161typeof(UIElement), // Type 163new FrameworkPropertyMetadata((UIElement)null)); // Default Value 171public static UIElement GetPlacementTarget(DependencyObject element) 174return (UIElement)element.GetValue(PlacementTargetProperty); 182public static void SetPlacementTarget(DependencyObject element, UIElement value) 516UIElement.AddHandler(element, ToolTipOpeningEvent, handler); 526UIElement.RemoveHandler(element, ToolTipOpeningEvent, handler); 547UIElement.AddHandler(element, ToolTipClosingEvent, handler); 557UIElement.RemoveHandler(element, ToolTipClosingEvent, handler); 572EventManager.RegisterClassHandler(typeof(UIElement), FindToolTipEvent, new FindToolTipEventHandler(OnFindToolTip));
System\Windows\Controls\TreeView.cs (3)
760UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement; 842/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TreeViewItem.cs (1)
1065/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\UIElementCollection.cs (33)
33public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 86public virtual void CopyTo(UIElement[] array, int index) 108public virtual UIElement this[int index] 110get { return _visualChildren[index] as UIElement; } 122UIElement e = vc[index] as UIElement; 139internal void SetInternal(int index, UIElement item) 159public virtual int Add(UIElement element) 170internal int AddInternal(UIElement element) 187public virtual int IndexOf(UIElement element) 196public virtual void Remove(UIElement element) 203internal void RemoveInternal(UIElement element) 215internal virtual void RemoveNoVerify(UIElement element) 224public virtual bool Contains(UIElement element) 265UIElement e = visuals[i] as UIElement; 280public virtual void Insert(int index, UIElement element) 291internal void InsertInternal(int index, UIElement element) 311UIElement e = vc[index] as UIElement; 362UIElement e = visuals[i] as UIElement; 384private UIElement Cast(object value) 389UIElement element = value as UIElement; 412return Contains(value as UIElement); 420return IndexOf(value as UIElement); 450Remove(value as UIElement); 489protected void SetLogicalParent(UIElement element) 501protected void ClearLogicalParent(UIElement element) 512internal UIElement VisualParent 518private void ValidateElement(UIElement element) 541private readonly UIElement _visualParent;
System\Windows\Controls\UserControl.cs (1)
45/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Validation.cs (5)
402if (adornerSite is UIElement { IsVisible: false } siteUIElement) 416if (sender is not UIElement adornerSite) 434if (adornerSite is not UIElement siteUIElement) 587else if (source is UIElement) 588((UIElement)source).RaiseEvent(args);
System\Windows\Controls\ViewBox.cs (6)
161private UIElement InternalChild 166if (vc.Count != 0) return vc[0] as UIElement; 192public override UIElement Child 203UIElement old = InternalChild; 305UIElement child = InternalChild; 337UIElement child = InternalChild;
System\Windows\Controls\ViewPort3D.cs (1)
150/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\VirtualizingPanel.cs (6)
35public double GetItemOffset(UIElement child) 45protected virtual double GetItemOffsetCore(UIElement child) 413protected void AddInternalChild(UIElement child) 426protected void InsertInternalChild(int index, UIElement child) 445internal static void AddInternalChild(UIElementCollection children, UIElement child) 451internal static void InsertInternalChild(UIElementCollection children, int index, UIElement child)
System\Windows\Controls\VirtualizingStackPanel.cs (48)
533_scrollData._offset.X = UIElement.RoundLayoutValue(_scrollData._offset.X, dpi.DpiScaleX); 534_scrollData._computedOffset.X = UIElement.RoundLayoutValue(_scrollData._computedOffset.X, dpi.DpiScaleX); 661_scrollData._offset.Y = UIElement.RoundLayoutValue(_scrollData._offset.Y, dpi.DpiScaleY); 662_scrollData._computedOffset.Y = UIElement.RoundLayoutValue(_scrollData._computedOffset.Y, dpi.DpiScaleY); 1690UIElement child; 1698child = generator.GenerateNext(out newlyRealized) as UIElement; 2217UIElement firstContainerInViewport = null; 2604firstContainerInViewport = children[firstItemInViewportChildIndex] as UIElement; 3390UIElement child = null; 3402child = (UIElement)children[i]; 3431UIElement containerBeforeViewport = null; 3440containerBeforeViewport = (UIElement)children[j]; 5874Size childDesiredSize = ((UIElement)children[i]).DesiredSize; 6444private void SetItemsHostInsetForChild(int index, UIElement child, IContainItemStorage itemStorageProvider, bool isHorizontal) 6555private ItemsControl GetScrollingItemsControl(UIElement container) 6687UIElement child, 7478UIElement child = children[i] as UIElement; 7630UIElement child = children[i] as UIElement; 8097object item = ((ItemContainerGenerator)generator).ItemFromContainer((UIElement)children[childIndex]); 8196UIElement child = null; 8209child = generator.GenerateNext(out newlyRealized) as UIElement; 8221child = (UIElement)children[childIndex]; 8403UIElement child, 8550UIElement child, 8585UIElement child, 8728private void InsertNewContainer(int childIndex, UIElement container) 8739private bool InsertRecycledContainer(int childIndex, UIElement container) 8751private bool InsertContainer(int childIndex, UIElement container, bool isRecycled) 8903private bool AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized, bool isBeforeViewport) 8975UIElement child = Generator.GenerateNext(out newlyRealized) as UIElement; 9079UIElement child; 9115child = (UIElement)children[childIndex]; 9198_realizedChildren = new List<UIElement>(children.Count); 9219foreach (UIElement child in InternalChildren) 9267UIElement child = _realizedChildren[realizedChildIndex]; 9292UIElement visualChild; 9293UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 9446private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 9593UIElement firstContainerInViewport, 10998protected override double GetItemOffsetCore(UIElement child) 11064double distance = vp.GetItemOffset((UIElement)child); 11273UIElement container = null; 11277container = (UIElement)children[i]; 11720private List<UIElement> _realizedChildren; 13025foreach (UIElement child in RealizedChildren)
System\Windows\Controls\WrapPanel.cs (6)
229UIElement child = children[i] as UIElement; 289UIElement child = children[i] as UIElement; 338UIElement child = children[i] as UIElement;
System\Windows\Data\BindingGroup.cs (4)
597UIElement layoutElement = Helper.FindMentor(this) as UIElement; 917UIElement layoutElement = mentor as UIElement;
System\Windows\Documents\Adorner.cs (6)
42protected Adorner(UIElement adornedElement) 76UIElement ch = this.GetVisualChild(i) as UIElement; 87/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 174public UIElement AdornedElement 242private readonly UIElement _adornedElement;
System\Windows\Documents\AdornerDecorator.cs (2)
23public override UIElement Child 152public override UIElement Child
System\Windows\Documents\AdornerLayer.cs (12)
208foreach (UIElement key in ElementMap.Keys) 229public void Update(UIElement element) 254public Adorner[] GetAdorners(UIElement element) 435/// Override for <seealso cref="UIElement.ArrangeCore" /> 676private void Clear(UIElement element) 699private void UpdateElementAdorners(UIElement element) 764private void UpdateAdorner(UIElement element) 791UIElement[] keys = new UIElement[keyCollection.Count]; 796UIElement elTemp = (UIElement)keys[i]; 812Clear((UIElement)removeList[i]);
System\Windows\Documents\BlockUIContainer.cs (4)
48public BlockUIContainer(UIElement uiElement) 68public UIElement Child 72return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 84UIElement child = Child;
System\windows\Documents\CaretElement.cs (2)
926_caretElement.ApplyAnimationClock(UIElement.OpacityProperty, _blinkAnimationClock); 932_caretElement.ApplyAnimationClock(UIElement.OpacityProperty, null);
System\Windows\Documents\ColumnResizeAdorner.cs (2)
31internal ColumnResizeAdorner(UIElement scope) : base(scope) 131internal void Initialize(UIElement renderScope, double xPos, double yPos, double height)
System\Windows\Documents\DocumentSequence.cs (4)
152UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 154UIElement uiElementRet = null; 1128UIElement e; 1129if ((e = ((object)base.Visual) as UIElement) != null)
System\Windows\Documents\DocumentSequenceTextView.cs (3)
489internal override UIElement RenderScope 495while (visual != null && !(visual is UIElement)) 500return visual as UIElement;
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
55if (property == UIElement.BitmapEffectProperty)
System\Windows\Documents\FixedDocument.cs (6)
197UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 199UIElement uiElementRet = null; 491fixedPosition = new FixedPosition(fixedPage.CreateFixedNode(pageIndex, (UIElement)element), 0); 1308private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement)); 1411UIElement e; 1412if ((e = ((object)base.Visual) as UIElement)!=null)
System\Windows\Documents\FixedDSBuilder.cs (5)
29internal NameHashFixedNode(UIElement e, int i) 33internal UIElement uiElement; 45public void BuildNameHashTable(String Name, UIElement e, int indexToFixedNodes) 103private void AddFixedNodeInFlow(int index, UIElement e) 115e = _fixedPage.GetElement(fn) as UIElement;
System\Windows\Documents\FixedHighlight.cs (3)
35internal FixedHighlight(UIElement element, int beginOffset, int endOffset, FixedHighlightType t, 199internal UIElement Element 229private readonly UIElement _element; // the Glyphs element, or possibly an image
System\Windows\Documents\FixedHyperlink.cs (1)
26UIElement FindElementByID(string elementID, out FixedPage rootFixedPage);
System\Windows\Documents\FixedPage.cs (24)
82/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 184UIElement uie = value as UIElement; 188throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 217public static double GetLeft(UIElement element) 230public static void SetLeft(UIElement element, double length) 245public static double GetTop(UIElement element) 258public static void SetTop(UIElement element, double length) 273public static double GetRight(UIElement element) 286public static void SetRight(UIElement element, double length) 301public static double GetBottom(UIElement element) 314public static void SetBottom(UIElement element, double length) 326public static Uri GetNavigateUri(UIElement element) 337public static void SetNavigateUri(UIElement element, Uri uri) 743foreach (UIElement child in Children) 766foreach (UIElement child in Children) 828UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 830UIElement uiElementRet = null; 835UIElement uiElement; 845uiElementRet = node as UIElement; 854internal FixedNode CreateFixedNode(int pageIndex, UIElement e) 1015childIndex = parentFP.Children.IndexOf((UIElement)e); 1019childIndex = parentC.Children.IndexOf((UIElement)e); 1048private FixedNode _CreateFixedNode(int pageIndex, UIElement e)
System\Windows\Documents\FixedSOMElement.cs (1)
69public static FixedSOMElement CreateFixedSOMElement(FixedPage page, UIElement uiElement, FixedNode fixedNode, int startIndex, int endIndex)
System\Windows\Documents\FixedTextBuilder.cs (14)
950elements.Current as UIElement, 1183public LogicalHyperlink(Uri uri, Geometry geom, UIElement uiElement) 1216public UIElement UIElement 1237private UIElement _uiElement; 1261public void AddLogicalHyperlink(Uri uri, Geometry geometry, UIElement uiElement) 1270public Uri GetUri(FixedSOMElement element, FixedPage p, out UIElement shadowElement) 1273UIElement e = p.GetElement(element.FixedNode) as UIElement; 1320public void MarkAsUsed(UIElement uiElement) 1399foreach (UIElement child in children) 1464UIElement shadowHyperlink; 1722private void _SetHyperlink(Uri navUri, FixedNode node, UIElement shadowHyperlink) 1735UIElement uiElement = _fixedPage.GetElement(node) as UIElement;
System\Windows\Documents\FixedTextContainer.cs (3)
428UIElement e; 431e = (UIElement)o; 441e = (UIElement)o;
System\Windows\Documents\FixedTextView.cs (7)
86UIElement e; 671internal override UIElement RenderScope 677while (visual != null && !(visual is UIElement)) 682return visual as UIElement; 763private bool _HitTest(Point pt, out UIElement e) 775e = (UIElement) v; 1285private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\Documents\FlowDocument.cs (2)
940internal void OnChildDesiredSizeChanged(UIElement child) 1209OnChildDesiredSizeChanged(arg as UIElement);
System\Windows\Documents\Glyphs.cs (1)
692((UIElement)d).InvalidateVisual();
System\Windows\Documents\Hyperlink.cs (5)
926SetUpEventHandler(element, UIElement.KeyDownEvent, new KeyEventHandler(OnKeyDown)); //initiates navigation 927SetUpEventHandler(element, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnMouseLeftButtonDown)); //capture hyperlink pressed state 928SetUpEventHandler(element, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(OnMouseLeftButtonUp)); //can initiate navigation 931SetUpEventHandler(element, UIElement.MouseEnterEvent, new MouseEventHandler(OnMouseEnter)); //set status bar 932SetUpEventHandler(element, UIElement.MouseLeaveEvent, new MouseEventHandler(OnMouseLeave)); //clear status bar
System\Windows\Documents\ImmComposition.cs (1)
1847private UIElement RenderScope
System\Windows\Documents\InlineCollection.cs (4)
68UIElement uiElement = value as UIElement; 104public void Add(UIElement uiElement) 233private int AddUIElement(UIElement uiElement, bool returnIndex)
System\Windows\Documents\InlineUIContainer.cs (6)
49public InlineUIContainer(UIElement childUIElement) : this(childUIElement, null) 63public InlineUIContainer(UIElement childUIElement, TextPointer insertionPosition) 101public UIElement Child 105return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 117UIElement child = Child; 165UIElement childElement = this.Child;
System\Windows\Documents\ITextRange.cs (1)
111UIElement GetUIElementSelected();
System\Windows\Documents\ITextView.cs (1)
497UIElement RenderScope { get; }
System\Windows\Documents\RubberbandSelector.cs (2)
213foreach (UIElement child in vc) 611private UIElement _scope; // element to which we are attached
System\windows\Documents\TextEditor.cs (2)
293internal static ITextView GetTextView(UIElement scope) 389EventManager.RegisterClassHandler(controlType, UIElement.LostFocusEvent, new RoutedEventHandler(OnLostFocus));
System\windows\Documents\TextEditorContextMenu.cs (2)
114if (contextMenu == null || !(e.TargetElement is UIElement)) 240UIElement placementTarget = ((ContextMenu)sender).PlacementTarget;
System\windows\Documents\TextEditorMouse.cs (4)
691UIElement uiElement = GetUIElementWhenMouseOver(This, mouseMovePoint); 714private static UIElement GetUIElementWhenMouseOver(TextEditor This, Point mouseMovePoint) 751return mouseMovePosition.GetAdjacentElement(mouseMovePosition.LogicalDirection) as UIElement; 761UIElement renderScope = textEditor.TextView.RenderScope;
System\Windows\Documents\TextElement.cs (2)
801UIElement uie = value as UIElement;
System\Windows\Documents\TextPointer.cs (7)
508/// element and has <see cref="UIElement"/> as atomic symbol in a requested direction.</para> 633/// the <see cref="UIElement"/> class.</para> 796/// and a <see cref="UIElement"/>.</para> 800/// <para><see cref="UIElement"/> object can be returned only when 832/// <para>- the whole <see cref="UIElement"/> as atomic embedded object.</para> 894/// <para>- the whole <see cref="UIElement"/> as atomic embedded object.</para> 2137internal void InsertUIElement(UIElement uiElement)
System\Windows\Documents\TextRange.cs (2)
178UIElement ITextRange.GetUIElementSelected() 868internal UIElement GetUIElementSelected()
System\Windows\Documents\TextRangeBase.cs (2)
1614internal static UIElement GetUIElementSelected(ITextRange range) 1634return start.GetAdjacentElement(LogicalDirection.Forward) as UIElement;
System\Windows\Documents\TextRangeEdit.cs (1)
878UIElement embeddedElement = ((BlockUIContainer)block).Child;
System\Windows\Documents\TextSchema.cs (14)
271elementType.Module == typeof(System.Windows.UIElement).Module; // presentationcore 836return typeof(UIElement).IsAssignableFrom(childType); 871return typeof(UIElement).IsAssignableFrom(childType); 1184UIElement.RenderTransformProperty, 1185UIElement.RenderTransformOriginProperty, 1186UIElement.OpacityProperty, 1187UIElement.OpacityMaskProperty, 1188UIElement.BitmapEffectProperty, 1189UIElement.BitmapEffectInputProperty, 1190UIElement.VisibilityProperty, 1191UIElement.ClipToBoundsProperty, 1192UIElement.ClipProperty, 1193UIElement.SnapsToDevicePixelsProperty, 1202UIElement.AllowDropProperty,
System\windows\Documents\TextSelection.cs (2)
2560if (element is UIElement && ((UIElement)element).IsKeyboardFocusWithin)
System\Windows\Documents\TextStore.cs (1)
2073internal UIElement RenderScope
System\windows\Documents\UIElementPropertyUndoUnit.cs (5)
49private UIElementPropertyUndoUnit(UIElement uiElement, DependencyProperty property, object oldValue) 102internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, HorizontalAlignment newValue) 108internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, FlowDirection newValue) 124private static void AddPrivate(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, object newValue) 165private readonly UIElement _uiElement;
System\Windows\Documents\ValidationHelper.cs (1)
121Invariant.Assert(child is UIElement);
System\Windows\FrameworkElement.cs (46)
324protected internal virtual void ParentLayoutInvalidated(UIElement child) 582virtual internal UIElement TemplateChild 1411if (item == null || (item is UIElement)) 2200UIElement layoutParent = null; 2213layoutParent = v as UIElement; 3149UIElement e = null; 4289/// Override for <seealso cref="UIElement.MeasureCore" />. 4340mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4341mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4342mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4343mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4388frameworkAvailableSize = UIElement.RoundLayoutSize(frameworkAvailableSize, dpi.DpiScaleX, dpi.DpiScaleY); 4469clippedDesiredWidth = UIElement.RoundLayoutValue(clippedDesiredWidth, dpi.DpiScaleX); 4470clippedDesiredHeight = UIElement.RoundLayoutValue(clippedDesiredHeight, dpi.DpiScaleY); 4515/// Override for <seealso cref="UIElement.ArrangeCore" />. 4569marginWidth = UIElement.RoundLayoutValue(marginWidth, dpi.DpiScaleX); 4570marginHeight = UIElement.RoundLayoutValue(marginHeight, dpi.DpiScaleY); 4677mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4678mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4679mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4680mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4703arrangeSize = UIElement.RoundLayoutSize(arrangeSize, dpi.DpiScaleX, dpi.DpiScaleY); 4716RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY); 4729clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4746clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4762clientSize = UIElement.RoundLayoutSize(clientSize, dpi.DpiScaleX, dpi.DpiScaleY); 4778offset.X = UIElement.RoundLayoutValue(offset.X, dpi.DpiScaleX); 4779offset.Y = UIElement.RoundLayoutValue(offset.Y, dpi.DpiScaleY); 4787/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 4869/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 4890mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4891mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4892mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4893mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4943clipRect = UIElement.RoundLayoutRect(clipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4964slotClipRect = UIElement.RoundLayoutRect(slotClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4981localClipRect = UIElement.RoundLayoutRect(localClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 5010slotRect = UIElement.RoundLayoutRect(slotRect, dpi.DpiScaleX, dpi.DpiScaleY); 5019localRect = UIElement.RoundLayoutRect(localRect, dpi.DpiScaleX, dpi.DpiScaleY); 5140internal static void InternalSetLayoutTransform(UIElement element, Transform layoutTransform) 5804UIElement uiElement = this._templatedParent as UIElement; 6081UIElement uiElement = modelTreeNode as UIElement; 6391private UIElement _templateChild; // Non-null if this FE has a child that was created as part of a template. 6397internal static DependencyObjectType UIElementDType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\FrameworkTemplate.cs (3)
760else if (dependencyProperty == UIElement.UidProperty) 1133UIElement rootElement = rootObject as UIElement;
System\Windows\Generated\FrameworkContentElement.cs (2)
365UIElement.SynchronizeForceInheritProperties(null, this, null, _parent); 369UIElement.SynchronizeForceInheritProperties(null, this, null, oldParent);
System\Windows\Generated\FrameworkElement.cs (2)
363UIElement.SynchronizeForceInheritProperties(this, null, null, _parent); 367UIElement.SynchronizeForceInheritProperties(this, null, null, oldParent);
System\Windows\Ink\Events.cs (9)
118private List<UIElement> _elements; 125internal InkCanvasSelectionChangingEventArgs(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 130List<UIElement> elements = 131new List<UIElement>(selectedElements); 164public void SetSelectedElements(IEnumerable<UIElement> selectedElements) 168List<UIElement> elements = 169new List<UIElement>(selectedElements); 178public ReadOnlyCollection<UIElement> GetSelectedElements() 180return new ReadOnlyCollection<UIElement>(_elements);
System\Windows\Input\KeyboardNavigation.cs (37)
493public FocusVisualAdorner(UIElement adornedElement, Style focusVisualStyle) : base(adornedElement) 509public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent, IContentHost contentHostParent, Style focusVisualStyle) 548((UIElement)GetVisualChild(0)).Measure(constraint); 625((UIElement)GetVisualChild(0)).Arrange(new Rect(new Point(), finalSize)); 752private UIElement _adorderChild; 757internal static UIElement GetParentUIElementFromContentElement(ContentElement ce) 763internal static UIElement GetParentUIElementFromContentElement(ContentElement ce, ref IContentHost ichParent) 777UIElement eParent = parent as UIElement; 787UIElement uielement = visualParent as UIElement; 879UIElement parentUIElement = GetParentUIElementFromContentElement(fce, ref parentICH); 1437UIElement uiElement = visual as UIElement; 1467if (current is UIElement || current is UIElement3D) 1481DependencyObject parentAsUIElement = parent as UIElement; 1524if (current is UIElement || current is UIElement3D) 1542DependencyObject parentAsUIElement = parent as UIElement; 1636if (current is UIElement || current is UIElement3D) 1651DependencyObject uiElement = e as UIElement; 1704if (current is UIElement || current is UIElement3D) 1717DependencyObject uiElement = e as UIElement; 1929UIElement uie = element as UIElement; 2370UIElement uiElement = element as UIElement; 2408UIElement parentUIElement = GetParentUIElementFromContentElement(ce, ref parentICH); 2730UIElement sourceUIElement = sourceElement as UIElement; 2740UIElement targetUIElement = targetElement as UIElement; 2772UIElement uiElement = sender as UIElement; 2788if (sender is UIElement) 2789((UIElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus)); 3001ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3033currentRectElement as UIElement,
System\Windows\Interop\ActiveXHost.cs (2)
64invalidatorMap[UIElement.VisibilityProperty] = new PropertyInvalidator(OnVisibilityInvalidated); 915args.Target = (UIElement)sender;
System\Windows\Interop\HwndHost.cs (1)
619/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (7)
57return typeof(System.Windows.UIElement); 59return typeof(System.Windows.UIElement); 61return typeof(System.Windows.UIElement); 63return typeof(System.Windows.UIElement); 65return typeof(System.Windows.UIElement); 80case 3: assembly = typeof(System.Windows.UIElement).Assembly; break; 788case 694: t = () => typeof(UIElement); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (53)
4116Type type = typeof(System.Windows.UIElement); 4117DependencyProperty dp = System.Windows.UIElement.ClipToBoundsProperty; 4119this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4135Type type = typeof(System.Windows.UIElement); 4136DependencyProperty dp = System.Windows.UIElement.FocusableProperty; 4138this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4154Type type = typeof(System.Windows.UIElement); 4155DependencyProperty dp = System.Windows.UIElement.IsEnabledProperty; 4157this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4173Type type = typeof(System.Windows.UIElement); 4174DependencyProperty dp = System.Windows.UIElement.RenderTransformProperty; 4176this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4192Type type = typeof(System.Windows.UIElement); 4193DependencyProperty dp = System.Windows.UIElement.VisibilityProperty; 4195this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4234typeof(System.Windows.UIElement), // type 4239SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.AdornedElementPlaceholder)target).Child = (System.Windows.UIElement)value; }, 4253typeof(System.Windows.UIElement), // type 4258SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.AdornerDecorator)target).Child = (System.Windows.UIElement)value; }, 4310typeof(System.Windows.UIElement), // type 4315SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.BlockUIContainer)target).Child = (System.Windows.UIElement)value; }, 4367typeof(System.Windows.UIElement), // type 4372SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Border)target).Child = (System.Windows.UIElement)value; }, 4386typeof(System.Windows.UIElement), // type 4391SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Child = (System.Windows.UIElement)value; }, 4675typeof(System.Windows.UIElement), // type 4680SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Decorator)target).Child = (System.Windows.UIElement)value; }, 5130typeof(System.Windows.UIElement), // type 5135SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.InkPresenter)target).Child = (System.Windows.UIElement)value; }, 5149typeof(System.Windows.UIElement), // type 5154SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.InlineUIContainer)target).Child = (System.Windows.UIElement)value; }, 6613typeof(System.Windows.UIElement), // type 6618SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Viewbox)target).Child = (System.Windows.UIElement)value; }, 7322Type type = typeof(System.Windows.UIElement); 7323DependencyProperty dp = System.Windows.UIElement.UidProperty; 7325this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8389Type type = typeof(System.Windows.UIElement); 8390DependencyProperty dp = System.Windows.UIElement.RenderTransformOriginProperty; 8392this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8431typeof(System.Windows.UIElement), // type 8436SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Bullet = (System.Windows.UIElement)value; }, 8446Type type = typeof(System.Windows.UIElement); 8447DependencyProperty dp = System.Windows.UIElement.SnapsToDevicePixelsProperty; 8449this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8465Type type = typeof(System.Windows.UIElement); 8467this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8474GetDelegate = delegate (object target) { return ((System.Windows.UIElement)target).CommandBindings; }, 8484Type type = typeof(System.Windows.UIElement); 8486this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8493GetDelegate = delegate (object target) { return ((System.Windows.UIElement)target).InputBindings; }, 8754Type type = typeof(System.Windows.UIElement); 8755DependencyProperty dp = System.Windows.UIElement.AllowDropProperty; 8757this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11869typeof(System.Windows.UIElement),
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (1)
36UIElement.AddHandler(dObject, _member.RoutedEvent, handler);
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
106case 3: assembly = new Baml6Assembly(typeof(System.Windows.UIElement).Assembly); break;
System\Windows\Markup\BamlRecordReader.cs (8)
1097((element is UIElement) || 2835UIElement uiel = element as UIElement; 3309UIElement element = CurrentContext.ObjectData as UIElement; 3312SetDependencyValue(element, UIElement.UidProperty, bamlDefAttributeRecord.Value); 4426UIElement uiElement = element as UIElement;
System\Windows\Markup\KnownTypes.cs (6)
1942return System.Windows.UIElement.ClipToBoundsProperty; 1944return System.Windows.UIElement.FocusableProperty; 1946return System.Windows.UIElement.IsEnabledProperty; 1948return System.Windows.UIElement.RenderTransformProperty; 1950return System.Windows.UIElement.VisibilityProperty; 6242case KnownElements.UIElement: t = typeof(System.Windows.UIElement); break;
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
549if (dependencyProperty == UIElement.UidProperty)
System\Windows\Markup\WpfXamlLoader.cs (2)
100UIElement uiElement = args.Instance as UIElement;
System\Windows\Markup\XamlReader.cs (2)
368UIElement uiElement = args.Instance as UIElement;
System\Windows\Navigation\NavigationService.cs (2)
2346UIElement navigatorHost = INavigatorHost as UIElement;
System\Windows\Navigation\NavigationWindow.cs (1)
830/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\SizeChangedEventArgs.cs (3)
21/// The SizeChangeInfo that is used by <seealso cref="UIElement.OnRenderSizeChanged"/>. 23internal SizeChangedEventArgs(UIElement element, SizeChangedInfo info) 78private UIElement _element;
System\Windows\StyleHelper.cs (2)
1936internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1945UIElement child,
System\Windows\SystemResources.cs (1)
518_presentationCore = typeof(UIElement).Assembly;
System\Windows\Window.cs (7)
82UIElement.ManipulationCompletedEvent, 86UIElement.ManipulationInertiaStartingEvent, 1748/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1867UIElement child = this.GetVisualChild(0) as UIElement; 3404UIElement child = this.GetVisualChild(0) as UIElement;
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
404UIElement child = Child; 459UIElement child = Child;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
220UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.Aero2 (5)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
404UIElement child = Child; 459UIElement child = Child;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
220UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.AeroLite (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.Classic (4)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
658UIElement child = Child; 707UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.Luna (4)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
315UIElement child = Child; 370UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.Royale (4)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
273UIElement child = Child; 328UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationUI (8)
MS\Internal\Documents\Application\PageTextBox.cs (1)
139/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
237/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (6)
1218private void ChangeControlVisibility(UIElement uie) 1231private void ChangeControlVisibility(UIElement uie, bool visibility) 2430UIElement[] children = new UIElement[fixedPage.Children.Count]; 2432foreach (UIElement child in fixedPage.Children) 2439foreach (UIElement child in children)
ReachFramework (7)
AlphaFlattener\Utility.cs (2)
1574UIElement uiElement = visualBrush.Visual as UIElement;
Serialization\Manager\ReachSerializationUtils.cs (3)
692UIElement element = visual as UIElement; 1141UIElement uiElement,
Serialization\VisualTreeFlattener.cs (2)
513UIElement uiElement = visual as UIElement;
Roslyn.VisualStudio.DiagnosticsWindow (4)
OptionPages\InternalOptionsControl.cs (3)
128var uiElement = CreateControl(option, additional: additional); 137var uiElement = CreateControl(option, languageName, additional); 144private UIElement CreateControl(IOption2 option, string languageName = null, string additional = null)
Panels\TelemetryPanel.xaml.cs (1)
136private static IDisposable Disable(UIElement control)
System.Windows.Controls.Ribbon (245)
Microsoft\Windows\Automation\Peers\RibbonApplicationMenuAutomationPeer.cs (1)
52UIElement element = menu.FooterPaneHost;
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
203UIElement helpPaneHost = OwningRibbon.HelpPaneHost;
Microsoft\Windows\Automation\Peers\RibbonContextualTabGroupAutomationPeer.cs (2)
43UIElement headerElement = tabGroup.Header as UIElement;
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
115UIElement filterHost = null;
Microsoft\Windows\Automation\Peers\RibbonMenuItemDataAutomationPeer.cs (8)
70UIElement owner = GetWrapper(); 138UIElement owner = GetWrapper(); 169UIElement owner = GetWrapper(); 199UIElement owner = GetWrapper(); 239UIElement owner = GetWrapper(); 263UIElement owner = GetWrapper(); 283UIElement owner = GetWrapper(); 337UIElement owner = GetWrapper();
Microsoft\Windows\Controls\ActivatingKeyTipEventArgs.cs (1)
68public UIElement PlacementTarget
Microsoft\Windows\Controls\Generated\TreeHelper.cs (4)
214UIElement element = pathStart as UIElement; 238UIElement element = pathStart as UIElement;
Microsoft\Windows\Controls\KeyTipAdorner.cs (7)
28public KeyTipAdorner(UIElement adornedElement, 29UIElement placementTarget, 100_keyTipControl.IsEnabled = (bool)keyTipElement.GetValue(UIElement.IsEnabledProperty); 164private UIElement PlacementTarget { get; set; } 195UIElement placementTarget = PlacementTarget; 243UIElement placementTarget = PlacementTarget; 295private double NudgeToRibbonGroupAxis(UIElement placementTarget, double verticalPosition)
Microsoft\Windows\Controls\KeyTipService.cs (6)
937if (!((bool)(exactMatchElement.GetValue(UIElement.IsEnabledProperty)))) 1352DependencyProperty.RegisterAttached("KeyTipAdornerHolder", typeof(UIElement), typeof(KeyTipService), new UIPropertyMetadata(null)); 1362UIElement uie = RibbonHelper.GetContainingUIElement(element); 1387UIElement adornedElement = RibbonHelper.GetContainingUIElement(activatingEventArgs.PlacementTarget ?? element); 1438UIElement adornedElement = (UIElement)element.GetValue(KeyTipAdornerHolderProperty);
Microsoft\Windows\Controls\Ribbon\Primitives\IProvideStarLayoutInfoBase.cs (1)
26UIElement TargetElement { get; }
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (6)
384UIElement child = children[i] as UIElement; 454UIElement child = children[i]; 595UIElement child = (UIElement)children[i]; 629public UIElement TargetElement
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (4)
338UIElement child = children[i] as UIElement; 412UIElement child = children[i] as UIElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (11)
64UIElement child = children[i]; 146private static bool IsStarChild(UIElement child) 152private static bool IsStarChild(UIElement child, out double weight) 208UIElement child = children[i]; 275UIElement child = children[i]; 308UIElement child = children[i]; 350UIElement child = children[columnChildIndex]; 381private static bool CanChildStretch(UIElement child) 390UIElement contentChild = ribbonControl.ContentChild; 431public UIElement TargetElement 438return itemsPresenter.TemplatedParent as UIElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
307foreach (UIElement child in this.Children)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (8)
117foreach (UIElement child in InternalChildren) 159UIElement starLayoutTarget = starLayoutInfoProvider.TargetElement; 212HashSet<UIElement> starLayoutTargets = GetStarLayoutProviderTargets(); 222UIElement child = children[i]; 259private HashSet<UIElement> GetStarLayoutProviderTargets() 261HashSet<UIElement> targets = new HashSet<UIElement>(); 265UIElement starLayoutTarget = starProvider.TargetElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (3)
24UIElement child = Children[i]; 45UIElement child = (UIElement)children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (16)
38UIElement childToAdd = Generator.GenerateNext() as UIElement; 59UIElement childToMove = GeneratedChildren[args.OldPosition.Index]; 110private List<UIElement> _generatedChildren; 112internal List<UIElement> GeneratedChildren 129_generatedChildren = new List<UIElement>(); 140UIElement child; 143while ((child = Generator.GenerateNext() as UIElement) != null) 177List<UIElement> generatedItems = GeneratedChildren; 183UIElement generatedChild = generatedItems[i]; 248UIElement parent = VisualTreeHelper.GetParent(this) as UIElement; 280UIElement child = (UIElement)children[i]; 318UIElement currentChild = InternalChildren[j]; 332UIElement currentChild = GeneratedChildren[k];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (8)
114foreach (UIElement child in InternalChildren) 250UIElement child = children[index]; 406UIElement child = children[i]; 455UIElement child = children[i]; 489foreach (UIElement element in children) 543foreach (UIElement element in children) 607foreach (UIElement element in InternalChildren) 672UIElement child = children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (2)
195UIElement qat = Ribbon.QatTopHost; 205UIElement titleHost = Ribbon.TitleHost;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (18)
67UIElement _qatTopHost = null; // ContentPresenter hosting QuickAccessToolBar 68UIElement _titleHost = null; // ContentPresenter hosting the Title 69UIElement _helpPaneHost = null; // ContentPresenter hosting the HelpPaneContent 666internal UIElement QatTopHost 674internal UIElement TitleHost 682internal UIElement HelpPaneHost 766_qatTopHost = this.GetTemplateChild(Ribbon.QatHostTemplateName) as UIElement; 767_titleHost = this.GetTemplateChild(Ribbon.TitleHostTemplateName) as UIElement; 768_helpPaneHost = this.GetTemplateChild(Ribbon.HelpPaneTemplateName) as UIElement; 1306!((UIElement)(ribbon._itemsPresenterPopup.Parent)).IsArrangeValid)) 2409ContextMenuOriginalSource = e.OriginalSource as UIElement; 2413internal UIElement ContextMenuOriginalSource 2466UIElement originalSource = args.OriginalSource as UIElement; 2469originalSource = FindElementThatCanBeAddedToQAT(originalSource) as UIElement; 2567UIElement originalSource = args.OriginalSource as UIElement; 2660e.CloneInstance = (UIElement)RibbonHelper.CreateClone(e.InstanceToBeCloned, allowTransformations);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (9)
268internal UIElement FooterPaneHost 273internal UIElement AuxiliaryPaneHost 396UIElement auxiliaryPaneHost = AuxiliaryPaneHost; 412UIElement footerPaneHost = FooterPaneHost; 428UIElement subMenuScrollViewer = SubMenuScrollViewer; 448UIElement footerPaneHost = FooterPaneHost; 471UIElement popupChild = _popup.TryGetChild(); 489UIElement auxilaryPaneHost = AuxiliaryPaneHost; 519UIElement auxilaryPaneHost = AuxiliaryPaneHost;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (3)
545_clonedElement = logicalElement as UIElement; 955UIElement targetFocusOnFalse = null; 1691private UIElement _clonedElement;
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
185internal UIElement ContentChild
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (8)
73private static bool CanRaiseDismissPopups(UIElement dismissPopupSource) 100UIElement dismissPopupSource = contextMenu.GetDismissPopupSource(); 140UIElement uie = current as UIElement; 181private UIElement GetDismissPopupSource() 183UIElement placementTarget = PlacementTarget; 195UIElement returnValue = ribbon.ContextMenuOriginalSource; 210UIElement dismissPopupSource = GetDismissPopupSource();
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (5)
153UIElement element = e.OldValue as UIElement; 161UIElement element = e.NewValue as UIElement; 223internal UIElement ContentChild
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (1)
112UIElement contentChild = ribbonControl.ContentChild;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (1)
44UIElement popupRoot,
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
2692predictedFocus = RibbonHelper.PredictFocus(focusedElement, direction) as UIElement; 2706UIElement predictedFocus = null; 2713predictedFocus = RibbonHelper.PredictFocus(focusedElement, direction) as UIElement; 2729UIElement focusContainer = RibbonHelper.GetContainingUIElement(focusedElement);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (8)
622UIElement popupChild = group._collapsedGroupPopup.TryGetChild(); 864UIElement contentChild = ribbonControl.ContentChild; 1404UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1446UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1501UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1676UIElement placementTarget = e.PlacementTarget; 1721UIElement ribbonPopupChild = ribbon.ItemsPresenterPopup.TryGetChild(); 1763UIElement popupChild = _collapsedGroupPopup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (57)
481UIElement uie = Keyboard.FocusedElement as UIElement; 496UIElement uie; 500if ((uie = element as UIElement) != null) 518UIElement uie; 522if ((uie = element as UIElement) != null) 946UIElement uiElement = element as UIElement; 974UIElement uiElement = element as UIElement; 1018public static void HandleLostMouseCapture(UIElement element, 1022UIElement targetCapture, 1023UIElement targetFocus) 1102private static bool ReacquireCapture(UIElement targetCapture, UIElement targetFocus) 1112public static bool IsMousePhysicallyOver(UIElement element) 1132UIElement alternateCaptureHost) 1140UIElement element = sender as UIElement; 1144UIElement source = Mouse.Captured as UIElement; 1161UIElement mouseOverTarget, 1162UIElement alternateMouseOverTarget) 1186public static void AsyncSetFocusAndCapture(UIElement element, 1188UIElement targetCapture, 1189UIElement targetFocus) 1212public static void RestoreFocusAndCapture(UIElement targetCapture, 1213UIElement targetFocus) 1229public static void HandleIsDropDownChanged(UIElement element, 1231UIElement targetCapture, 1232UIElement targetFocus) 1255object sender, KeyEventArgs e, Func<bool> gettor, Action<bool> settor, UIElement targetFocusOnFalse, UIElement targetFocusContainerOnTrue) 1281UIElement uie = sender as UIElement; 1327public static UIElement TryGetChild(this Popup popup) 1332public static bool IsCaptureInSubtree(UIElement element) 1338public static bool IsCaptureInVisualSubtree(UIElement element) 1416UIElement managerElement = starLayoutManager as UIElement; 1545private static void TransferProperty(UIElement original, UIElement clone, DependencyProperty dp, TransferMode mode) 1550private static void TransferProperty(UIElement original, UIElement clone, DependencyProperty originalProperty, DependencyProperty cloneProperty, TransferMode mode) 1872if (original is UIElement || 2509UIElement container = parentItemsControl.ItemContainerGenerator.ContainerFromIndex(i) as UIElement; 2584public static UIElement GetContainingUIElement(DependencyObject element) 2586UIElement uie = element as UIElement; 2625UIElement mediumPlacementTarget) 2672UIElement nonLargePlacementTarget) 2705UIElement mediumPlacementTarget) 2756UIElement mediumPlacementTarget) 2858internal static AutomationPeer CreatePeer(UIElement element) 2970UIElement uie = element as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (10)
64EventManager.RegisterClassHandler(ownerType, UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCaptureThunk)); 66EventManager.RegisterClassHandler(ownerType, UIElement.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotKeyboardFocusThunk), true); 791UIElement popupChild = _popup.TryGetChild(); 1257UIElement popupChild = _popup.TryGetChild(); 1285_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1336private UIElement _popupRoot; 1430UIElement popupChild = _popup.TryGetChild(); 1446UIElement popupChild = _popup.TryGetChild(); 1538UIElement popupChild = _popup.TryGetChild(); 1685UIElement popupChild = _popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (12)
651_sideBarBorder = GetTemplateChild(SideBarBorderTemplatePartName) as UIElement; 782UIElement popupChild = _popup.TryGetChild(); 834UIElement popupChild = _popup.TryGetChild(); 991UIElement popupChild = _popup.TryGetChild(); 1313UIElement popupChild = _popup.TryGetChild(); 1335_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1596private UIElement _popupRoot; 1597private UIElement _sideBarBorder = null; 1676UIElement popupChild = _popup.TryGetChild(); 1692UIElement popupChild = _popup.TryGetChild(); 1750internal UIElement SideBarBorder 1829UIElement popupChild = _popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (8)
176UIElement popupChild = qat._overflowPopup.TryGetChild(); 366UIElement popupChild = _overflowPopup.TryGetChild(); 378UIElement popupChild = _overflowPopup.TryGetChild(); 396UIElement popupChild = _overflowPopup.TryGetChild(); 457UIElement popupChild = _overflowPopup.TryGetChild(); 596UIElement contentChild = ribbonControl.ContentChild; 617UIElement contentChild = ribbonControl.ContentChild; 677UIElement popupChild = _overflowPopup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBarCloneEventArgs.cs (4)
22public RibbonQuickAccessToolBarCloneEventArgs(UIElement targetElement) 28public UIElement InstanceToBeCloned 36public UIElement CloneInstance 55private UIElement _instanceToBeCloned;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
408UIElement popupChild = Popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
78UIElement target = e.NewValue as UIElement; 284UIElement placementTarget = toolTip.PlacementTarget; 338UIElement placementTarget = this.PlacementTarget;
WindowsBase.Tests (2)
System\Windows\DependencyObjectTests.cs (2)
1552DependencyProperty property = UIElement.IsVisibleProperty; 1963DependencyProperty property = UIElement.IsVisibleProperty;
WindowsFormsIntegration (5)
System\Windows\Integration\ElementHost.cs (4)
53private SW.UIElement _child; 179public SW.UIElement Child 187UIElement oldValue = Child; 265private void OnChildChanged(UIElement oldChild)
System\Windows\Integration\WindowsFormsHost.cs (1)
563/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)