2 types derived from UIElement
PresentationFramework (2)
System\windows\Documents\CaretElement.cs (1)
1192private 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)
213var preview = grid.Children[0];
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
324image.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; 293if (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)
797UIElement.AddHandler(element, CopyingEvent, handler); 807UIElement.RemoveHandler(element, CopyingEvent, handler); 846UIElement.AddHandler(element, PastingEvent, handler); 856UIElement.RemoveHandler(element, PastingEvent, handler); 885UIElement.AddHandler(element, SettingDataEvent, handler); 895UIElement.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)
368UIElement.BuildRouteHelper(this, route, args); 391UIElement.RaiseEventImpl(this, e); 410UIElement.RaiseEventImpl(this, args); 423UIElement.RaiseEventImpl(this, args); 724UIElement.IsMouseDirectlyOverPropertyKey.OverrideMetadata( 730UIElement.IsMouseOverPropertyKey.OverrideMetadata( 735UIElement.IsStylusOverPropertyKey.OverrideMetadata( 740UIElement.IsKeyboardFocusWithinPropertyKey.OverrideMetadata( 745UIElement.IsMouseCapturedPropertyKey.OverrideMetadata( 751UIElement.IsMouseCaptureWithinPropertyKey.OverrideMetadata( 756UIElement.IsStylusDirectlyOverPropertyKey.OverrideMetadata( 762UIElement.IsStylusCapturedPropertyKey.OverrideMetadata( 768UIElement.IsStylusCaptureWithinPropertyKey.OverrideMetadata( 773UIElement.IsKeyboardFocusedPropertyKey.OverrideMetadata( 779UIElement.AreAnyTouchesDirectlyOverPropertyKey.OverrideMetadata( 784UIElement.AreAnyTouchesOverPropertyKey.OverrideMetadata( 789UIElement.AreAnyTouchesCapturedPropertyKey.OverrideMetadata( 794UIElement.AreAnyTouchesCapturedWithinPropertyKey.OverrideMetadata( 881public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 888add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 889remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 900public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 907add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 908remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 919public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 926add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 927remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 938public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 945add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 946remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 957public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 964add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 965remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 976public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 983add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 984remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 995public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 1002add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 1003remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 1014public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 1021add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 1022remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 2240public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 2252add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 2253remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 2269RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2275public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2280public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2285public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2292add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2293remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2309RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2315public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2327add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2328remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2344RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2350public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2357add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2358remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2374RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2380public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2392add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2393remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2409RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2415public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2427add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2428remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2444RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2450public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2457add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2458remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2474RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2480public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2492add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2493remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2509RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2515public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2520public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2525public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2530public static readonly DependencyProperty AreAnyTouchesCapturedWithinProperty = UIElement.AreAnyTouchesCapturedWithinProperty.AddOwner(_typeofThis);
System\Windows\Generated\UIElement.cs (293)
23static private readonly Type _typeofThis = typeof(UIElement); 368UIElement.BuildRouteHelper(this, route, args); 377/// <see cref="UIElement.BuildRoute"/> and 391UIElement.RaiseEventImpl(this, e); 410UIElement.RaiseEventImpl(this, args); 423UIElement.RaiseEventImpl(this, args); 725EventManager.RegisterClassHandler(type, Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseDownThunk), true); 726EventManager.RegisterClassHandler(type, Mouse.MouseDownEvent, new MouseButtonEventHandler(UIElement.OnMouseDownThunk), true); 727EventManager.RegisterClassHandler(type, Mouse.PreviewMouseUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseUpThunk), true); 728EventManager.RegisterClassHandler(type, Mouse.MouseUpEvent, new MouseButtonEventHandler(UIElement.OnMouseUpThunk), true); 729EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonDownThunk), false); 730EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonDownThunk), false); 731EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonUpThunk), false); 732EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonUpThunk), false); 733EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonDownThunk), false); 734EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonDownThunk), false); 735EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonUpThunk), false); 736EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonUpThunk), false); 737EventManager.RegisterClassHandler(type, Mouse.PreviewMouseMoveEvent, new MouseEventHandler(UIElement.OnPreviewMouseMoveThunk), false); 738EventManager.RegisterClassHandler(type, Mouse.MouseMoveEvent, new MouseEventHandler(UIElement.OnMouseMoveThunk), false); 739EventManager.RegisterClassHandler(type, Mouse.PreviewMouseWheelEvent, new MouseWheelEventHandler(UIElement.OnPreviewMouseWheelThunk), false); 740EventManager.RegisterClassHandler(type, Mouse.MouseWheelEvent, new MouseWheelEventHandler(UIElement.OnMouseWheelThunk), false); 741EventManager.RegisterClassHandler(type, Mouse.MouseEnterEvent, new MouseEventHandler(UIElement.OnMouseEnterThunk), false); 742EventManager.RegisterClassHandler(type, Mouse.MouseLeaveEvent, new MouseEventHandler(UIElement.OnMouseLeaveThunk), false); 743EventManager.RegisterClassHandler(type, Mouse.GotMouseCaptureEvent, new MouseEventHandler(UIElement.OnGotMouseCaptureThunk), false); 744EventManager.RegisterClassHandler(type, Mouse.LostMouseCaptureEvent, new MouseEventHandler(UIElement.OnLostMouseCaptureThunk), false); 745EventManager.RegisterClassHandler(type, Mouse.QueryCursorEvent, new QueryCursorEventHandler(UIElement.OnQueryCursorThunk), false); 746EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 747EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 748EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 749EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 750EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 751EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 752EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 753EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 754EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 755EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 756EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 757EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 758EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 759EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 760EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 761EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 762EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 763EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 764EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 765EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 766EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 767EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 768EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyDownEvent, new KeyEventHandler(UIElement.OnPreviewKeyDownThunk), false); 769EventManager.RegisterClassHandler(type, Keyboard.KeyDownEvent, new KeyEventHandler(UIElement.OnKeyDownThunk), false); 770EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyUpEvent, new KeyEventHandler(UIElement.OnPreviewKeyUpThunk), false); 771EventManager.RegisterClassHandler(type, Keyboard.KeyUpEvent, new KeyEventHandler(UIElement.OnKeyUpThunk), false); 772EventManager.RegisterClassHandler(type, Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewGotKeyboardFocusThunk), false); 773EventManager.RegisterClassHandler(type, Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnGotKeyboardFocusThunk), false); 774EventManager.RegisterClassHandler(type, Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewLostKeyboardFocusThunk), false); 775EventManager.RegisterClassHandler(type, Keyboard.LostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnLostKeyboardFocusThunk), false); 776EventManager.RegisterClassHandler(type, TextCompositionManager.PreviewTextInputEvent, new TextCompositionEventHandler(UIElement.OnPreviewTextInputThunk), false); 777EventManager.RegisterClassHandler(type, TextCompositionManager.TextInputEvent, new TextCompositionEventHandler(UIElement.OnTextInputThunk), false); 778EventManager.RegisterClassHandler(type, CommandManager.PreviewExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnPreviewExecutedThunk), false); 779EventManager.RegisterClassHandler(type, CommandManager.ExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnExecutedThunk), false); 780EventManager.RegisterClassHandler(type, CommandManager.PreviewCanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnPreviewCanExecuteThunk), false); 781EventManager.RegisterClassHandler(type, CommandManager.CanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnCanExecuteThunk), false); 782EventManager.RegisterClassHandler(type, CommandDevice.CommandDeviceEvent, new CommandDeviceEventHandler(UIElement.OnCommandDeviceThunk), false); 783EventManager.RegisterClassHandler(type, DragDrop.PreviewQueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnPreviewQueryContinueDragThunk), false); 784EventManager.RegisterClassHandler(type, DragDrop.QueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnQueryContinueDragThunk), false); 785EventManager.RegisterClassHandler(type, DragDrop.PreviewGiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnPreviewGiveFeedbackThunk), false); 786EventManager.RegisterClassHandler(type, DragDrop.GiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnGiveFeedbackThunk), false); 787EventManager.RegisterClassHandler(type, DragDrop.PreviewDragEnterEvent, new DragEventHandler(UIElement.OnPreviewDragEnterThunk), false); 788EventManager.RegisterClassHandler(type, DragDrop.DragEnterEvent, new DragEventHandler(UIElement.OnDragEnterThunk), false); 789EventManager.RegisterClassHandler(type, DragDrop.PreviewDragOverEvent, new DragEventHandler(UIElement.OnPreviewDragOverThunk), false); 790EventManager.RegisterClassHandler(type, DragDrop.DragOverEvent, new DragEventHandler(UIElement.OnDragOverThunk), false); 791EventManager.RegisterClassHandler(type, DragDrop.PreviewDragLeaveEvent, new DragEventHandler(UIElement.OnPreviewDragLeaveThunk), false); 792EventManager.RegisterClassHandler(type, DragDrop.DragLeaveEvent, new DragEventHandler(UIElement.OnDragLeaveThunk), false); 793EventManager.RegisterClassHandler(type, DragDrop.PreviewDropEvent, new DragEventHandler(UIElement.OnPreviewDropThunk), false); 794EventManager.RegisterClassHandler(type, DragDrop.DropEvent, new DragEventHandler(UIElement.OnDropThunk), false); 795EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 796EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 797EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 798EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 799EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 800EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 801EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 802EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 803EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 804EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 813UIElement uie = sender as UIElement; 835UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 847UIElement uie = sender as UIElement; 869UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 876UIElement uie = sender as UIElement; 898UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 905UIElement uie = sender as UIElement; 927UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 934UIElement uie = sender as UIElement; 959UIElement uie = sender as UIElement; 984UIElement uie = sender as UIElement; 1009UIElement uie = sender as UIElement; 1034UIElement uie = sender as UIElement; 1059UIElement uie = sender as UIElement; 1084UIElement uie = sender as UIElement; 1109UIElement uie = sender as UIElement; 1134UIElement uie = sender as UIElement; 1159UIElement uie = sender as UIElement; 1184UIElement uie = sender as UIElement; 1213UIElement uie = sender as UIElement; 1239UIElement uie = sender as UIElement; 1264UIElement uie = sender as UIElement; 1289UIElement uie = sender as UIElement; 1314UIElement uie = sender as UIElement; 1339UIElement uie = sender as UIElement; 1364UIElement uie = sender as UIElement; 1389UIElement uie = sender as UIElement; 1414UIElement uie = sender as UIElement; 1439UIElement uie = sender as UIElement; 1464UIElement uie = sender as UIElement; 1489UIElement uie = sender as UIElement; 1514UIElement uie = sender as UIElement; 1539UIElement uie = sender as UIElement; 1564UIElement uie = sender as UIElement; 1589UIElement uie = sender as UIElement; 1614UIElement uie = sender as UIElement; 1639UIElement uie = sender as UIElement; 1664UIElement uie = sender as UIElement; 1689UIElement uie = sender as UIElement; 1714UIElement uie = sender as UIElement; 1739UIElement uie = sender as UIElement; 1764UIElement uie = sender as UIElement; 1789UIElement uie = sender as UIElement; 1814UIElement uie = sender as UIElement; 1839UIElement uie = sender as UIElement; 1864UIElement uie = sender as UIElement; 1889UIElement uie = sender as UIElement; 1914UIElement uie = sender as UIElement; 1943UIElement uie = sender as UIElement; 1969UIElement uie = sender as UIElement; 1994UIElement uie = sender as UIElement; 2019UIElement uie = sender as UIElement; 2044UIElement uie = sender as UIElement; 2069UIElement uie = sender as UIElement; 2094UIElement uie = sender as UIElement; 2119UIElement uie = sender as UIElement; 2144UIElement uie = sender as UIElement; 2209UIElement uie = sender as UIElement; 2234UIElement uie = sender as UIElement; 2259UIElement uie = sender as UIElement; 2284UIElement uie = sender as UIElement; 2309UIElement uie = sender as UIElement; 2334UIElement uie = sender as UIElement; 2359UIElement uie = sender as UIElement; 2384UIElement uie = sender as UIElement; 2409UIElement uie = sender as UIElement; 2434UIElement uie = sender as UIElement; 2459UIElement uie = sender as UIElement; 2484UIElement uie = sender as UIElement; 2509UIElement uie = sender as UIElement; 2534UIElement uie = sender as UIElement; 2559UIElement uie = sender as UIElement; 2584UIElement uie = sender as UIElement; 2609UIElement uie = sender as UIElement; 2634UIElement uie = sender as UIElement; 2659UIElement uie = sender as UIElement; 2684UIElement uie = sender as UIElement; 2709UIElement uie = sender as UIElement; 2734UIElement uie = sender as UIElement; 2841add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 2842remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 2860add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 2861remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 2879add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 2880remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 2898add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 2899remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 2917add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 2918remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 2936add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 2937remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 2955add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 2956remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 2974add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 2975remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 4210((UIElement) d).RaiseIsMouseDirectlyOverChanged(e); 4224add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 4225remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 4241RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 4306add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4307remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4323RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 4346((UIElement) d).RaiseIsMouseCapturedChanged(e); 4360add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 4361remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 4377RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 4408add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 4409remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 4425RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 4448((UIElement) d).RaiseIsStylusDirectlyOverChanged(e); 4462add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 4463remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 4479RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 4502((UIElement) d).RaiseIsStylusCapturedChanged(e); 4516add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 4517remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 4533RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 4564add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 4565remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 4581RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 4604((UIElement) d).RaiseIsKeyboardFocusedChanged(e); 4618add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 4619remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 4635RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args);
System\Windows\Generated\UIElement3D.cs (66)
174UIElement.BuildRouteHelper(this, route, args); 197UIElement.RaiseEventImpl(this, e); 216UIElement.RaiseEventImpl(this, args); 229UIElement.RaiseEventImpl(this, args); 611public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 618add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 619remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 630public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 637add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 638remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 649public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 656add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 657remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 668public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 675add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 676remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 687public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 694add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 695remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 706public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 713add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 714remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 725public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 732add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 733remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 744public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 751add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 752remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 1970public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 1982add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 1983remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 1999RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2005public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2010public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2015public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2022add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2023remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2039RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2045public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2057add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2058remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2074RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2080public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2087add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2088remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2104RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2110public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2122add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2123remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2139RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2145public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2157add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2158remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2174RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2180public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2187add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2188remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2204RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2210public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2222add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2223remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2239RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2245public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2250public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2255public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2260public 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); 211oldVisual?.ClearValue(UIElement.IsFocusedPropertyKey); 219newVisual.SetValue(UIElement.IsFocusedPropertyKey, BooleanBoxes.TrueBox); 337UIElement 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) 1481private bool _ShowConfigureUI(UIElement element, bool fShow) 1534private 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) 69public static void CompleteManipulation(UIElement element) 78internal static bool TryCompleteManipulation(UIElement element) 95public static void SetManipulationMode(UIElement element, ManipulationModes mode) 115public static ManipulationModes GetManipulationMode(UIElement element) 136public static void SetManipulationContainer(UIElement element, IInputElement container) 157public static IInputElement GetManipulationContainer(UIElement element) 175public static void SetManipulationPivot(UIElement element, ManipulationPivot pivot) 195public static ManipulationPivot GetManipulationPivot(UIElement element) 214public static void AddManipulator(UIElement element, IManipulator manipulator) 233public static void RemoveManipulator(UIElement element, IManipulator manipulator) 244internal static bool TryRemoveManipulator(UIElement element, IManipulator manipulator) 262public static void SetManipulationParameter(UIElement element, ManipulationParameters2D parameter) 293internal static UIElement FindManipulationParent(Visual visual) 297UIElement 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) 244foreach (UIElement element in _manipulationDevices.Keys) 505private UIElement _target; 518private static Dictionary<UIElement, ManipulationDevice> _manipulationDevices;
System\Windows\Input\ManipulationLogic.cs (10)
527UIElement uie = _currentContainer as UIElement; 578_root = presentationSource.RootVisual as UIElement; 617UIElement container = _currentContainer as UIElement; 626UIElement container = _currentContainer as UIElement; 663UIElement container = _currentContainer as UIElement; 736private 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 1584UIElement eTest = null; 1590eTest = ieTest as UIElement; 2156UIElement 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)
662protected 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)
255UIElement e = element as UIElement; 584UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement; 1016UIElement eTest = null; 1021eTest = 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; 1813UIElement element = d as UIElement; 2304DpiScale 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) 780internal UIElement GetLastExceptionElement() 785internal void SetLastExceptionElement(UIElement e) 792private UIElement _forceLayoutElement; //set in extreme situations, forces the update of the whole tree containing the element 793private UIElement _lastExceptionElement; //set on exception in Measure or Arrange. 802internal static int s_LayoutRecursionLimit = UIElement.MAX_ELEMENTS_IN_ROUTE; //to keep these two constants in sync 831internal abstract Request getRequest(UIElement e); 832internal abstract void setRequest(UIElement e, Request r); 833internal abstract bool canRelyOnParentRecalc(UIElement parent); 834internal abstract void invalidate(UIElement e); 838internal UIElement Target; 857private void _addRequest(UIElement e) 871internal void Add(UIElement e) 878UIElement parent = e.GetUIParentWithinLayoutIsland(); 901UIElement p = e.GetUIParentWithinLayoutIsland(); 924internal void Remove(UIElement e) 932internal void RemoveOrphans(UIElement parent) 937UIElement child = r.Target; 954internal UIElement GetTopMost() 956UIElement found = null; 961UIElement t = r.Target; 984private Request _getNewRequest(UIElement e)
System\Windows\Media\BitmapCacheBrush.cs (8)
198UIElement element = Target as UIElement; 253private void DoLayout(UIElement element) 264UIElement.PropagateResumeLayout(null, element); 278UIElement element = (UIElement)Target; 307UIElement element = arg as UIElement;
System\Windows\Media\Generated\BitmapCacheBrush.cs (2)
150UIElement element = (UIElement)oldV;
System\Windows\Media\Generated\VisualBrush.cs (2)
88UIElement element = (UIElement)oldV;
System\Windows\Media\Visual.cs (14)
2612UIElement.PropagateResumeLayout(this, child); 2690UIElement.PropagateSuspendLayout(child); 4279UIElement.InvalidateForceInheritPropertyOnChildren(this, property); 4685lock (UIElement.DpiLock) 4687if (UIElement.DpiScaleXValues.Count == 0) 4690return UIElement.EnsureDpiScale(); 4694dpi = new DpiScale(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 4700if (index < 3 && UIElement.DpiScaleXValues[index] != 0 && UIElement.DpiScaleYValues[index] != 0) 4702dpi = new DpiScale(UIElement.DpiScaleXValues[index], UIElement.DpiScaleYValues[index]); 4708dpi = new DpiScale(UIElement.DpiScaleXValues[actualIndex], UIElement.DpiScaleYValues[actualIndex]);
System\Windows\Media\VisualBrush.cs (8)
180UIElement element = Visual as UIElement; 220private void DoLayout(UIElement element) 231UIElement.PropagateResumeLayout(null, element); 247UIElement element = (UIElement)Visual; 276UIElement 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) 436UIElement oldRootUIElement = oldRoot as UIElement; 437UIElement newRootUIElement = newRoot as UIElement; 521Debug.Assert(uie is UIElement3D or UIElement); 686if (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; 3343typeof(UIElement), 3350UIElement uie = (UIElement) d; 3384typeof(UIElement), 3391UIElement uie = (UIElement) d; 3416typeof(UIElement), 3423UIElement uie = (UIElement) d; 3466public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement)); 3480public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement)); 3498typeof(UIElement), 3513UIElement uiElement = ((UIElement)d); 3563typeof(UIElement), 3613UIElement uie = (UIElement) d; 3654UIElement uie = (UIElement)d; 3689typeof(UIElement), 3716UIElement uie = (UIElement) d; 3756UIElement uie = (UIElement)d; 3789typeof(UIElement), 3807return ((UIElement)d).IsVisible ? BooleanBoxes.TrueBox : BooleanBoxes.FalseBox; 3887UIElement uie = (UIElement) d; 3917typeof(UIElement), 3943UIElement uie = (UIElement) d; 4158UIElement uiElement, 4235UIElement element = vChild as UIElement; 4302typeof(UIElement), 4330((UIElement)d).CoerceStylusProperties(); 4334Manipulation.TryCompleteManipulation((UIElement)d); 4362public static readonly RoutedEvent ManipulationStartingEvent = Manipulation.ManipulationStartingEvent.AddOwner(typeof(UIElement)); 4376((UIElement)sender).OnManipulationStarting(e); 4387public static readonly RoutedEvent ManipulationStartedEvent = Manipulation.ManipulationStartedEvent.AddOwner(typeof(UIElement)); 4401((UIElement)sender).OnManipulationStarted(e); 4412public static readonly RoutedEvent ManipulationDeltaEvent = Manipulation.ManipulationDeltaEvent.AddOwner(typeof(UIElement)); 4426((UIElement)sender).OnManipulationDelta(e); 4437public static readonly RoutedEvent ManipulationInertiaStartingEvent = Manipulation.ManipulationInertiaStartingEvent.AddOwner(typeof(UIElement)); 4451((UIElement)sender).OnManipulationInertiaStarting(e); 4462public static readonly RoutedEvent ManipulationBoundaryFeedbackEvent = Manipulation.ManipulationBoundaryFeedbackEvent.AddOwner(typeof(UIElement)); 4476((UIElement)sender).OnManipulationBoundaryFeedback(e); 4487public static readonly RoutedEvent ManipulationCompletedEvent = Manipulation.ManipulationCompletedEvent.AddOwner(typeof(UIElement)); 4501((UIElement)sender).OnManipulationCompleted(e); 4668private static readonly UncommonField<WeakReference<UIElement>> _positionAndSizeOfSetController = new UncommonField<WeakReference<UIElement>>(); 4676internal UIElement PositionAndSizeOfSetController 4680UIElement element = null; 4681WeakReference<UIElement> wRef = _positionAndSizeOfSetController.GetValue(this); 4691_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); 922UIElement.IsHitTestVisibleProperty.AddOwner( 1040add { EventHandlersStoreAdd(UIElement.IsVisibleChangedKey, value); } 1041remove { EventHandlersStoreRemove(UIElement.IsVisibleChangedKey, value); } 1140UIElement.FocusableProperty.AddOwner( 1160add { EventHandlersStoreAdd(UIElement.FocusableChangedKey, value); } 1161remove { EventHandlersStoreRemove(UIElement.FocusableChangedKey, value); } 1169uie.RaiseDependencyPropertyChanged(UIElement.FocusableChangedKey, e); 1364UIElement 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)
142UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject 162UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
1117UIElement 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; 1017UIElement host = component.PresentationContext.Host; 1183private 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) 694private 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; 2277UIElement 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) 145internal void SetVerticalOffset(UIElement owner, double offset) 164internal Rect MakeVisible(UIElement owner, Visual visual, Rect rectangle) 225internal void SetScrollOwner(UIElement owner, ScrollViewer value)
MS\Internal\Documents\TextBoxView.cs (1)
1213UIElement 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; 1340UIElement uiElement = element as UIElement; 1370UIElement 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)
959_inkCanvas.AddHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 989_inkCanvas.AddHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>)); 1012_inkCanvas.RemoveHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 1027_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) 953if (embeddedObject is ContentElement || embeddedObject is UIElement) 955if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 1211void 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)
149void 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) 368foreach (UIElement child in this.OwningGrid.Children) 609foreach (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)
112if (document is UIElement) 114documentPeer = 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) 774return 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)), nameof(value)); 65this.Child = (UIElement)value; 85public UIElement AdornedElement 99public virtual UIElement Child 108UIElement old = _child; 190UIElement child = Child; 204UIElement child = Child; 235private 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; 260foreach (UIElement child in InternalChildren) 283foreach (UIElement child in InternalChildren) 331/// 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 886_clonedElement = logicalElement as UIElement; 1889/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2018private UIElement _clonedElement;
System\Windows\Controls\ComboBoxItem.cs (1)
164SetFlags(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)) 695UIElement child = (UIElement)(this.GetVisualChild(0)); 717UIElement child = (UIElement)(this.GetVisualChild(0));
System\Windows\Controls\DataGrid.cs (15)
2287UIElement source = e.OriginalSource as UIElement; 5547UIElement startElement = Keyboard.FocusedElement as UIElement; 5881UIElement startElement = Keyboard.FocusedElement as UIElement; 6330UIElement sourceElement = e.OriginalSource as UIElement; 6345sourceElement = VisualTreeHelper.GetParent(sourceElement) as UIElement; 6568UIElement element = Mouse.DirectlyOver as UIElement; 6577element = VisualTreeHelper.GetParent(row) as UIElement; 6589UIElement element = Mouse.DirectlyOver as UIElement; 6598element = VisualTreeHelper.GetParent(cell) as UIElement;
System\Windows\Controls\DataGridCell.cs (2)
548DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 561DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement);
System\Windows\Controls\DataGridCellsPanel.cs (29)
83UIElement parent = VisualTreeHelper.GetParent(this) as UIElement; 97private static void MeasureChild(UIElement child, Size constraint) 531private UIElement GenerateChild( 551private UIElement GenerateChild( 559UIElement child = generator.GenerateNext(out newlyRealized) as UIElement; 622private void AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized) 661private void InsertRecycledContainer(int childIndex, UIElement container) 669private void InsertNewContainer(int childIndex, UIElement container) 677private void InsertContainer(int childIndex, UIElement container, bool isRecycled) 765UIElement child = _realizedChildren[realizedChildIndex]; 840UIElement child = GenerateChild(generator, constraint, column, ref childIndex, out childSize); 965UIElement child = generator.ContainerFromIndex(columnIndex) as UIElement; 1057UIElement child = children[i] as UIElement; 1169UIElement visualChild; 1170UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 1269public UIElement OldClippedChild 1274public UIElement NewClippedChild 1405ArrangeChild(children[childIndex] as UIElement, i, arrangeState); 1427UIElement child = children[additionalChildIndices[i]] as UIElement; 1447UIElement child, 1955_realizedChildren = new List<UIElement>(children.Count); 2362internal Geometry GetFrozenClipForChild(UIElement child) 2448private UIElement _clippedChildForFrozenBehaviour; 2450private 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)), nameof(value)); 74this.Child = (UIElement)value; 103public virtual UIElement Child 190UIElement child = Child; 206UIElement child = Child; 214internal UIElement IntChild 223UIElement _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 210UIElement child = children[i]; 275UIElement child = children[i];
System\Windows\Controls\DocumentViewer.cs (1)
851/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Expander.cs (1)
290/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\FlowDocumentReader.cs (5)
758/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 950if (focusedElement is UIElement) 952((UIElement)focusedElement).Focus(); 1553if (CurrentViewer != null && CurrentViewer is UIElement) 1555((UIElement)CurrentViewer).Focus();
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
744/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1092UIElement targetUIElement; 1108else if (args.TargetObject is UIElement) 1110targetUIElement = (UIElement)args.TargetObject;
System\Windows\Controls\Frame.cs (1)
526/// 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)), nameof(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]; 682UIElement cell = children[currentCell]; 885UIElement child = children[i]; 1347UIElement child = InternalChildren[cell]; 2106definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2145definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2195definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi); 2219final = UIElement.RoundLayoutValue(finalOld, dpi); 2245double dpiIncrement = UIElement.RoundLayoutValue(1.0, dpi); 2655double 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"/> 535/// 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)
1147UIElement ui = container as UIElement; 1164ui = VisualTreeHelper.GetParent(ui) as UIElement; 1324if (p != null && (visual is UIElement)) 1326p.Children.RemoveNoVerify((UIElement)visual); 1542return (item is UIElement); 2917UIElement element, 2926UIElement element, 2953UIElement element, 3044UIElement element, 3167UIElement focusedElement = e.OriginalSource as UIElement; 3177UIElement itemContainer = itemsControl._focusedInfo.Container as UIElement; 3238UIElement 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; 161/// 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)
230/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListView.cs (1)
218/// 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)
1277/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1594UIElement uiElement = source as UIElement; 2247internal static void SetInsideContextMenuProperty(UIElement element, bool value) 2644private static bool GetBoolField(UIElement element, BoolField field) 2649private 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)), nameof(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; 854UIElement ownerUIE; 856if ((ownerUIE = owner as UIElement) != null) 872UIElement uieParent = KeyboardNavigation.GetParentUIElementFromContentElement(ownerCE, ref ichParent); 973if (sourceDO is UIElement uiElement) 1051UIElement uie = GetTarget(o); 1154UIElement uie = o as UIElement; 1185private static UIElement GetTarget(DependencyObject o) 1187UIElement uie = o as UIElement; 1196uie = ceParent as UIElement; 1280UIElement 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) 993monthCell.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"/>) 1144if (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) 1295UIElement element = value as UIElement; 1298throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 1357UIElement placementTarget = PlacementTarget; 1535UIElement child = Child; 2303UIElement target = GetTarget() as UIElement; 2381UIElement child = Child; 2391UIElement target = GetTarget() as UIElement; 3278UIElement target = popup.PlacementTarget; 3535var 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)
183/// 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)
1317UIElement 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)
1608if (visual is UIElement) 1610((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)
236/// 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]; 294UIElement child = (UIElement)children[i]; 349_generatedItemsCollection = new List<UIElement>(children.Count); 366UIElement child = children[i]; 409UIElement e = generator.GenerateNext() as UIElement; 424private void RemoveChild(UIElement child) 462UIElement e = generator.GenerateNext(out isNewlyRealized) as UIElement; 488UIElement[] elements = new UIElement[containerCount]; 492UIElement child = _generatedItemsCollection[fromPos.Index + i]; 524internal List<UIElement> GeneratedItemsCollection 533private 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)
182_glow.InvalidateProperty(UIElement.OpacityMaskProperty); 214_glow.SetCurrentValue(UIElement.OpacityMaskProperty, mask); 291/// 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; 2241UIElement uie = child as UIElement; 2267UIElement uie = visi as UIElement; 2437/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2718hsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedHorizontalScrollBarVisibilityProperty)); 2728vsb.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)
1271/// 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)
569UIElement innerControl = this.Content.InnerControl as UIElement; 600UIElement contentContainer = GetContentContainer(); 703private UIElement GetContentContainer() 705return GetTemplateChild(SNBConstants.c_ContentControlId) as UIElement; 1450Path = new PropertyPath(UIElement.IsKeyboardFocusWithinProperty),
System\Windows\Controls\TabControl.cs (1)
302/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TabItem.cs (1)
256/// 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); 1873protected virtual void OnChildDesiredSizeChangedCore(UIElement child) 1879/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 3654if (embeddedObject is ContentElement || embeddedObject is UIElement) 3656if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 3713if (fd != null && d is UIElement) 3715fd.OnChildDesiredSizeChanged((UIElement)d);
System\Windows\Controls\TextBox.cs (1)
1003/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ToolBar.cs (6)
441/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 630UIElement newFocusElement = null; 631UIElement currentFocusElement = e.Source as UIElement; 642newFocusElement = VisualTreeHelper.GetChild(itemsHost, 0) as UIElement; 645newFocusElement = VisualTreeHelper.GetChild(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
System\Windows\Controls\ToolTip.cs (3)
238public UIElement PlacementTarget 240get { return (UIElement) GetValue(PlacementTargetProperty); } 439/// 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)
756UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement; 838/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TreeViewItem.cs (1)
1048/// 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) 498protected void ClearLogicalParent(UIElement element) 506internal UIElement VisualParent 512private void ValidateElement(UIElement element) 535private readonly UIElement _visualParent;
System\Windows\Controls\UserControl.cs (1)
45/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Validation.cs (5)
396if (adornerSite is UIElement { IsVisible: false } siteUIElement) 410if (sender is not UIElement adornerSite) 428if (adornerSite is not UIElement siteUIElement) 581else if (source is UIElement) 582((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) 410protected void AddInternalChild(UIElement child) 423protected void InsertInternalChild(int index, UIElement child) 442internal static void AddInternalChild(UIElementCollection children, UIElement child) 448internal 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); 1684UIElement child; 1692child = generator.GenerateNext(out newlyRealized) as UIElement; 2208UIElement firstContainerInViewport = null; 2595firstContainerInViewport = children[firstItemInViewportChildIndex] as UIElement; 3378UIElement child = null; 3390child = (UIElement)children[i]; 3419UIElement containerBeforeViewport = null; 3428containerBeforeViewport = (UIElement)children[j]; 5853Size childDesiredSize = ((UIElement)children[i]).DesiredSize; 6423private void SetItemsHostInsetForChild(int index, UIElement child, IContainItemStorage itemStorageProvider, bool isHorizontal) 6534private ItemsControl GetScrollingItemsControl(UIElement container) 6666UIElement child, 7457UIElement child = children[i] as UIElement; 7609UIElement child = children[i] as UIElement; 8076object item = ((ItemContainerGenerator)generator).ItemFromContainer((UIElement)children[childIndex]); 8175UIElement child = null; 8188child = generator.GenerateNext(out newlyRealized) as UIElement; 8200child = (UIElement)children[childIndex]; 8382UIElement child, 8529UIElement child, 8564UIElement child, 8707private void InsertNewContainer(int childIndex, UIElement container) 8718private bool InsertRecycledContainer(int childIndex, UIElement container) 8730private bool InsertContainer(int childIndex, UIElement container, bool isRecycled) 8882private bool AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized, bool isBeforeViewport) 8954UIElement child = Generator.GenerateNext(out newlyRealized) as UIElement; 9058UIElement child; 9094child = (UIElement)children[childIndex]; 9177_realizedChildren = new List<UIElement>(children.Count); 9198foreach (UIElement child in InternalChildren) 9246UIElement child = _realizedChildren[realizedChildIndex]; 9271UIElement visualChild; 9272UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 9425private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 9572UIElement firstContainerInViewport, 10974protected override double GetItemOffsetCore(UIElement child) 11040double distance = vp.GetItemOffset((UIElement)child); 11249UIElement container = null; 11253container = (UIElement)children[i]; 11696private List<UIElement> _realizedChildren; 13001foreach (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)
591UIElement layoutElement = Helper.FindMentor(this) as UIElement; 905UIElement layoutElement = mentor as UIElement;
System\Windows\Documents\Adorner.cs (6)
42protected Adorner(UIElement adornedElement) 76UIElement ch = this.GetVisualChild(i) as UIElement; 84/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 171public UIElement AdornedElement 239private 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)
920_caretElement.ApplyAnimationClock(UIElement.OpacityProperty, _blinkAnimationClock); 926_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; 1125UIElement e; 1126if ((e = ((object)base.Visual) as UIElement) != null)
System\Windows\Documents\DocumentSequenceTextView.cs (3)
483internal override UIElement RenderScope 489while (visual != null && !(visual is UIElement)) 494return 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); 1305private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement)); 1408UIElement e; 1409if ((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)), nameof(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)
947elements.Current as UIElement, 1180public LogicalHyperlink(Uri uri, Geometry geom, UIElement uiElement) 1213public UIElement UIElement 1234private UIElement _uiElement; 1258public void AddLogicalHyperlink(Uri uri, Geometry geometry, UIElement uiElement) 1267public Uri GetUri(FixedSOMElement element, FixedPage p, out UIElement shadowElement) 1270UIElement e = p.GetElement(element.FixedNode) as UIElement; 1317public void MarkAsUsed(UIElement uiElement) 1396foreach (UIElement child in children) 1461UIElement shadowHyperlink; 1719private void _SetHyperlink(Uri navUri, FixedNode node, UIElement shadowHyperlink) 1732UIElement 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; 1279private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\Documents\FlowDocument.cs (2)
937internal void OnChildDesiredSizeChanged(UIElement child) 1203OnChildDesiredSizeChanged(arg as UIElement);
System\Windows\Documents\Glyphs.cs (1)
691((UIElement)d).InvalidateVisual();
System\Windows\Documents\Hyperlink.cs (5)
925SetUpEventHandler(element, UIElement.KeyDownEvent, new KeyEventHandler(OnKeyDown)); //initiates navigation 926SetUpEventHandler(element, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnMouseLeftButtonDown)); //capture hyperlink pressed state 927SetUpEventHandler(element, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(OnMouseLeftButtonUp)); //can initiate navigation 930SetUpEventHandler(element, UIElement.MouseEnterEvent, new MouseEventHandler(OnMouseEnter)); //set status bar 931SetUpEventHandler(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) 92public UIElement Child 96return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 108UIElement child = Child; 156UIElement 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)
210foreach (UIElement child in vc) 608private UIElement _scope; // element to which we are attached
System\windows\Documents\TextEditor.cs (2)
290internal static ITextView GetTextView(UIElement scope) 386EventManager.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)
688UIElement uiElement = GetUIElementWhenMouseOver(This, mouseMovePoint); 711private static UIElement GetUIElementWhenMouseOver(TextEditor This, Point mouseMovePoint) 748return mouseMovePosition.GetAdjacentElement(mouseMovePosition.LogicalDirection) as UIElement; 758UIElement 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)
2545if (element is UIElement && ((UIElement)element).IsKeyboardFocusWithin)
System\Windows\Documents\TextStore.cs (1)
2067internal 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 1408if (item == null || (item is UIElement)) 2197UIElement layoutParent = null; 2210layoutParent = v as UIElement; 3143UIElement e = null; 4283/// Override for <seealso cref="UIElement.MeasureCore" />. 4334mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4335mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4336mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4337mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4382frameworkAvailableSize = UIElement.RoundLayoutSize(frameworkAvailableSize, dpi.DpiScaleX, dpi.DpiScaleY); 4463clippedDesiredWidth = UIElement.RoundLayoutValue(clippedDesiredWidth, dpi.DpiScaleX); 4464clippedDesiredHeight = UIElement.RoundLayoutValue(clippedDesiredHeight, dpi.DpiScaleY); 4509/// Override for <seealso cref="UIElement.ArrangeCore" />. 4563marginWidth = UIElement.RoundLayoutValue(marginWidth, dpi.DpiScaleX); 4564marginHeight = UIElement.RoundLayoutValue(marginHeight, dpi.DpiScaleY); 4671mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4672mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4673mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4674mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4697arrangeSize = UIElement.RoundLayoutSize(arrangeSize, dpi.DpiScaleX, dpi.DpiScaleY); 4710RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY); 4723clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4740clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4756clientSize = UIElement.RoundLayoutSize(clientSize, dpi.DpiScaleX, dpi.DpiScaleY); 4772offset.X = UIElement.RoundLayoutValue(offset.X, dpi.DpiScaleX); 4773offset.Y = UIElement.RoundLayoutValue(offset.Y, dpi.DpiScaleY); 4781/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 4863/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 4884mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4885mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4886mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4887mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4937clipRect = UIElement.RoundLayoutRect(clipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4958slotClipRect = UIElement.RoundLayoutRect(slotClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4975localClipRect = UIElement.RoundLayoutRect(localClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 5004slotRect = UIElement.RoundLayoutRect(slotRect, dpi.DpiScaleX, dpi.DpiScaleY); 5013localRect = UIElement.RoundLayoutRect(localRect, dpi.DpiScaleX, dpi.DpiScaleY); 5134internal static void InternalSetLayoutTransform(UIElement element, Transform layoutTransform) 5798UIElement uiElement = this._templatedParent as UIElement; 6072UIElement uiElement = modelTreeNode as UIElement; 6379private UIElement _templateChild; // Non-null if this FE has a child that was created as part of a template. 6385internal static DependencyObjectType UIElementDType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\FrameworkTemplate.cs (3)
756else if (dependencyProperty == UIElement.UidProperty) 1123UIElement rootElement = rootObject as UIElement;
System\Windows\Generated\FrameworkContentElement.cs (2)
363UIElement.SynchronizeForceInheritProperties(null, this, null, _parent); 367UIElement.SynchronizeForceInheritProperties(null, this, null, oldParent);
System\Windows\Generated\FrameworkElement.cs (2)
361UIElement.SynchronizeForceInheritProperties(this, null, null, _parent); 365UIElement.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; 876UIElement parentUIElement = GetParentUIElementFromContentElement(fce, ref parentICH); 1431UIElement uiElement = visual as UIElement; 1461if (current is UIElement || current is UIElement3D) 1475DependencyObject parentAsUIElement = parent as UIElement; 1518if (current is UIElement || current is UIElement3D) 1536DependencyObject parentAsUIElement = parent as UIElement; 1630if (current is UIElement || current is UIElement3D) 1645DependencyObject uiElement = e as UIElement; 1698if (current is UIElement || current is UIElement3D) 1711DependencyObject uiElement = e as UIElement; 1923UIElement uie = element as UIElement; 2364UIElement uiElement = element as UIElement; 2402UIElement parentUIElement = GetParentUIElementFromContentElement(ce, ref parentICH); 2724UIElement sourceUIElement = sourceElement as UIElement; 2733UIElement targetUIElement = targetElement as UIElement; 2762UIElement uiElement = sender as UIElement; 2778if (sender is UIElement) 2779((UIElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus)); 2991ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3023currentRectElement 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)
1094((element is UIElement) || 2832UIElement uiel = element as UIElement; 3303UIElement element = CurrentContext.ObjectData as UIElement; 3306SetDependencyValue(element, UIElement.UidProperty, bamlDefAttributeRecord.Value); 4420UIElement 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)
2310UIElement navigatorHost = INavigatorHost as UIElement;
System\Windows\Navigation\NavigationWindow.cs (1)
827/// 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)
1932internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1941UIElement child,
System\Windows\SystemResources.cs (1)
515_presentationCore = typeof(UIElement).Assembly;
System\Windows\Window.cs (7)
82UIElement.ManipulationCompletedEvent, 86UIElement.ManipulationInertiaStartingEvent, 1742/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1861UIElement child = this.GetVisualChild(0) as UIElement; 3397UIElement 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)
1215private void ChangeControlVisibility(UIElement uie) 1228private void ChangeControlVisibility(UIElement uie, bool visibility) 2427UIElement[] children = new UIElement[fixedPage.Children.Count]; 2429foreach (UIElement child in fixedPage.Children) 2436foreach (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)
200UIElement 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; 235UIElement element = pathStart as UIElement;
Microsoft\Windows\Controls\KeyTipAdorner.cs (7)
28public KeyTipAdorner(UIElement adornedElement, 29UIElement placementTarget, 97_keyTipControl.IsEnabled = (bool)keyTipElement.GetValue(UIElement.IsEnabledProperty); 161private UIElement PlacementTarget { get; set; } 192UIElement placementTarget = PlacementTarget; 240UIElement placementTarget = PlacementTarget; 292private double NudgeToRibbonGroupAxis(UIElement placementTarget, double verticalPosition)
Microsoft\Windows\Controls\KeyTipService.cs (6)
934if (!((bool)(exactMatchElement.GetValue(UIElement.IsEnabledProperty)))) 1343DependencyProperty.RegisterAttached("KeyTipAdornerHolder", typeof(UIElement), typeof(KeyTipService), new UIPropertyMetadata(null)); 1353UIElement uie = RibbonHelper.GetContainingUIElement(element); 1375UIElement adornedElement = RibbonHelper.GetContainingUIElement(activatingEventArgs.PlacementTarget ?? element); 1426UIElement 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]; 626public 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; 277UIElement child = (UIElement)children[i]; 315UIElement currentChild = InternalChildren[j]; 329UIElement 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; 1294!((UIElement)(ribbon._itemsPresenterPopup.Parent)).IsArrangeValid)) 2382ContextMenuOriginalSource = e.OriginalSource as UIElement; 2386internal UIElement ContextMenuOriginalSource 2439UIElement originalSource = args.OriginalSource as UIElement; 2442originalSource = FindElementThatCanBeAddedToQAT(originalSource) as UIElement; 2540UIElement originalSource = args.OriginalSource as UIElement; 2633e.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)
544_clonedElement = logicalElement as UIElement; 951UIElement targetFocusOnFalse = null; 1687private UIElement _clonedElement;
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
182internal 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)
2689predictedFocus = RibbonHelper.PredictFocus(focusedElement, direction) as UIElement; 2703UIElement predictedFocus = null; 2710predictedFocus = RibbonHelper.PredictFocus(focusedElement, direction) as UIElement; 2726UIElement focusContainer = RibbonHelper.GetContainingUIElement(focusedElement);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (8)
619UIElement popupChild = group._collapsedGroupPopup.TryGetChild(); 858UIElement contentChild = ribbonControl.ContentChild; 1395UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1437UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1492UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1667UIElement placementTarget = e.PlacementTarget; 1712UIElement ribbonPopupChild = ribbon.ItemsPresenterPopup.TryGetChild(); 1754UIElement 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; 971UIElement uiElement = element as UIElement; 1012public static void HandleLostMouseCapture(UIElement element, 1016UIElement targetCapture, 1017UIElement targetFocus) 1096private static bool ReacquireCapture(UIElement targetCapture, UIElement targetFocus) 1106public static bool IsMousePhysicallyOver(UIElement element) 1126UIElement alternateCaptureHost) 1134UIElement element = sender as UIElement; 1138UIElement source = Mouse.Captured as UIElement; 1152UIElement mouseOverTarget, 1153UIElement alternateMouseOverTarget) 1177public static void AsyncSetFocusAndCapture(UIElement element, 1179UIElement targetCapture, 1180UIElement targetFocus) 1203public static void RestoreFocusAndCapture(UIElement targetCapture, 1204UIElement targetFocus) 1220public static void HandleIsDropDownChanged(UIElement element, 1222UIElement targetCapture, 1223UIElement targetFocus) 1246object sender, KeyEventArgs e, Func<bool> gettor, Action<bool> settor, UIElement targetFocusOnFalse, UIElement targetFocusContainerOnTrue) 1269UIElement uie = sender as UIElement; 1309public static UIElement TryGetChild(this Popup popup) 1314public static bool IsCaptureInSubtree(UIElement element) 1320public static bool IsCaptureInVisualSubtree(UIElement element) 1395UIElement managerElement = starLayoutManager as UIElement; 1521private static void TransferProperty(UIElement original, UIElement clone, DependencyProperty dp, TransferMode mode) 1526private static void TransferProperty(UIElement original, UIElement clone, DependencyProperty originalProperty, DependencyProperty cloneProperty, TransferMode mode) 1848if (original is UIElement || 2485UIElement container = parentItemsControl.ItemContainerGenerator.ContainerFromIndex(i) as UIElement; 2560public static UIElement GetContainingUIElement(DependencyObject element) 2562UIElement uie = element as UIElement; 2601UIElement mediumPlacementTarget) 2648UIElement nonLargePlacementTarget) 2681UIElement mediumPlacementTarget) 2732UIElement mediumPlacementTarget) 2834internal static AutomationPeer CreatePeer(UIElement element) 2943UIElement 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(); 1251UIElement popupChild = _popup.TryGetChild(); 1279_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1330private UIElement _popupRoot; 1424UIElement popupChild = _popup.TryGetChild(); 1440UIElement popupChild = _popup.TryGetChild(); 1529UIElement popupChild = _popup.TryGetChild(); 1676UIElement popupChild = _popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (12)
651_sideBarBorder = GetTemplateChild(SideBarBorderTemplatePartName) as UIElement; 779UIElement popupChild = _popup.TryGetChild(); 831UIElement popupChild = _popup.TryGetChild(); 988UIElement popupChild = _popup.TryGetChild(); 1301UIElement popupChild = _popup.TryGetChild(); 1323_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1584private UIElement _popupRoot; 1585private UIElement _sideBarBorder = null; 1664UIElement popupChild = _popup.TryGetChild(); 1680UIElement popupChild = _popup.TryGetChild(); 1738internal UIElement SideBarBorder 1817UIElement popupChild = _popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (8)
176UIElement popupChild = qat._overflowPopup.TryGetChild(); 354UIElement popupChild = _overflowPopup.TryGetChild(); 366UIElement popupChild = _overflowPopup.TryGetChild(); 384UIElement popupChild = _overflowPopup.TryGetChild(); 445UIElement popupChild = _overflowPopup.TryGetChild(); 584UIElement contentChild = ribbonControl.ContentChild; 605UIElement contentChild = ribbonControl.ContentChild; 665UIElement 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)
405UIElement 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)
548/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)