2 types derived from UIElement
PresentationFramework (2)
System\windows\Documents\CaretElement.cs (1)
1191private class CaretSubElement : UIElement
System\Windows\FrameworkElement.cs (1)
93public partial class FrameworkElement : UIElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
2 instantiations of UIElement
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11871DefaultConstructor = delegate () { return new System.Windows.UIElement(); },
System\Windows\Markup\KnownTypes.cs (1)
1622case KnownElements.UIElement: o = new System.Windows.UIElement(); break;
2748 references to UIElement
Microsoft.CodeAnalysis.EditorFeatures.Wpf (11)
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)
178public static void UpdateColor(TextFormattingRunProperties format, UIElement adornment)
QuickInfo\OnTheFlyDocsView.xaml.cs (5)
269public UIElement OnDemandLinkContent { get; } 271public UIElement LoadingContent { get; } 273public UIElement ResultsContent { get; } 317private UIElement ToUIElement(object model) 318=> _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)
58public 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)
342image.SetBinding(CrispImage.GrayscaleProperty, new Binding(UIElement.IsEnabledProperty.Name)
PresentationCore (1195)
MS\Internal\Automation\ElementUtil.cs (6)
112internal static Rect GetLocalRect( UIElement element ) 127internal static Rect GetScreenRect( IntPtr hwnd, UIElement el ) 167UIElement el = visual as UIElement; 259if ( !(sibling is UIElement) || (((UIElement)sibling).Visibility == Visibility.Visible ) )
MS\Internal\Automation\SynchronizedInputAdaptor.cs (4)
41UIElement e = _owner as UIElement; 75UIElement e = _owner as UIElement;
MS\Internal\DeferredElementTreeState.cs (2)
92UIElement e = element as UIElement;
MS\Internal\DpiUtil\DpiUtil.cs (6)
176lock (UIElement.DpiLock) 180int sizeOfList = UIElement.DpiScaleXValues.Count; 184if (UIElement.DpiScaleXValues[index] == pixelsPerInchX / DpiUtil.DefaultPixelsPerInch && 185UIElement.DpiScaleYValues[index] == pixelsPerInchY / DpiUtil.DefaultPixelsPerInch) 194UIElement.DpiScaleXValues.Add(pixelsPerInchX / DpiUtil.DefaultPixelsPerInch); 195UIElement.DpiScaleYValues.Add(pixelsPerInchY / DpiUtil.DefaultPixelsPerInch);
MS\Internal\DpiUtil\DpiUtil+SystemDpiHelper.cs (6)
67lock (UIElement.DpiLock) 69return new DpiScale2(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 79lock(UIElement.DpiLock) 81UIElement.DpiScaleXValues.Insert(0, systemDpiScale.DpiScaleX); 82UIElement.DpiScaleYValues.Insert(0, systemDpiScale.DpiScaleY);
MS\Internal\Interop\TipTsfHelper.cs (2)
162UIElement uiElement; 167if ((uiElement = focusedObject as UIElement) != null)
MS\Internal\SynchronizedInputHelper.cs (5)
17UIElement e = o as UIElement; 133UIElement e = logicalParent as UIElement; 292if (InputManager.ListeningElement is UIElement e)
MS\Internal\UIElementHelper.cs (15)
18UIElement oAsUIElement = o as UIElement; 33UIElement oAsUIElement = o as UIElement; 48UIElement uie; 52if ((uie = o as UIElement) != null) 68internal static UIElement GetContainingUIElement2D(DependencyObject reference) 70UIElement element = null; 74element = reference as UIElement; 112UIElement childAsUIElement = child as UIElement; 132return (o is UIElement or UIElement3D); 137UIElement e = null; 178out UIElement e, 188e = o as UIElement;
System\Windows\Automation\AutomationProperties.cs (5)
343typeof(UIElement), 345new UIPropertyMetadata((UIElement)null)); 350public static void SetLabeledBy(DependencyObject element, UIElement value) 360public static UIElement GetLabeledBy(DependencyObject element) 364return ((UIElement)element.GetValue(LabeledByProperty));
System\Windows\Automation\Peers\AutomationPeer.cs (2)
409UIElement uie = focusedElement as UIElement;
System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
42/// <seealso cref="UIElement.OnCreateAutomationPeer"/> virtual callback. If FrameworkContentElement does not
System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (1)
15public GenericRootAutomationPeer(UIElement owner): base(owner)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (7)
92&& child is UIElement 93&& (peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)child)) != null ) 215UIElement containingUIElement = GetContainingUIElement(_owner); 237private static UIElement GetContainingUIElement(DependencyObject reference) 239UIElement element = null; 243element = reference as UIElement; 331UIElement element = AutomationProperties.GetLabeledBy(_owner);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (12)
15public UIElementAutomationPeer(UIElement owner) 22public UIElement Owner 37/// <seealso cref="UIElement.OnCreateAutomationPeer"/> virtual callback. If UIElement does not 41public static AutomationPeer CreatePeerForElement(UIElement element) 49public static AutomationPeer FromElement(UIElement element) 110&& child is UIElement 111&& (peer = CreatePeerForElement((UIElement)child)) != null ) 258internal static Rect CalculateVisibleBoundingRect(UIElement owner) 378UIElement element = AutomationProperties.GetLabeledBy(_owner); 419UIElement element = _owner.PositionAndSizeOfSetController; 454UIElement element = _owner.PositionAndSizeOfSetController; 523private UIElement _owner;
System\Windows\ContentElement.cs (15)
29UIElement.RegisterEvents(typeof(ContentElement)); 32UIElement.IsFocusedPropertyKey.OverrideMetadata( 548UIElement.IsFocusedProperty.AddOwner( 595UIElement.IsEnabledProperty.AddOwner( 617add { EventHandlersStoreAdd(UIElement.IsEnabledChangedKey, value); } 618remove { EventHandlersStoreRemove(UIElement.IsEnabledChangedKey, value); } 683ce.RaiseDependencyPropertyChanged(UIElement.IsEnabledChangedKey, e); 703UIElement.FocusableProperty.AddOwner( 723add {EventHandlersStoreAdd(UIElement.FocusableChangedKey, value);} 724remove {EventHandlersStoreRemove(UIElement.FocusableChangedKey, value);} 732ce.RaiseDependencyPropertyChanged(UIElement.FocusableChangedKey, e); 787UIElement.AllowDropProperty.AddOwner( 946internal static readonly UncommonField<EventHandlersStore> EventHandlersStoreField = UIElement.EventHandlersStoreField; 947internal static readonly UncommonField<InputBindingCollection> InputBindingCollectionField = UIElement.InputBindingCollectionField; 948internal static readonly UncommonField<CommandBindingCollection> CommandBindingCollectionField = UIElement.CommandBindingCollectionField;
System\Windows\dataobject.cs (10)
400/// <param name="element"><see cref="UIElement"/> or <see cref="ContentElement"/> that listens to this event.</param> 420UIElement.AddHandler(element, CopyingEvent, handler); 430UIElement.RemoveHandler(element, CopyingEvent, handler); 436/// <param name="element"><see cref="UIElement"/> or <see cref="ContentElement"/> that listens to this event.</param> 469UIElement.AddHandler(element, PastingEvent, handler); 475/// <param name="element"><see cref="UIElement"/> or <see cref="ContentElement"/> that listens to this event.</param> 479UIElement.RemoveHandler(element, PastingEvent, handler); 500UIElement.AddHandler(element, SettingDataEvent, handler); 506/// <param name="element"><see cref="UIElement"/> or <see cref="ContentElement"/> that listens to this event.</param> 510UIElement.RemoveHandler(element, SettingDataEvent, handler);
System\Windows\DpiScale.cs (1)
13/// or <see cref="System.Windows.UIElement"/> is rendered.
System\Windows\DragDrop.cs (42)
51UIElement.AddHandler(element, PreviewQueryContinueDragEvent, handler); 61UIElement.RemoveHandler(element, PreviewQueryContinueDragEvent, handler); 76UIElement.AddHandler(element, QueryContinueDragEvent, handler); 86UIElement.RemoveHandler(element, QueryContinueDragEvent, handler); 101UIElement.AddHandler(element, PreviewGiveFeedbackEvent, handler); 111UIElement.RemoveHandler(element, PreviewGiveFeedbackEvent, handler); 126UIElement.AddHandler(element, GiveFeedbackEvent, handler); 136UIElement.RemoveHandler(element, GiveFeedbackEvent, handler); 151UIElement.AddHandler(element, PreviewDragEnterEvent, handler); 161UIElement.RemoveHandler(element, PreviewDragEnterEvent, handler); 176UIElement.AddHandler(element, DragEnterEvent, handler); 186UIElement.RemoveHandler(element, DragEnterEvent, handler); 201UIElement.AddHandler(element, PreviewDragOverEvent, handler); 211UIElement.RemoveHandler(element, PreviewDragOverEvent, handler); 226UIElement.AddHandler(element, DragOverEvent, handler); 236UIElement.RemoveHandler(element, DragOverEvent, handler); 251UIElement.AddHandler(element, PreviewDragLeaveEvent, handler); 261UIElement.RemoveHandler(element, PreviewDragLeaveEvent, handler); 276UIElement.AddHandler(element, DragLeaveEvent, handler); 286UIElement.RemoveHandler(element, DragLeaveEvent, handler); 301UIElement.AddHandler(element, PreviewDropEvent, handler); 311UIElement.RemoveHandler(element, PreviewDropEvent, handler); 326UIElement.AddHandler(element, DropEvent, handler); 336UIElement.RemoveHandler(element, DropEvent, handler); 379if (dragSource is UIElement) 381((UIElement)dragSource).RaiseEvent(args); 410if (dragSource is UIElement) 412((UIElement)dragSource).RaiseEvent(args); 695if (_dragSource is UIElement) 697((UIElement)_dragSource).RaiseEvent(args); 718if (_dragSource is UIElement) 720((UIElement)_dragSource).RaiseEvent(args); 752if (_dragSource is UIElement) 754((UIElement)_dragSource).RaiseEvent(args); 775if (_dragSource is UIElement) 777((UIElement)_dragSource).RaiseEvent(args); 1154if (target is UIElement) 1156((UIElement)target).RaiseEvent(dragEventArgs); 1178if (target is UIElement) 1180((UIElement)target).RaiseEvent(dragEventArgs); 1304UIElement targetUIElement; 1311targetUIElement = target as UIElement;
System\Windows\EventManager.cs (2)
108/// <see cref="UIElement.AddHandler(RoutedEvent, Delegate)"/> <para/> 155if (!typeof(UIElement).IsAssignableFrom(classType) &&
System\Windows\FocusWithinProperty.cs (3)
15UIElement.IsKeyboardFocusWithinPropertyKey, 23internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 27UIElement.IsKeyboardFocusWithinProperty,
System\Windows\Generated\ContentElement.cs (80)
367UIElement.BuildRouteHelper(this, route, args); 390UIElement.RaiseEventImpl(this, e); 409UIElement.RaiseEventImpl(this, args); 422UIElement.RaiseEventImpl(this, args); 723UIElement.IsMouseDirectlyOverPropertyKey.OverrideMetadata( 729UIElement.IsMouseOverPropertyKey.OverrideMetadata( 734UIElement.IsStylusOverPropertyKey.OverrideMetadata( 739UIElement.IsKeyboardFocusWithinPropertyKey.OverrideMetadata( 744UIElement.IsMouseCapturedPropertyKey.OverrideMetadata( 750UIElement.IsMouseCaptureWithinPropertyKey.OverrideMetadata( 755UIElement.IsStylusDirectlyOverPropertyKey.OverrideMetadata( 761UIElement.IsStylusCapturedPropertyKey.OverrideMetadata( 767UIElement.IsStylusCaptureWithinPropertyKey.OverrideMetadata( 772UIElement.IsKeyboardFocusedPropertyKey.OverrideMetadata( 778UIElement.AreAnyTouchesDirectlyOverPropertyKey.OverrideMetadata( 783UIElement.AreAnyTouchesOverPropertyKey.OverrideMetadata( 788UIElement.AreAnyTouchesCapturedPropertyKey.OverrideMetadata( 793UIElement.AreAnyTouchesCapturedWithinPropertyKey.OverrideMetadata( 880public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 887add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 888remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 899public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 906add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 907remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 918public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 925add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 926remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 937public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 944add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 945remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 956public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 963add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 964remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 975public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 982add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 983remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 994public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 1001add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 1002remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 1013public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 1020add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 1021remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 2239public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 2251add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 2252remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 2268RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2274public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2279public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2284public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2291add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2292remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2308RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2314public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2326add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2327remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2343RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2349public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2356add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2357remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2373RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2379public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2391add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2392remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2408RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2414public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2426add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2427remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2443RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2449public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2456add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2457remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2473RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2479public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2491add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2492remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2508RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2514public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2519public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2524public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2529public static readonly DependencyProperty AreAnyTouchesCapturedWithinProperty = UIElement.AreAnyTouchesCapturedWithinProperty.AddOwner(_typeofThis);
System\Windows\Generated\UIElement.cs (293)
22static private readonly Type _typeofThis = typeof(UIElement); 367UIElement.BuildRouteHelper(this, route, args); 376/// <see cref="UIElement.BuildRoute"/> and 390UIElement.RaiseEventImpl(this, e); 409UIElement.RaiseEventImpl(this, args); 422UIElement.RaiseEventImpl(this, args); 724EventManager.RegisterClassHandler(type, Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseDownThunk), true); 725EventManager.RegisterClassHandler(type, Mouse.MouseDownEvent, new MouseButtonEventHandler(UIElement.OnMouseDownThunk), true); 726EventManager.RegisterClassHandler(type, Mouse.PreviewMouseUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseUpThunk), true); 727EventManager.RegisterClassHandler(type, Mouse.MouseUpEvent, new MouseButtonEventHandler(UIElement.OnMouseUpThunk), true); 728EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonDownThunk), false); 729EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonDownThunk), false); 730EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonUpThunk), false); 731EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonUpThunk), false); 732EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonDownThunk), false); 733EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonDownThunk), false); 734EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonUpThunk), false); 735EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonUpThunk), false); 736EventManager.RegisterClassHandler(type, Mouse.PreviewMouseMoveEvent, new MouseEventHandler(UIElement.OnPreviewMouseMoveThunk), false); 737EventManager.RegisterClassHandler(type, Mouse.MouseMoveEvent, new MouseEventHandler(UIElement.OnMouseMoveThunk), false); 738EventManager.RegisterClassHandler(type, Mouse.PreviewMouseWheelEvent, new MouseWheelEventHandler(UIElement.OnPreviewMouseWheelThunk), false); 739EventManager.RegisterClassHandler(type, Mouse.MouseWheelEvent, new MouseWheelEventHandler(UIElement.OnMouseWheelThunk), false); 740EventManager.RegisterClassHandler(type, Mouse.MouseEnterEvent, new MouseEventHandler(UIElement.OnMouseEnterThunk), false); 741EventManager.RegisterClassHandler(type, Mouse.MouseLeaveEvent, new MouseEventHandler(UIElement.OnMouseLeaveThunk), false); 742EventManager.RegisterClassHandler(type, Mouse.GotMouseCaptureEvent, new MouseEventHandler(UIElement.OnGotMouseCaptureThunk), false); 743EventManager.RegisterClassHandler(type, Mouse.LostMouseCaptureEvent, new MouseEventHandler(UIElement.OnLostMouseCaptureThunk), false); 744EventManager.RegisterClassHandler(type, Mouse.QueryCursorEvent, new QueryCursorEventHandler(UIElement.OnQueryCursorThunk), false); 745EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 746EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 747EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 748EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 749EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 750EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 751EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 752EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 753EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 754EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 755EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 756EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 757EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 758EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 759EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 760EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 761EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 762EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 763EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 764EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 765EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 766EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 767EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyDownEvent, new KeyEventHandler(UIElement.OnPreviewKeyDownThunk), false); 768EventManager.RegisterClassHandler(type, Keyboard.KeyDownEvent, new KeyEventHandler(UIElement.OnKeyDownThunk), false); 769EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyUpEvent, new KeyEventHandler(UIElement.OnPreviewKeyUpThunk), false); 770EventManager.RegisterClassHandler(type, Keyboard.KeyUpEvent, new KeyEventHandler(UIElement.OnKeyUpThunk), false); 771EventManager.RegisterClassHandler(type, Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewGotKeyboardFocusThunk), false); 772EventManager.RegisterClassHandler(type, Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnGotKeyboardFocusThunk), false); 773EventManager.RegisterClassHandler(type, Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewLostKeyboardFocusThunk), false); 774EventManager.RegisterClassHandler(type, Keyboard.LostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnLostKeyboardFocusThunk), false); 775EventManager.RegisterClassHandler(type, TextCompositionManager.PreviewTextInputEvent, new TextCompositionEventHandler(UIElement.OnPreviewTextInputThunk), false); 776EventManager.RegisterClassHandler(type, TextCompositionManager.TextInputEvent, new TextCompositionEventHandler(UIElement.OnTextInputThunk), false); 777EventManager.RegisterClassHandler(type, CommandManager.PreviewExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnPreviewExecutedThunk), false); 778EventManager.RegisterClassHandler(type, CommandManager.ExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnExecutedThunk), false); 779EventManager.RegisterClassHandler(type, CommandManager.PreviewCanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnPreviewCanExecuteThunk), false); 780EventManager.RegisterClassHandler(type, CommandManager.CanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnCanExecuteThunk), false); 781EventManager.RegisterClassHandler(type, CommandDevice.CommandDeviceEvent, new CommandDeviceEventHandler(UIElement.OnCommandDeviceThunk), false); 782EventManager.RegisterClassHandler(type, DragDrop.PreviewQueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnPreviewQueryContinueDragThunk), false); 783EventManager.RegisterClassHandler(type, DragDrop.QueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnQueryContinueDragThunk), false); 784EventManager.RegisterClassHandler(type, DragDrop.PreviewGiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnPreviewGiveFeedbackThunk), false); 785EventManager.RegisterClassHandler(type, DragDrop.GiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnGiveFeedbackThunk), false); 786EventManager.RegisterClassHandler(type, DragDrop.PreviewDragEnterEvent, new DragEventHandler(UIElement.OnPreviewDragEnterThunk), false); 787EventManager.RegisterClassHandler(type, DragDrop.DragEnterEvent, new DragEventHandler(UIElement.OnDragEnterThunk), false); 788EventManager.RegisterClassHandler(type, DragDrop.PreviewDragOverEvent, new DragEventHandler(UIElement.OnPreviewDragOverThunk), false); 789EventManager.RegisterClassHandler(type, DragDrop.DragOverEvent, new DragEventHandler(UIElement.OnDragOverThunk), false); 790EventManager.RegisterClassHandler(type, DragDrop.PreviewDragLeaveEvent, new DragEventHandler(UIElement.OnPreviewDragLeaveThunk), false); 791EventManager.RegisterClassHandler(type, DragDrop.DragLeaveEvent, new DragEventHandler(UIElement.OnDragLeaveThunk), false); 792EventManager.RegisterClassHandler(type, DragDrop.PreviewDropEvent, new DragEventHandler(UIElement.OnPreviewDropThunk), false); 793EventManager.RegisterClassHandler(type, DragDrop.DropEvent, new DragEventHandler(UIElement.OnDropThunk), false); 794EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 795EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 796EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 797EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 798EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 799EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 800EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 801EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 802EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 803EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 812UIElement uie = sender as UIElement; 834UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 846UIElement uie = sender as UIElement; 868UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 875UIElement uie = sender as UIElement; 897UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 904UIElement uie = sender as UIElement; 926UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 933UIElement uie = sender as UIElement; 958UIElement uie = sender as UIElement; 983UIElement uie = sender as UIElement; 1008UIElement uie = sender as UIElement; 1033UIElement uie = sender as UIElement; 1058UIElement uie = sender as UIElement; 1083UIElement uie = sender as UIElement; 1108UIElement uie = sender as UIElement; 1133UIElement uie = sender as UIElement; 1158UIElement uie = sender as UIElement; 1183UIElement uie = sender as UIElement; 1212UIElement uie = sender as UIElement; 1238UIElement uie = sender as UIElement; 1263UIElement uie = sender as UIElement; 1288UIElement uie = sender as UIElement; 1313UIElement uie = sender as UIElement; 1338UIElement uie = sender as UIElement; 1363UIElement uie = sender as UIElement; 1388UIElement uie = sender as UIElement; 1413UIElement uie = sender as UIElement; 1438UIElement uie = sender as UIElement; 1463UIElement uie = sender as UIElement; 1488UIElement uie = sender as UIElement; 1513UIElement uie = sender as UIElement; 1538UIElement uie = sender as UIElement; 1563UIElement uie = sender as UIElement; 1588UIElement uie = sender as UIElement; 1613UIElement uie = sender as UIElement; 1638UIElement uie = sender as UIElement; 1663UIElement uie = sender as UIElement; 1688UIElement uie = sender as UIElement; 1713UIElement uie = sender as UIElement; 1738UIElement uie = sender as UIElement; 1763UIElement uie = sender as UIElement; 1788UIElement uie = sender as UIElement; 1813UIElement uie = sender as UIElement; 1838UIElement uie = sender as UIElement; 1863UIElement uie = sender as UIElement; 1888UIElement uie = sender as UIElement; 1913UIElement uie = sender as UIElement; 1942UIElement uie = sender as UIElement; 1968UIElement uie = sender as UIElement; 1993UIElement uie = sender as UIElement; 2018UIElement uie = sender as UIElement; 2043UIElement uie = sender as UIElement; 2068UIElement uie = sender as UIElement; 2093UIElement uie = sender as UIElement; 2118UIElement uie = sender as UIElement; 2143UIElement uie = sender as UIElement; 2208UIElement uie = sender as UIElement; 2233UIElement uie = sender as UIElement; 2258UIElement uie = sender as UIElement; 2283UIElement uie = sender as UIElement; 2308UIElement uie = sender as UIElement; 2333UIElement uie = sender as UIElement; 2358UIElement uie = sender as UIElement; 2383UIElement uie = sender as UIElement; 2408UIElement uie = sender as UIElement; 2433UIElement uie = sender as UIElement; 2458UIElement uie = sender as UIElement; 2483UIElement uie = sender as UIElement; 2508UIElement uie = sender as UIElement; 2533UIElement uie = sender as UIElement; 2558UIElement uie = sender as UIElement; 2583UIElement uie = sender as UIElement; 2608UIElement uie = sender as UIElement; 2633UIElement uie = sender as UIElement; 2658UIElement uie = sender as UIElement; 2683UIElement uie = sender as UIElement; 2708UIElement uie = sender as UIElement; 2733UIElement uie = sender as UIElement; 2840add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 2841remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 2859add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 2860remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 2878add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 2879remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 2897add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 2898remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 2916add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 2917remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 2935add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 2936remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 2954add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 2955remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 2973add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 2974remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 4209((UIElement) d).RaiseIsMouseDirectlyOverChanged(e); 4223add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 4224remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 4240RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 4305add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4306remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4322RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 4345((UIElement) d).RaiseIsMouseCapturedChanged(e); 4359add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 4360remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 4376RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 4407add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 4408remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 4424RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 4447((UIElement) d).RaiseIsStylusDirectlyOverChanged(e); 4461add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 4462remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 4478RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 4501((UIElement) d).RaiseIsStylusCapturedChanged(e); 4515add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 4516remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 4532RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 4563add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 4564remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 4580RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 4603((UIElement) d).RaiseIsKeyboardFocusedChanged(e); 4617add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 4618remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 4634RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args);
System\Windows\Generated\UIElement3D.cs (66)
173UIElement.BuildRouteHelper(this, route, args); 196UIElement.RaiseEventImpl(this, e); 215UIElement.RaiseEventImpl(this, args); 228UIElement.RaiseEventImpl(this, args); 610public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 617add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 618remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 629public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 636add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 637remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 648public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 655add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 656remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 667public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 674add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 675remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 686public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 693add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 694remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 705public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 712add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 713remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 724public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 731add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 732remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 743public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 750add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 751remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 1969public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 1981add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 1982remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 1998RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2004public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2009public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2014public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2021add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2022remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2038RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2044public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2056add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2057remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2073RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2079public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2086add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2087remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2103RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2109public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2121add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2122remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2138RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2144public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2156add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2157remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2173RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2179public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2186add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2187remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2203RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2209public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2221add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2222remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2238RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2244public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2249public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2254public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2259public static readonly DependencyProperty AreAnyTouchesCapturedWithinProperty = UIElement.AreAnyTouchesCapturedWithinProperty.AddOwner(_typeofThis);
System\Windows\GlobalEventManager.cs (2)
57typeof(UIElement).IsAssignableFrom(classType) || 405if (dType.SystemType == typeof(UIElement) || dType.SystemType == typeof(ContentElement))
System\Windows\IContentHost.cs (1)
70void OnChildDesiredSizeChanged(UIElement child);
System\Windows\Input\AccessKeyManager.cs (11)
145UIElement.AddHandler(element, AccessKeyPressedEvent, handler); 155UIElement.RemoveHandler(element, AccessKeyPressedEvent, handler); 233UIElement invokeUIElement = null; 239UIElement target = targets[i] as UIElement; 501UIElement uiElem = element as UIElement; 528return ((bool)element.GetValue(UIElement.IsEnabledProperty)); 546public UIElement target; 785public UIElement Target 820private UIElement _target;
System\Windows\Input\Command\CommandManager.cs (14)
46public static void AddPreviewExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 59public static void RemovePreviewExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 81public static void AddExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 94public static void RemoveExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 116public static void AddPreviewCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 129public static void RemovePreviewCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 151public static void AddCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 164public static void RemoveCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 282bool isUIElement = targetElementAsDO is UIElement; 290localInputBindings = ((UIElement)targetElement).InputBindingsInternal; 344localCommandBindings = ((UIElement)targetElement).CommandBindingsInternal; 537UIElement uiElement => uiElement.CommandBindingsInternal, 701UIElement element = childScope as UIElement;
System\Windows\Input\Command\RoutedCommand.cs (3)
348if (targetAsDO is UIElement uie) 376UIElement targetUIElement = target as UIElement;
System\Windows\Input\FocusManager.cs (8)
34UIElement.AddHandler(element, GotFocusEvent, handler); 44UIElement.RemoveHandler(element, GotFocusEvent, handler); 59UIElement.AddHandler(element, LostFocusEvent, handler); 69UIElement.RemoveHandler(element, LostFocusEvent, handler); 210oldVisual?.ClearValue(UIElement.IsFocusedPropertyKey); 218newVisual.SetValue(UIElement.IsFocusedPropertyKey, BooleanBoxes.TrueBox); 336UIElement uiElement = d as UIElement;
System\Windows\Input\InputElement.cs (5)
23return o is UIElement or ContentElement or UIElement3D; 34if(o is UIElement) 94if(o is UIElement uiElement) 141if(o is UIElement uiElement) 351private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\Input\InputManager.cs (1)
780if (eventSource is UIElement e)
System\Windows\Input\InputMethod.cs (4)
454public void ShowConfigureUI(UIElement element) 490public void ShowRegisterWordUI(UIElement element, string registeredText) 1480private bool _ShowConfigureUI(UIElement element, bool fShow) 1533private bool _ShowRegisterWordUI(UIElement element, bool fShow, string strRegister)
System\Windows\Input\Keyboard.cs (25)
28UIElement.AddHandler(element, PreviewKeyDownEvent, handler); 38UIElement.RemoveHandler(element, PreviewKeyDownEvent, handler); 53UIElement.AddHandler(element, KeyDownEvent, handler); 63UIElement.RemoveHandler(element, KeyDownEvent, handler); 78UIElement.AddHandler(element, PreviewKeyUpEvent, handler); 88UIElement.RemoveHandler(element, PreviewKeyUpEvent, handler); 103UIElement.AddHandler(element, KeyUpEvent, handler); 113UIElement.RemoveHandler(element, KeyUpEvent, handler); 128UIElement.AddHandler(element, PreviewGotKeyboardFocusEvent, handler); 138UIElement.RemoveHandler(element, PreviewGotKeyboardFocusEvent, handler); 153UIElement.AddHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler); 163UIElement.RemoveHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler); 178UIElement.AddHandler(element, KeyboardInputProviderAcquireFocusEvent, handler); 188UIElement.RemoveHandler(element, KeyboardInputProviderAcquireFocusEvent, handler); 203UIElement.AddHandler(element, GotKeyboardFocusEvent, handler); 213UIElement.RemoveHandler(element, GotKeyboardFocusEvent, handler); 228UIElement.AddHandler(element, PreviewLostKeyboardFocusEvent, handler); 238UIElement.RemoveHandler(element, PreviewLostKeyboardFocusEvent, handler); 253UIElement.AddHandler(element, LostKeyboardFocusEvent, handler); 263UIElement.RemoveHandler(element, LostKeyboardFocusEvent, handler); 381UIElement uie = element as UIElement; 390if(!(bool)element.GetValue(UIElement.IsEnabledProperty)) 401BaseValueSourceInternal valueSource = element.GetValueSource(UIElement.FocusableProperty, null, out hasModifiers); 402bool focusable = (bool) element.GetValue(UIElement.FocusableProperty);
System\Windows\Input\KeyboardDevice.cs (6)
386if (o is UIElement uie) 412if (o is UIElement uie) 440UIElement.FocusWithinProperty.OnOriginValueChanged(oldFocus, _focus, ref _focusTreeState); 446o.SetValue(UIElement.IsKeyboardFocusedPropertyKey, false); // Same property for ContentElements 452o.SetValue(UIElement.IsKeyboardFocusedPropertyKey, true); // Same property for ContentElements 653UIElement.FocusWithinProperty.OnOriginValueChanged(_focus, _focus, ref _focusTreeState);
System\Windows\Input\Manipulation.cs (18)
31public static bool IsManipulationActive(UIElement element) 38private static ManipulationDevice GetActiveManipulationDevice(UIElement element) 56public static void StartInertia(UIElement element) 68public static void CompleteManipulation(UIElement element) 77internal static bool TryCompleteManipulation(UIElement element) 94public static void SetManipulationMode(UIElement element, ManipulationModes mode) 114public static ManipulationModes GetManipulationMode(UIElement element) 135public static void SetManipulationContainer(UIElement element, IInputElement container) 156public static IInputElement GetManipulationContainer(UIElement element) 174public static void SetManipulationPivot(UIElement element, ManipulationPivot pivot) 194public static ManipulationPivot GetManipulationPivot(UIElement element) 213public static void AddManipulator(UIElement element, IManipulator manipulator) 232public static void RemoveManipulator(UIElement element, IManipulator manipulator) 243internal static bool TryRemoveManipulator(UIElement element, IManipulator manipulator) 261public static void SetManipulationParameter(UIElement element, ManipulationParameters2D parameter) 292internal static UIElement FindManipulationParent(Visual visual) 296UIElement element = visual as UIElement;
System\Windows\Input\ManipulationDevice.cs (7)
23private ManipulationDevice(UIElement element) : base() 72internal static ManipulationDevice AddManipulationDevice(UIElement element) 83_manipulationDevices = new Dictionary<UIElement, ManipulationDevice>(2); 101internal static ManipulationDevice GetManipulationDevice(UIElement element) 243foreach (UIElement element in _manipulationDevices.Keys) 504private UIElement _target; 517private static Dictionary<UIElement, ManipulationDevice> _manipulationDevices;
System\Windows\Input\ManipulationLogic.cs (10)
526UIElement uie = _currentContainer as UIElement; 577_root = presentationSource.RootVisual as UIElement; 616UIElement container = _currentContainer as UIElement; 625UIElement container = _currentContainer as UIElement; 662UIElement container = _currentContainer as UIElement; 735private UIElement _root;
System\Windows\Input\Mouse.cs (30)
28UIElement.AddHandler(element, PreviewMouseMoveEvent, handler); 38UIElement.RemoveHandler(element, PreviewMouseMoveEvent, handler); 53UIElement.AddHandler(element, MouseMoveEvent, handler); 63UIElement.RemoveHandler(element, MouseMoveEvent, handler); 78UIElement.AddHandler(element, PreviewMouseDownOutsideCapturedElementEvent, handler); 88UIElement.RemoveHandler(element, PreviewMouseDownOutsideCapturedElementEvent, handler); 103UIElement.AddHandler(element, PreviewMouseUpOutsideCapturedElementEvent, handler); 113UIElement.RemoveHandler(element, PreviewMouseUpOutsideCapturedElementEvent, handler); 128UIElement.AddHandler(element, PreviewMouseDownEvent, handler); 138UIElement.RemoveHandler(element, PreviewMouseDownEvent, handler); 153UIElement.AddHandler(element, MouseDownEvent, handler); 163UIElement.RemoveHandler(element, MouseDownEvent, handler); 178UIElement.AddHandler(element, PreviewMouseUpEvent, handler); 188UIElement.RemoveHandler(element, PreviewMouseUpEvent, handler); 203UIElement.AddHandler(element, MouseUpEvent, handler); 213UIElement.RemoveHandler(element, MouseUpEvent, handler); 228UIElement.AddHandler(element, PreviewMouseWheelEvent, handler); 238UIElement.RemoveHandler(element, PreviewMouseWheelEvent, handler); 253UIElement.AddHandler(element, MouseWheelEvent, handler); 263UIElement.RemoveHandler(element, MouseWheelEvent, handler); 278UIElement.AddHandler(element, MouseEnterEvent, handler); 288UIElement.RemoveHandler(element, MouseEnterEvent, handler); 303UIElement.AddHandler(element, MouseLeaveEvent, handler); 313UIElement.RemoveHandler(element, MouseLeaveEvent, handler); 328UIElement.AddHandler(element, GotMouseCaptureEvent, handler); 338UIElement.RemoveHandler(element, GotMouseCaptureEvent, handler); 353UIElement.AddHandler(element, LostMouseCaptureEvent, handler); 363UIElement.RemoveHandler(element, LostMouseCaptureEvent, handler); 378UIElement.AddHandler(element, QueryCursorEvent, handler); 388UIElement.RemoveHandler(element, QueryCursorEvent, handler);
System\Windows\Input\MouseDevice.cs (21)
305if (element is UIElement) 307UIElement e = element as UIElement; 650UIElement.MouseOverProperty.OnOriginValueChanged(_mouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState); 703if (dependencyObject is UIElement uie) 742UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(_mouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState); 748private bool ValidateUIElementForCapture(UIElement element) 961if (o is UIElement uie) 986if (o is UIElement uie) 1013UIElement.MouseOverProperty.OnOriginValueChanged(oldMouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState); 1019o.SetValue(UIElement.IsMouseDirectlyOverPropertyKey, false); // Same property for ContentElements 1024o.SetValue(UIElement.IsMouseDirectlyOverPropertyKey, true); // Same property for ContentElements 1055if (o is UIElement uie) 1080if (o is UIElement uie) 1107UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(oldMouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState); 1113o.SetValue(UIElement.IsMouseCapturedPropertyKey, false); // Same property for ContentElements 1118o.SetValue(UIElement.IsMouseCapturedPropertyKey, true); // Same property for ContentElements 1583UIElement eTest = null; 1589eTest = ieTest as UIElement; 2155UIElement root = inputSource.RootVisual as UIElement;
System\Windows\Input\Stylus\Common\Stylus.cs (44)
26UIElement.AddHandler(element, PreviewStylusDownEvent, handler); 36UIElement.RemoveHandler(element, PreviewStylusDownEvent, handler); 51UIElement.AddHandler(element, StylusDownEvent, handler); 61UIElement.RemoveHandler(element, StylusDownEvent, handler); 76UIElement.AddHandler(element, PreviewStylusUpEvent, handler); 86UIElement.RemoveHandler(element, PreviewStylusUpEvent, handler); 101UIElement.AddHandler(element, StylusUpEvent, handler); 111UIElement.RemoveHandler(element, StylusUpEvent, handler); 126UIElement.AddHandler(element, PreviewStylusMoveEvent, handler); 136UIElement.RemoveHandler(element, PreviewStylusMoveEvent, handler); 151UIElement.AddHandler(element, StylusMoveEvent, handler); 161UIElement.RemoveHandler(element, StylusMoveEvent, handler); 176UIElement.AddHandler(element, PreviewStylusInAirMoveEvent, handler); 186UIElement.RemoveHandler(element, PreviewStylusInAirMoveEvent, handler); 201UIElement.AddHandler(element, StylusInAirMoveEvent, handler); 211UIElement.RemoveHandler(element, StylusInAirMoveEvent, handler); 226UIElement.AddHandler(element, StylusEnterEvent, handler); 236UIElement.RemoveHandler(element, StylusEnterEvent, handler); 251UIElement.AddHandler(element, StylusLeaveEvent, handler); 261UIElement.RemoveHandler(element, StylusLeaveEvent, handler); 276UIElement.AddHandler(element, PreviewStylusInRangeEvent, handler); 286UIElement.RemoveHandler(element, PreviewStylusInRangeEvent, handler); 301UIElement.AddHandler(element, StylusInRangeEvent, handler); 311UIElement.RemoveHandler(element, StylusInRangeEvent, handler); 326UIElement.AddHandler(element, PreviewStylusOutOfRangeEvent, handler); 336UIElement.RemoveHandler(element, PreviewStylusOutOfRangeEvent, handler); 351UIElement.AddHandler(element, StylusOutOfRangeEvent, handler); 361UIElement.RemoveHandler(element, StylusOutOfRangeEvent, handler); 376UIElement.AddHandler(element, PreviewStylusSystemGestureEvent, handler); 386UIElement.RemoveHandler(element, PreviewStylusSystemGestureEvent, handler); 401UIElement.AddHandler(element, StylusSystemGestureEvent, handler); 411UIElement.RemoveHandler(element, StylusSystemGestureEvent, handler); 426UIElement.AddHandler(element, GotStylusCaptureEvent, handler); 436UIElement.RemoveHandler(element, GotStylusCaptureEvent, handler); 451UIElement.AddHandler(element, LostStylusCaptureEvent, handler); 461UIElement.RemoveHandler(element, LostStylusCaptureEvent, handler); 476UIElement.AddHandler(element, StylusButtonDownEvent, handler); 486UIElement.RemoveHandler(element, StylusButtonDownEvent, handler); 502UIElement.AddHandler(element, StylusButtonUpEvent, handler); 512UIElement.RemoveHandler(element, StylusButtonUpEvent, handler); 528UIElement.AddHandler(element, PreviewStylusButtonDownEvent, handler); 538UIElement.RemoveHandler(element, PreviewStylusButtonDownEvent, handler); 554UIElement.AddHandler(element, PreviewStylusButtonUpEvent, handler); 564UIElement.RemoveHandler(element, PreviewStylusButtonUpEvent, handler);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
661protected bool ValidateUIElementForCapture(UIElement element)
System\Windows\Input\Stylus\Common\StylusPlugin.cs (1)
188public UIElement Element
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (3)
224internal StylusPlugInCollection(UIElement element) 241internal UIElement Element 597private UIElement _element;
System\Windows\Input\Stylus\Common\StylusPlugInCollectionBase.cs (1)
57internal abstract void UpdateState(UIElement element);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (13)
516if (o is UIElement element) 542if (o is UIElement element) 568UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(oldCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 574o.SetValue(UIElement.IsStylusCapturedPropertyKey, false); // Same property for ContentElements 580o.SetValue(UIElement.IsStylusCapturedPropertyKey, true); // Same property for ContentElements 603if (o is UIElement element) 632if (o is UIElement element) 662UIElement.StylusOverProperty.OnOriginValueChanged(oldOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState); 668o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, false); // Same property for ContentElements 674o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, true); // Same property for ContentElements 777if (dependencyObject is UIElement uie) 820UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(_stylusCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 882UIElement.StylusOverProperty.OnOriginValueChanged(_stylusOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (6)
560UIElement e = element as UIElement; 944UIElement eTest = null; 949eTest = ieTest as UIElement; 1026UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
51internal override void UpdateState(UIElement element)
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (5)
178internal StylusPlugInCollection FindPlugInCollection(UIElement element) 249UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement; 363UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (3)
343UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement; 500internal StylusPlugInCollection FindPlugInCollection(UIElement element)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (15)
2064if (o is UIElement uie) 2093if (o is UIElement uie) 2123UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(oldCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 2129o.SetValue(UIElement.IsStylusCapturedPropertyKey, false); // Same property for ContentElements 2134o.SetValue(UIElement.IsStylusCapturedPropertyKey, true); // Same property for ContentElements 2152if (o is UIElement uie) 2181if (o is UIElement uie) 2211UIElement.StylusOverProperty.OnOriginValueChanged(oldOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState); 2217o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, false); // Same property for ContentElements 2222o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, true); // Same property for ContentElements 2360UIElement.StylusOverProperty.OnOriginValueChanged(_stylusOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState); 2430if (dependencyObject is UIElement uie) 2473UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(_stylusCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 2663UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (6)
254UIElement e = element as UIElement; 583UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement; 1015UIElement eTest = null; 1020eTest = ieTest as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (1)
57internal override void UpdateState(UIElement element)
System\Windows\Input\TextCompositionManager.cs (12)
59UIElement.AddHandler(element, PreviewTextInputStartEvent, handler); 71UIElement.RemoveHandler(element, PreviewTextInputStartEvent, handler); 88UIElement.AddHandler(element, TextInputStartEvent, handler); 100UIElement.RemoveHandler(element, TextInputStartEvent, handler); 117UIElement.AddHandler(element, PreviewTextInputUpdateEvent, handler); 129UIElement.RemoveHandler(element, PreviewTextInputUpdateEvent, handler); 146UIElement.AddHandler(element, TextInputUpdateEvent, handler); 158UIElement.RemoveHandler(element, TextInputUpdateEvent, handler); 175UIElement.AddHandler(element, PreviewTextInputEvent, handler); 187UIElement.RemoveHandler(element, PreviewTextInputEvent, handler); 204UIElement.AddHandler(element, TextInputEvent, handler); 216UIElement.RemoveHandler(element, TextInputEvent, handler);
System\Windows\Input\TouchDevice.cs (25)
209UIElement eTest = ieTest as UIElement; 324UIElement uiElement; 346UIElement oldUIElement; 389o.SetValue(UIElement.AreAnyTouchesCapturedPropertyKey, 395o.SetValue(UIElement.AreAnyTouchesCapturedPropertyKey, BooleanBoxes.TrueBox); 446ReverseInheritProperty property = capture ? (ReverseInheritProperty)UIElement.TouchesCapturedWithinProperty : (ReverseInheritProperty)UIElement.TouchesOverProperty; 517UIElement uiElement; 592private static void CastInputElement(IInputElement element, out UIElement uiElement, out ContentElement contentElement, out UIElement3D uiElement3D) 594uiElement = element as UIElement; 755UIElement manipulatableElement = GetManipulatableElement(); 853UIElement oldUIElement; 857UIElement newUIElement; 900o.SetValue(UIElement.AreAnyTouchesDirectlyOverPropertyKey, 906o.SetValue(UIElement.AreAnyTouchesDirectlyOverPropertyKey, BooleanBoxes.TrueBox); 1022UIElement manipulatableElement = GetManipulatableElement(); 1056private UIElement GetManipulatableElement() 1058UIElement element = InputElement.GetContainingUIElement(_directlyOver as DependencyObject) as UIElement; 1067private void PromoteMainToManipulation(UIElement manipulatableElement, TouchEventArgs touchEventArgs) 1084UIElement element = _captured as UIElement; 1098UIElement element = _manipulatingElement.Target as UIElement;
System\Windows\Input\TouchesCapturedWithinProperty.cs (2)
9base(UIElement.AreAnyTouchesCapturedWithinPropertyKey, 15internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\Input\TouchesOverProperty.cs (2)
9base(UIElement.AreAnyTouchesOverPropertyKey, 17internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\InterOp\HwndSource.cs (20)
574if(_rootVisual is UIElement) 576((UIElement)(_rootVisual)).LayoutUpdated += new EventHandler(OnLayoutUpdated); 584UIElement.PropagateResumeLayout(null, value); 597if(oldRoot is UIElement) 599((UIElement)oldRoot).LayoutUpdated -= new EventHandler(OnLayoutUpdated); 602UIElement.PropagateSuspendLayout(oldRoot); 787UIElement root = _rootVisual as UIElement; 903UIElement root = _rootVisual as UIElement; 1004if ((_rootVisual is UIElement) && _hwndTarget!= null && !_hwndTarget.IsDisposed) 1021UIElement rootUIElement = null; 1022rootUIElement = _rootVisual as UIElement; 1184UIElement rootUIElement=null; 1185rootUIElement = _rootVisual as UIElement; 1327private void Process_WM_WINDOWPOSCHANGING(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 1401private void Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 1489private void DisableSizeToContent(UIElement rootUIElement, IntPtr hwnd) 1965UIElement root =_rootVisual as UIElement;
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (3)
14if (!(sink is UIElement)) 24_sinkElement = sink as UIElement; 88private UIElement _sinkElement;
System\Windows\InterOp\HwndTarget.cs (6)
1408UIElement uiroot = (UIElement)root; 1812UIElement element = d as UIElement; 2303DpiScale newDpiScale = new DpiScale(UIElement.DpiScaleXValues[dpiFlags.Index], UIElement.DpiScaleYValues[dpiFlags.Index]);
System\Windows\LayoutManager.cs (37)
58private void setForceLayout(UIElement e) 63private void markTreeDirty(UIElement e) 68UIElement p = e.GetUIParentNo3DTraversal() as UIElement; 85UIElement uie = ((UIElement)v); 205UIElement currentElement = null; 452private Rect getProperArrangeRect(UIElement element) 511internal override void setRequest(UIElement e, Request r) 516internal override Request getRequest(UIElement e) 521internal override bool canRelyOnParentRecalc(UIElement parent) 527internal override void invalidate(UIElement e) 536internal override void setRequest(UIElement e, Request r) 541internal override Request getRequest(UIElement e) 546internal override bool canRelyOnParentRecalc(UIElement parent) 552internal override void invalidate(UIElement e) 779internal UIElement GetLastExceptionElement() 784internal void SetLastExceptionElement(UIElement e) 791private UIElement _forceLayoutElement; //set in extreme situations, forces the update of the whole tree containing the element 792private UIElement _lastExceptionElement; //set on exception in Measure or Arrange. 801internal static int s_LayoutRecursionLimit = UIElement.MAX_ELEMENTS_IN_ROUTE; //to keep these two constants in sync 830internal abstract Request getRequest(UIElement e); 831internal abstract void setRequest(UIElement e, Request r); 832internal abstract bool canRelyOnParentRecalc(UIElement parent); 833internal abstract void invalidate(UIElement e); 837internal UIElement Target; 856private void _addRequest(UIElement e) 870internal void Add(UIElement e) 877UIElement parent = e.GetUIParentWithinLayoutIsland(); 900UIElement p = e.GetUIParentWithinLayoutIsland(); 923internal void Remove(UIElement e) 931internal void RemoveOrphans(UIElement parent) 936UIElement child = r.Target; 953internal UIElement GetTopMost() 955UIElement found = null; 960UIElement t = r.Target; 983private Request _getNewRequest(UIElement e)
System\Windows\Media\BitmapCacheBrush.cs (8)
197UIElement element = Target as UIElement; 252private void DoLayout(UIElement element) 263UIElement.PropagateResumeLayout(null, element); 277UIElement element = (UIElement)Target; 306UIElement element = arg as UIElement;
System\Windows\Media\Generated\BitmapCacheBrush.cs (2)
147UIElement element = (UIElement)oldV;
System\Windows\Media\Generated\VisualBrush.cs (2)
85UIElement element = (UIElement)oldV;
System\Windows\Media\Visual.cs (14)
2609UIElement.PropagateResumeLayout(this, child); 2687UIElement.PropagateSuspendLayout(child); 4276UIElement.InvalidateForceInheritPropertyOnChildren(this, property); 4682lock (UIElement.DpiLock) 4684if (UIElement.DpiScaleXValues.Count == 0) 4687return UIElement.EnsureDpiScale(); 4691dpi = new DpiScale(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 4697if (index < 3 && UIElement.DpiScaleXValues[index] != 0 && UIElement.DpiScaleYValues[index] != 0) 4699dpi = new DpiScale(UIElement.DpiScaleXValues[index], UIElement.DpiScaleYValues[index]); 4705dpi = new DpiScale(UIElement.DpiScaleXValues[actualIndex], UIElement.DpiScaleYValues[actualIndex]);
System\Windows\Media\VisualBrush.cs (8)
179UIElement element = Visual as UIElement; 219private void DoLayout(UIElement element) 230UIElement.PropagateResumeLayout(null, element); 246UIElement element = (UIElement)Visual; 275UIElement element = arg as UIElement;
System\Windows\MouseCaptureWithinProperty.cs (3)
15UIElement.IsMouseCaptureWithinPropertyKey, 23internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 27UIElement.IsMouseCaptureWithinProperty,
System\Windows\MouseOverProperty.cs (2)
15UIElement.IsMouseOverPropertyKey, 23internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\Navigation\BaseUriHelper.cs (2)
563UIElement uie = doCurrent as UIElement;
System\Windows\PresentationSource.cs (8)
132if (o is UIElement uie) 200if (o is UIElement uie) 435UIElement oldRootUIElement = oldRoot as UIElement; 436UIElement newRootUIElement = newRoot as UIElement; 520Debug.Assert(uie is UIElement3D or UIElement); 685if (doTarget is UIElement uiElement)
System\Windows\ReverseInheritProperty.cs (8)
32internal abstract void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue); 104UIElement uie; 162UIElement uie; 233private static bool BlockReverseInheritance(UIElement uie, ContentElement ce, UIElement3D uie3D) 253private static void SetFlag(UIElement uie, ContentElement ce, UIElement3D uie3D, CoreFlags flag, bool value) 271private static bool IsFlagSet(UIElement uie, ContentElement ce, UIElement3D uie3D, CoreFlags flag) 291private static void CastElement(DependencyObject o, out UIElement uie, out ContentElement ce, out UIElement3D uie3D) 293uie = o as UIElement;
System\Windows\SizeChangedInfo.cs (3)
36public SizeChangedInfo(UIElement element, Size previousSize, bool widthChanged, bool heightChanged) 97internal UIElement Element 103private UIElement _element;
System\Windows\StylusCaptureWithinProperty.cs (3)
15UIElement.IsStylusCaptureWithinPropertyKey, 23internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 27UIElement.IsStylusCaptureWithinProperty,
System\Windows\StylusOverProperty.cs (2)
15UIElement.IsStylusOverPropertyKey, 23internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\UIElement.cs (145)
34/// <seealso cref="UIElement" /> 71UIElement.RegisterEvents(typeof(UIElement)); 74typeof(UIElement), 78typeof(UIElement), 82typeof(UIElement), 86typeof(UIElement), 89EventManager.RegisterClassHandler(typeof(UIElement), ManipulationStartingEvent, new EventHandler<ManipulationStartingEventArgs>(OnManipulationStartingThunk)); 90EventManager.RegisterClassHandler(typeof(UIElement), ManipulationStartedEvent, new EventHandler<ManipulationStartedEventArgs>(OnManipulationStartedThunk)); 91EventManager.RegisterClassHandler(typeof(UIElement), ManipulationDeltaEvent, new EventHandler<ManipulationDeltaEventArgs>(OnManipulationDeltaThunk)); 92EventManager.RegisterClassHandler(typeof(UIElement), ManipulationInertiaStartingEvent, new EventHandler<ManipulationInertiaStartingEventArgs>(OnManipulationInertiaStartingThunk)); 93EventManager.RegisterClassHandler(typeof(UIElement), ManipulationBoundaryFeedbackEvent, new EventHandler<ManipulationBoundaryFeedbackEventArgs>(OnManipulationBoundaryFeedbackThunk)); 94EventManager.RegisterClassHandler(typeof(UIElement), ManipulationCompletedEvent, new EventHandler<ManipulationCompletedEventArgs>(OnManipulationCompletedThunk)); 134typeof(UIElement), 304/// Causes <see cref="System.Windows.UIElement.OnRender"/> to be called at a later time. 323protected virtual void OnChildDesiredSizeChanged(UIElement child) 458UIElement e = (UIElement)v; 503UIElement e = (UIElement)v; 692UIElement p; 712internal void GetUIParentOrICH(out UIElement uiParent, out IContentHost ich) 724uiParent = (UIElement)v; 731internal UIElement GetUIParentWithinLayoutIsland() 733UIElement uiParent = null; 744uiParent = (UIElement)v; 798DependencyObject parent = GetUIParent() as UIElement; 1333/// <seealso cref="UIElement.RenderTransform" /> 1339typeof(UIElement), 1358UIElement uie = (UIElement)d; 1377/// <seealso cref="UIElement.RenderTransformOrigin" /> 1382typeof(UIElement), 1411UIElement uie = (UIElement)d; 1432if (parent is not UIElement and not UIElement3D) 1479if (parent is not UIElement and not UIElement3D) 1574UIElement uie = sender as UIElement; 1655UIElement uiElement = e as UIElement; 1689UIElement uiElement = e as UIElement; 1880UIElement uiElement = d as UIElement; 1916UIElement uiElement = d as UIElement; 1965public Point TranslatePoint(Point point, UIElement relativeTo) 2062UIElement element = candidate as UIElement; 2183newEvent = UIElement.PreviewMouseLeftButtonDownEvent; 2185newEvent = UIElement.MouseLeftButtonDownEvent; 2187newEvent = UIElement.PreviewMouseLeftButtonUpEvent; 2189newEvent = UIElement.MouseLeftButtonUpEvent; 2193newEvent = UIElement.PreviewMouseRightButtonDownEvent; 2195newEvent = UIElement.MouseRightButtonDownEvent; 2197newEvent = UIElement.PreviewMouseRightButtonUpEvent; 2199newEvent = UIElement.MouseRightButtonUpEvent; 2256UIElement.BuildRouteHelper(sender, route, args); 2310UIElement.BuildRouteHelper(sender, route, args); 2664typeof(UIElement), 2672UIElement uie = (UIElement) d; 2699= DependencyProperty.Register("OpacityMask", typeof(Brush), typeof(UIElement), 2704UIElement uie = (UIElement) d; 2731typeof(UIElement), 2736UIElement uie = (UIElement)d; 2765typeof(UIElement), 2770UIElement uie = (UIElement)d; 2795typeof(UIElement), 2800((UIElement) d).pushBitmapEffectInput((BitmapEffectInput) e.NewValue); 2823UIElement uie = (UIElement) d; 2834UIElement uie = (UIElement) d; 2845UIElement uie = (UIElement) d; 2856UIElement uie = (UIElement) d; 2872typeof(UIElement), 2877UIElement uie = (UIElement)d; 2920typeof(UIElement), 2942typeof(UIElement), 2950UIElement uie = (UIElement) d; 3045UIElement p; 3342typeof(UIElement), 3349UIElement uie = (UIElement) d; 3383typeof(UIElement), 3390UIElement uie = (UIElement) d; 3415typeof(UIElement), 3422UIElement uie = (UIElement) d; 3465public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement)); 3479public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement)); 3497typeof(UIElement), 3512UIElement uiElement = ((UIElement)d); 3562typeof(UIElement), 3612UIElement uie = (UIElement) d; 3653UIElement uie = (UIElement)d; 3688typeof(UIElement), 3715UIElement uie = (UIElement) d; 3755UIElement uie = (UIElement)d; 3788typeof(UIElement), 3806return ((UIElement)d).IsVisible ? BooleanBoxes.TrueBox : BooleanBoxes.FalseBox; 3886UIElement uie = (UIElement) d; 3916typeof(UIElement), 3942UIElement uie = (UIElement) d; 4157UIElement uiElement, 4234UIElement element = vChild as UIElement; 4301typeof(UIElement), 4329((UIElement)d).CoerceStylusProperties(); 4333Manipulation.TryCompleteManipulation((UIElement)d); 4361public static readonly RoutedEvent ManipulationStartingEvent = Manipulation.ManipulationStartingEvent.AddOwner(typeof(UIElement)); 4375((UIElement)sender).OnManipulationStarting(e); 4386public static readonly RoutedEvent ManipulationStartedEvent = Manipulation.ManipulationStartedEvent.AddOwner(typeof(UIElement)); 4400((UIElement)sender).OnManipulationStarted(e); 4411public static readonly RoutedEvent ManipulationDeltaEvent = Manipulation.ManipulationDeltaEvent.AddOwner(typeof(UIElement)); 4425((UIElement)sender).OnManipulationDelta(e); 4436public static readonly RoutedEvent ManipulationInertiaStartingEvent = Manipulation.ManipulationInertiaStartingEvent.AddOwner(typeof(UIElement)); 4450((UIElement)sender).OnManipulationInertiaStarting(e); 4461public static readonly RoutedEvent ManipulationBoundaryFeedbackEvent = Manipulation.ManipulationBoundaryFeedbackEvent.AddOwner(typeof(UIElement)); 4475((UIElement)sender).OnManipulationBoundaryFeedback(e); 4486public static readonly RoutedEvent ManipulationCompletedEvent = Manipulation.ManipulationCompletedEvent.AddOwner(typeof(UIElement)); 4500((UIElement)sender).OnManipulationCompleted(e); 4667private static readonly UncommonField<WeakReference<UIElement>> _positionAndSizeOfSetController = new UncommonField<WeakReference<UIElement>>(); 4675internal UIElement PositionAndSizeOfSetController 4679UIElement element = null; 4680WeakReference<UIElement> wRef = _positionAndSizeOfSetController.GetValue(this); 4690_positionAndSizeOfSetController.SetValue(this, new WeakReference<UIElement>(value));
System\Windows\UIElement3D.cs (26)
29UIElement.RegisterEvents(typeof(UIElement3D)); 32IsVisibleProperty = UIElement.IsVisibleProperty.AddOwner(typeof(UIElement3D)); 40UIElement.IsVisiblePropertyKey); 43IsFocusedProperty = UIElement.IsFocusedProperty.AddOwner(typeof(UIElement3D)); 48UIElement.IsFocusedPropertyKey); 79UIElement.AllowDropProperty.AddOwner( 135if (parent is not UIElement and not UIElement3D) 167UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 179if (parent is not UIElement and not UIElement3D) 200UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 268UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 640UIElement.VisibilityProperty.AddOwner( 801UIElement.IsEnabledProperty.AddOwner( 823add { EventHandlersStoreAdd(UIElement.IsEnabledChangedKey, value); } 824remove { EventHandlersStoreRemove(UIElement.IsEnabledChangedKey, value); } 872if (parent == null || (bool)parent.GetValue(UIElement.IsEnabledProperty)) 892uie.RaiseDependencyPropertyChanged(UIElement.IsEnabledChangedKey, e); 921UIElement.IsHitTestVisibleProperty.AddOwner( 1039add { EventHandlersStoreAdd(UIElement.IsVisibleChangedKey, value); } 1040remove { EventHandlersStoreRemove(UIElement.IsVisibleChangedKey, value); } 1139UIElement.FocusableProperty.AddOwner( 1159add { EventHandlersStoreAdd(UIElement.FocusableChangedKey, value); } 1160remove { EventHandlersStoreRemove(UIElement.FocusableChangedKey, value); } 1168uie.RaiseDependencyPropertyChanged(UIElement.FocusableChangedKey, e); 1363UIElement element = vChild as UIElement;
PresentationFramework (1243)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
151public override UIElement GetParent(Object selection)
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
83public abstract UIElement GetParent(Object selection);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
147public static UIElement GetParent(Object selection) 167public static UIElement GetParent(ITextPointer pointer) 177return (UIElement)scrollViewer.ScrollViewer.Content; 208return parent as UIElement;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
93public override UIElement GetParent(Object selection)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
84public override UIElement GetParent(Object selection) 89return (UIElement)selection;
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (3)
90public override UIElement GetParent(Object selection) 94UIElement element = selection as UIElement;
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (3)
65internal static void HostComponent(AdornerLayer adornerLayer, IAnnotationComponent component, UIElement annotatedElement, bool reorder) 132public override UIElement Host { get { return _adornerLayer; } } 145AdornerLayer parentLayer = AdornerLayer.GetAdornerLayer((UIElement)parent);
MS\Internal\Annotations\Component\AnnotationAdorner.cs (10)
31public AnnotationAdorner(IAnnotationComponent component, UIElement annotatedElement) : base(annotatedElement) 35if (component is UIElement) 39this.AddVisualChild((UIElement)_annotationComponent); 59if (!(_annotationComponent is UIElement)) 107return (UIElement)_annotationComponent; 135((UIElement)_annotationComponent).Measure(childConstraint); 148((UIElement)_annotationComponent).Arrange(new Rect(((UIElement)_annotationComponent).DesiredSize)); 163this.RemoveVisualChild((UIElement)_annotationComponent); 229private UIElement _annotatedElement;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (4)
141UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject 161UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
1116UIElement uie = TopOwner as UIElement;
MS\Internal\Annotations\Component\HighlightComponent.cs (2)
166public UIElement AnnotatedElement 170return _attachedAnnotation != null ? (_attachedAnnotation.Parent as UIElement) : null;
MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
69UIElement AnnotatedElement { get; }
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (5)
142public UIElement AnnotatedElement 146return _attachedAnnotation != null ? (_attachedAnnotation.Parent as UIElement) : null; 496_uiParent = PathNode.GetParent(textContainer.Parent) as UIElement; 1016UIElement host = component.PresentationContext.Host; 1182private UIElement _uiParent = null; // the TextContainer parent. We need to handle GotFocus/LostFocus events
MS\Internal\Annotations\Component\PresentationContext.cs (1)
27public abstract UIElement Host { get; }
MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (4)
114UIElement parent = ((UIElement)VisualTreeHelper.GetParent(this)) as UIElement; 118((UIElement)VisualTreeHelper.GetParent(this)).InvalidateArrange();
MS\Internal\Controls\InkCanvasInnerCanvas.cs (8)
57UIElement removedElement = visualRemoved as UIElement; 81foreach (UIElement child in InternalChildren) 129foreach (UIElement child in InternalChildren) 181protected override void OnChildDesiredSizeChanged(UIElement child) 247internal UIElement HitTestOnElements(Point point) 249UIElement hitElement = null; 276hitElement = currentObject as UIElement;
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
25internal InkCanvasSelectionAdorner(UIElement adornedElement)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (4)
1084UIElement IAnnotationComponent.AnnotatedElement 1088return _attachedAnnotation != null ? _attachedAnnotation.Parent as UIElement : null; 1332SetValue(UIElement.VisibilityProperty, Visibility.Collapsed); 1591UIElement parent = component.AnnotatedElement;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
466public static StickyNoteContentControl CreateContentControl(StickyNoteType type, UIElement content)
MS\Internal\Controls\TemplatedAdorner.cs (1)
38public TemplatedAdorner(UIElement adornedElement, ControlTemplate adornerTemplate) : base(adornedElement)
MS\Internal\Data\DataBindEngine.cs (2)
213(_layoutElement = c.TargetElement as UIElement) != null) 693private UIElement _layoutElement;
MS\Internal\DataStreams.cs (6)
78private ArrayList SaveSubStreams(UIElement element) 158UIElement element = node as UIElement; 236private void LoadSubStreams(UIElement element, ArrayList subStreams) 280UIElement element = node as UIElement;
MS\Internal\Documents\DocumentGrid.cs (6)
1171UIElement background = _childrenCollection[_backgroundVisualIndex] as UIElement; 1209UIElement uiPage = _childrenCollection[visualChild] as UIElement; 2276UIElement page = _childrenCollection[i] as UIElement;
MS\Internal\Documents\DocumentPageTextView.cs (2)
473internal override UIElement RenderScope 700private readonly UIElement _owner;
MS\Internal\Documents\MultiPageTextView.cs (3)
37internal MultiPageTextView(DocumentViewerBase viewer, UIElement renderScope, ITextContainer textContainer) 623internal override UIElement RenderScope 1547private readonly UIElement _renderScope;
MS\Internal\Documents\ScrollData.cs (16)
29internal void LineUp(UIElement owner) 37internal void LineDown(UIElement owner) 45internal void LineLeft(UIElement owner) 53internal void LineRight(UIElement owner) 61internal void PageUp(UIElement owner) 69internal void PageDown(UIElement owner) 77internal void PageLeft(UIElement owner) 85internal void PageRight(UIElement owner) 93internal void MouseWheelUp(UIElement owner) 101internal void MouseWheelDown(UIElement owner) 109internal void MouseWheelLeft(UIElement owner) 117internal void MouseWheelRight(UIElement owner) 125internal void SetHorizontalOffset(UIElement owner, double offset) 144internal void SetVerticalOffset(UIElement owner, double offset) 163internal Rect MakeVisible(UIElement owner, Visual visual, Rect rectangle) 224internal void SetScrollOwner(UIElement owner, ScrollViewer value)
MS\Internal\Documents\TextBoxView.cs (1)
1212UIElement ITextView.RenderScope
MS\Internal\Documents\TextContainerHelper.cs (8)
345if (element is UIElement) 349peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 406if (element is UIElement) 408peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 477if (element is UIElement) 479peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 698internal static int GetCPFromEmbeddedObject(UIElement embeddedObject, ElementEdge edge) 737&& (peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)child)) != null)
MS\Internal\Documents\TextDocumentView.cs (4)
545internal override UIElement RenderScope 549UIElement renderScope = null; 554while (visual != null && !(visual is UIElement)) 558renderScope = visual as UIElement;
MS\Internal\Documents\TextParagraphView.cs (1)
450internal override UIElement RenderScope
MS\Internal\Documents\TextViewBase.cs (2)
289internal abstract UIElement RenderScope { get; } 632UIElement ITextView.RenderScope
MS\Internal\Documents\UIElementIsland.cs (7)
30internal UIElementIsland(UIElement child) 112internal UIElement Root 145private UIElement _child; // Hosted UIElement root. 219void IContentHost.OnChildDesiredSizeChanged(UIElement child) 245internal DesiredSizeChangedEventArgs(UIElement child) 253internal UIElement Child 261private readonly UIElement _child;
MS\Internal\FrameworkObject.cs (2)
911UIElement uiElement; 914if ((uiElement = _do as UIElement) != null)
MS\Internal\Helper.cs (10)
517internal static Size MeasureElementWithSingleChild(UIElement element, Size constraint) 519UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 534internal static Size ArrangeElementWithSingleChild(UIElement element, Size arrangeSize) 536UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 1339UIElement uiElement = element as UIElement; 1369UIElement element = d as UIElement;
MS\Internal\Ink\ClipboardProcessor.cs (13)
135List<UIElement> elements = new List<UIElement>(inkCanvasSelection.SelectedElements); 180internal bool PasteData(IDataObject dataObject, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 199List<UIElement> elements = xamlData.Elements; 314private bool CopySelectionInXAML(IDataObject dataObject, StrokeCollection strokes, List<UIElement> elements, Matrix transform, Size size) 340UIElement newElement = XamlReader.Load(new XmlTextReader(new StringReader(xml))) as UIElement; 353ClipboardData data = new XamlClipboardData(new UIElement[] { inkCanvas }); 370private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 376List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count); 377foreach (UIElement uiElement in rootInkCanvas.Children) 383foreach ( UIElement child in children )
MS\Internal\Ink\EditingCoordinator.cs (4)
958_inkCanvas.AddHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 988_inkCanvas.AddHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>)); 1011_inkCanvas.RemoveHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 1026_inkCanvas.RemoveHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>));
MS\Internal\Ink\ElementsClipboardData.cs (6)
30internal ElementsClipboardData(UIElement[] elements) 34ElementList = new List<UIElement>(elements); 49internal List<UIElement> Elements 59return new List<UIElement>(); 75protected List<UIElement> ElementList 97private List<UIElement> _elementList;
MS\Internal\Ink\InkCanvasSelection.cs (16)
76internal ReadOnlyCollection<UIElement> SelectedElements 82_selectedElements = new List<UIElement>(); 85return new ReadOnlyCollection<UIElement>(_selectedElements); 192internal void Select(StrokeCollection strokes, IList<UIElement> elements, bool raiseSelectionChanged) 228_selectedElements = new List<UIElement>(elements); 328internal void RemoveElement(UIElement removedElement) 354internal void UpdateElementBounds(UIElement element, Matrix transform) 367internal void UpdateElementBounds(UIElement originalElement, UIElement updatedElement, Matrix transform) 538IList<UIElement> elements, 724IList<UIElement> elements = SelectedElements; 1014private static bool FrameworkElementArraysAreEqual(IList<UIElement> elements1, IList<UIElement> elements2) 1033foreach ( UIElement e in elements1 ) 1064foreach ( UIElement element in SelectedElements ) 1109private List<UIElement> _selectedElements;
MS\Internal\Ink\LassoSelectionBehavior.cs (11)
237List<UIElement> elementsToSelect = new List<UIElement>(); 265UIElement tappedElement; 335private List<UIElement> HitTestForElements() 337List<UIElement> elementsToSelect = new List<UIElement>(); 346UIElement uiElement = this.InkCanvas.Children[x]; 357private void HitTestElement(InkCanvasInnerCanvas parent, UIElement uiElement, List<UIElement> elementsToSelect) 382private static ElementCornerPoints GetTransformedElementCornerPoints(InkCanvasInnerCanvas canvas, UIElement childElement) 630private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement)
MS\Internal\Ink\SelectionEditingBehavior.cs (2)
80InkCanvas.SelectionAdorner.AddHandler(UIElement.LostMouseCaptureEvent, 92InkCanvas.SelectionAdorner.RemoveHandler(UIElement.LostMouseCaptureEvent,
MS\Internal\Ink\TextClipboardData.cs (1)
69ElementList = new List<UIElement>();
MS\Internal\Ink\XamlClipboardData.cs (5)
32internal XamlClipboardData(UIElement[] elements) : base (elements) 72foreach ( UIElement element in Elements ) 88ElementList = new List<UIElement>(); 95UIElement element = XamlReader.Load(new System.Xml.XmlTextReader(new System.IO.StringReader(xml)), useRestrictiveXamlReader: true) as UIElement;
MS\Internal\LayoutDump.cs (16)
85internal static void DumpLayoutTreeToFile(string tagName, UIElement root, string fileName) 102internal static string DumpLayoutTreeToString(string tagName, UIElement root) 126internal static void DumpLayoutTree(XmlTextWriter writer, string tagName, UIElement root) 168internal delegate bool DumpCustomUIElement(XmlTextWriter writer, UIElement element, bool uiElementsOnly); 200if (visual is UIElement) 202DumpUIElement(writer, (UIElement)visual, parent, false); 241private static void DumpUIElement(XmlTextWriter writer, UIElement element, Visual parent, bool uiElementsOnly) 356List<UIElement> uiElements = new List<UIElement>(); 418internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements) 425if (child is UIElement) 427uiElements.Add((UIElement)(child)); 461private static bool DumpDocumentPageView(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 477private static bool DumpText(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 510private static bool DumpFlowDocumentScrollViewer(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 536private static bool DumpFlowDocumentView(XmlTextWriter writer, UIElement element, bool uiElementsOnly)
MS\Internal\PtsHost\FlowDocumentPage.cs (4)
399internal void OnChildDesiredSizeChangedCore(UIElement child) 952if (embeddedObject is ContentElement || embeddedObject is UIElement) 954if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 1210void IContentHost.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\LineBase.cs (2)
303if (embeddedObject is UIElement) 310run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph);
MS\Internal\PtsHost\PageVisual.cs (1)
148void IContentHost.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\PtsHost.cs (1)
2508UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.Element).Child;
MS\Internal\PtsHost\RunClient.cs (1)
34internal InlineObjectRun(int cch, UIElement element, TextRunProperties textProps, TextParagraph host)
MS\Internal\PtsHost\TextParaClient.cs (4)
1266UIElement uiElement = (UIElement)inlineObjects[i].Element; 1300UIElement uiElement = (UIElement)inlineObjects[i].Element;
MS\Internal\Text\ComplexLine.cs (4)
199proxyVisual.Offset = new Vector(UIElement.RoundLayoutValue(lineOffset.X + rect.Left, dpi.DpiScaleX), 200UIElement.RoundLayoutValue(lineOffset.Y + rect.Top, dpi.DpiScaleY)); 525if (element is UIElement) 532run = new InlineObject(dcp, TextContainerHelper.EmbeddedObjectLength, (UIElement)element, textProps, _owner);
MS\Internal\Text\InlineObject.cs (3)
29internal InlineObject(int dcp, int cch, UIElement element, TextRunProperties textProps, System.Windows.Controls.TextBlock host) 159internal UIElement Element { get { return _element; } } 174private readonly UIElement _element;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
61internal static Point ClientToScreen(UIElement relativeTo, Point point)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
492public void OnChildDesiredSizeChanged(UIElement child)
System\Windows\Annotations\AnnotationService.cs (9)
938UIElement root = _root as UIElement; 990IList<UIElement> processedElements = new List<UIElement>(); 993UIElement parent = annotation.Parent as UIElement; 1016private static void InvalidateAdorners(UIElement element) 1705UIElement root = _root as UIElement;
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
133foreach (UIElement child in this.OwningGrid.Children) 367foreach (UIElement child in this.OwningGrid.Children) 608foreach (UIElement child in this.OwningGrid.Children)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
224UIElement owningRow = GetWrapper();
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (5)
128UIElement uiElement = textView?.RenderScope; 137UIElement uiScope; 158UIElement uiScope; 191UIElement uiScope; 212private Rect CalculateBoundingRect(bool clipToVisible, out UIElement uiScope)
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
111if (document is UIElement) 113documentPeer = UIElementAutomationPeer.CreatePeerForElement((UIElement)document);
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
137foreach (UIElement e in _owner.HeaderRowPresenter.ActualColumnHeaders)
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (2)
170&& (includeInvisibleItems || ((UIElement)child).IsVisible) 171&& (peer = CreatePeerForElement((UIElement)child)) != null)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
55foreach (UIElement ele in rowPresenter.ActualCells)
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
154foreach (UIElement child in childItems)
System\Windows\Automation\Peers\ItemAutomationPeer.cs (5)
81internal UIElement GetWrapper() 83UIElement wrapper = null; 94wrapper = item as UIElement; 96wrapper = owner.ItemContainerGenerator.ContainerFromItem(item) as UIElement; 106UIElement wrapper = GetWrapper();
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
78foreach (UIElement child in childItems) 773return UIElementAutomationPeer.CreatePeerForElement((UIElement)_container);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
174UIElement uiElement = owner.ItemContainerGenerator.ContainerFromIndex(i) as UIElement;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
116&& (peer = CreatePeerForElement((UIElement)child)) != null)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
222UIElement uiElement = textView?.RenderScope;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (4)
88&& child is UIElement) 92object dataItem = (child as UIElement) != null ? (logicalParentAp.Owner as ItemsControl).GetItemOrContainerFromContainer(child as UIElement) : child; 129peer = CreatePeerForElement((UIElement)child);
System\Windows\Controls\AdornedElementPlaceholder.cs (9)
58if (!(value is UIElement)) 59throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 64this.Child = (UIElement)value; 84public UIElement AdornedElement 98public virtual UIElement Child 107UIElement old = _child; 189UIElement child = Child; 203UIElement child = Child; 234private UIElement _child;
System\Windows\Controls\Border.cs (20)
209UIElement child = Child; 215borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 216UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 262borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 263UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 269UIElement child = Child; 412pen.Thickness = UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX); 477pen.Thickness = UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX); 510pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY); 543pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY); 575ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX), 576UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY)); 580ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 581UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 585ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX), 586RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY));
System\Windows\Controls\Button.cs (1)
237/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Calendar.cs (1)
83EventManager.RegisterClassHandler(typeof(Calendar), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
System\Windows\Controls\Canvas.cs (13)
72public static double GetLeft(UIElement element) 84public static void SetLeft(UIElement element, double length) 98public static double GetTop(UIElement element) 110public static void SetTop(UIElement element, double length) 124public static double GetRight(UIElement element) 136public static void SetRight(UIElement element, double length) 150public static double GetBottom(UIElement element) 162public static void SetBottom(UIElement element, double length) 186UIElement uie = d as UIElement; 259foreach (UIElement child in InternalChildren) 282foreach (UIElement child in InternalChildren) 330/// Override of <seealso cref="UIElement.GetLayoutClip"/>.
System\Windows\Controls\CheckBox.cs (1)
54/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\CleanUpVirtualizedItemEventArgs.cs (3)
11public CleanUpVirtualizedItemEventArgs(object value, UIElement element) 34public UIElement UIElement 60private UIElement _element;
System\Windows\Controls\ComboBox.cs (4)
52EventManager.RegisterClassHandler(typeof(ComboBox), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus)); // call us even if textbox in the style get focus 885_clonedElement = logicalElement as UIElement; 1888/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2017private UIElement _clonedElement;
System\Windows\Controls\ComboBoxItem.cs (1)
163SetFlags(newContent is UIElement, VisualFlags.IsLayoutIslandRoot);
System\Windows\Controls\ContentPresenter.cs (10)
1014UIElement e = content as UIElement; 1018Debug.Assert(tc.CanConvertTo(typeof(UIElement))); 1019e = (UIElement) tc.ConvertTo(content, typeof(UIElement)); 1065private UIElement DefaultExpansion(object content, ContentPresenter container) 1088Debug.Assert(!(content is String) && !(content is UIElement)); // these are handled by different templates 1127Debug.Assert(!(tc != null && tc.CanConvertTo(typeof(UIElement)))); // this is handled by a different template 1181else if (item is UIElement) 1189tc.CanConvertTo(typeof(UIElement)))
System\Windows\Controls\ContextMenu.cs (3)
183public UIElement PlacementTarget 185get { return (UIElement) GetValue(PlacementTargetProperty); } 376/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ContextMenuService.cs (10)
168typeof(UIElement), // Type 170new FrameworkPropertyMetadata((UIElement)null)); // Default Value 178public static UIElement GetPlacementTarget(DependencyObject element) 181return (UIElement)element.GetValue(PlacementTargetProperty); 189public static void SetPlacementTarget(DependencyObject element, UIElement value) 347UIElement.AddHandler(element, ContextMenuOpeningEvent, handler); 357UIElement.RemoveHandler(element, ContextMenuOpeningEvent, handler); 376UIElement.AddHandler(element, ContextMenuClosingEvent, handler); 386UIElement.RemoveHandler(element, ContextMenuClosingEvent, handler); 391EventManager.RegisterClassHandler(typeof(UIElement), ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening));
System\Windows\Controls\Control.cs (10)
28EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 29EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 30EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 31EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 562if ((e.RoutedEvent == UIElement.PreviewMouseLeftButtonDownEvent) || 563(e.RoutedEvent == UIElement.PreviewMouseRightButtonDownEvent)) 694UIElement child = (UIElement)(this.GetVisualChild(0)); 716UIElement child = (UIElement)(this.GetVisualChild(0));
System\Windows\Controls\DataGrid.cs (15)
2286UIElement source = e.OriginalSource as UIElement; 5546UIElement startElement = Keyboard.FocusedElement as UIElement; 5880UIElement startElement = Keyboard.FocusedElement as UIElement; 6329UIElement sourceElement = e.OriginalSource as UIElement; 6344sourceElement = VisualTreeHelper.GetParent(sourceElement) as UIElement; 6567UIElement element = Mouse.DirectlyOver as UIElement; 6576element = VisualTreeHelper.GetParent(row) as UIElement; 6588UIElement element = Mouse.DirectlyOver as UIElement; 6597element = VisualTreeHelper.GetParent(cell) as UIElement;
System\Windows\Controls\DataGridCell.cs (2)
547DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 560DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement);
System\Windows\Controls\DataGridCellsPanel.cs (29)
82UIElement parent = VisualTreeHelper.GetParent(this) as UIElement; 96private static void MeasureChild(UIElement child, Size constraint) 530private UIElement GenerateChild( 550private UIElement GenerateChild( 558UIElement child = generator.GenerateNext(out newlyRealized) as UIElement; 621private void AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized) 660private void InsertRecycledContainer(int childIndex, UIElement container) 668private void InsertNewContainer(int childIndex, UIElement container) 676private void InsertContainer(int childIndex, UIElement container, bool isRecycled) 764UIElement child = _realizedChildren[realizedChildIndex]; 839UIElement child = GenerateChild(generator, constraint, column, ref childIndex, out childSize); 964UIElement child = generator.ContainerFromIndex(columnIndex) as UIElement; 1056UIElement child = children[i] as UIElement; 1168UIElement visualChild; 1169UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 1268public UIElement OldClippedChild 1273public UIElement NewClippedChild 1404ArrangeChild(children[childIndex] as UIElement, i, arrangeState); 1426UIElement child = children[additionalChildIndices[i]] as UIElement; 1446UIElement child, 1954_realizedChildren = new List<UIElement>(children.Count); 2361internal Geometry GetFrozenClipForChild(UIElement child) 2447private UIElement _clippedChildForFrozenBehaviour; 2449private List<UIElement> _realizedChildren;
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
41style.Setters.Add(new Setter(UIElement.IsHitTestVisibleProperty, false)); 42style.Setters.Add(new Setter(UIElement.FocusableProperty, false));
System\Windows\Controls\DataGridHelper.cs (11)
167public static T FindVisualParent<T>(UIElement element) where T : UIElement 169UIElement parent = element; 178parent = VisualTreeHelper.GetParent(parent) as UIElement; 195UIElement uielement = element as UIElement; 238UIElement element = (UIElement)cell; 287return panel.GetFrozenClipForChild((UIElement)cell); 302UIElement element = (UIElement)cell;
System\Windows\Controls\DatePicker.cs (1)
85EventManager.RegisterClassHandler(typeof(DatePicker), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
System\Windows\Controls\Decorator.cs (8)
63if (!(value is UIElement)) 65throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 73this.Child = (UIElement)value; 102public virtual UIElement Child 189UIElement child = Child; 205UIElement child = Child; 213internal UIElement IntChild 222private UIElement _child;
System\Windows\Controls\DefinitionBase.cs (2)
800internal void EnsureDeferredValidation(UIElement layoutUpdatedHost) 958private UIElement _layoutUpdatedHost; // UIElement for which layout updated event handler is registered
System\Windows\Controls\DockPanel.cs (6)
98public static Dock GetDock(UIElement element) 111public static void SetDock(UIElement element, Dock dock) 120UIElement uie = d as UIElement; //it may be anyting, like FlowDocument... bug 1237275 209UIElement child = children[i]; 274UIElement child = children[i];
System\Windows\Controls\DocumentViewer.cs (1)
850/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Expander.cs (1)
289/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\FlowDocumentReader.cs (5)
757/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 949if (focusedElement is UIElement) 951((UIElement)focusedElement).Focus(); 1552if (CurrentViewer != null && CurrentViewer is UIElement) 1554((UIElement)CurrentViewer).Focus();
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
743/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1091UIElement targetUIElement; 1107else if (args.TargetObject is UIElement) 1109targetUIElement = (UIElement)args.TargetObject;
System\Windows\Controls\Frame.cs (1)
525/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Grid.cs (24)
70UIElement cell = value as UIElement; 77throw (new ArgumentException(SR.Format(SR.Grid_UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value))); 122public static void SetColumn(UIElement element, int value) 135public static int GetColumn(UIElement element) 147public static void SetRow(UIElement element, int value) 160public static int GetRow(UIElement element) 172public static void SetColumnSpan(UIElement element, int value) 185public static int GetColumnSpan(UIElement element) 197public static void SetRowSpan(UIElement element, int value) 210public static int GetRowSpan(UIElement element) 222public static void SetIsSharedSizeScope(UIElement element, bool value) 234public static bool GetIsSharedSizeScope(UIElement element) 364UIElement child = children[i]; 662UIElement child = children[i]; 681UIElement cell = children[currentCell]; 884UIElement child = children[i]; 1346UIElement child = InternalChildren[cell]; 2105definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2144definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2194definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi); 2218final = UIElement.RoundLayoutValue(finalOld, dpi); 2244double dpiIncrement = UIElement.RoundLayoutValue(1.0, dpi); 2654double roundedSize = UIElement.RoundLayoutValue(def.SizeCache, dpi);
System\Windows\Controls\GridSplitter.cs (4)
291/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 368/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 884delta = UIElement.RoundLayoutValue(delta, dpi.DpiScaleX); 892delta = UIElement.RoundLayoutValue(delta, dpi.DpiScaleY);
System\Windows\Controls\GridViewColumnHeader.cs (2)
241/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 534/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
255UIElement child = children[GetVisualIndex(i)]; 345UIElement child = children[GetVisualIndex(i)]; 783/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\GridViewRowPresenter.cs (6)
140UIElement child = children[column.ActualIndex]; 216UIElement child = children[column.ActualIndex]; 400internal List<UIElement> ActualCells 404List<UIElement> list = new List<UIElement>(); 415UIElement cell = children[indexList[i]];
System\Windows\Controls\GroupBox.cs (1)
36/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\GroupItem.cs (1)
33/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Image.cs (1)
177/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\InkCanvas.cs (37)
275if (e.Property == UIElement.RenderTransformProperty || 433public static double GetTop(UIElement element) 445public static void SetTop(UIElement element, double length) 467public static double GetBottom(UIElement element) 479public static void SetBottom(UIElement element, double length) 501public static double GetLeft(UIElement element) 513public static void SetLeft(UIElement element, double length) 535public static double GetRight(UIElement element) 547public static void SetRight(UIElement element, double length) 560UIElement uie = d as UIElement; 651_selectionAdorner.SetBinding(UIElement.VisibilityProperty, activeEditingModeBinding); 1703public ReadOnlyCollection<UIElement> GetSelectedElements() 1735public void Select(IEnumerable<UIElement> selectedElements) 1746public void Select(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 1757UIElement[] validElements = ValidateSelectedElements(selectedElements); 2098List<UIElement> newElements = new List<UIElement>(); 2114foreach ( UIElement element in newElements ) 2311ChangeInkCanvasSelection(new StrokeCollection(), Array.Empty<UIElement>()); 2327CoreChangeSelection(new StrokeCollection(), Array.Empty<UIElement>(), raiseSelectionChangedEvent); 2336internal void ChangeInkCanvasSelection(StrokeCollection strokes, UIElement[] elements) 2351UIElement[] validElements = elements; 2419private void CoreChangeSelection(StrokeCollection validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged) 2508private UIElement[] ValidateSelectedElements(IEnumerable<UIElement> selectedElements) 2512return Array.Empty<UIElement>(); 2515List<UIElement> elements = new List<UIElement>(); 2516foreach (UIElement element in selectedElements) 2539private bool InkCanvasIsAncestorOf(UIElement element) 2670IList<UIElement> elements = GetSelectedElements(); 2675removeSelectedElements ? new List<UIElement>() : elements, 2688foreach ( UIElement element in elements ) 2725IEnumerable<UIElement> children = null; 2731UIElement[] uiElementArray = new UIElement[uiElementCollection.Count];
System\Windows\Controls\InkPresenter.cs (1)
209UIElement child = Child;
System\Windows\Controls\ItemsControl.cs (16)
1146UIElement ui = container as UIElement; 1163ui = VisualTreeHelper.GetParent(ui) as UIElement; 1323if (p != null && (visual is UIElement)) 1325p.Children.RemoveNoVerify((UIElement)visual); 1541return (item is UIElement); 2916UIElement element, 2925UIElement element, 2952UIElement element, 3043UIElement element, 3166UIElement focusedElement = e.OriginalSource as UIElement; 3176UIElement itemContainer = itemsControl._focusedInfo.Container as UIElement; 3237UIElement container = info.Container as UIElement;
System\Windows\Controls\Label.cs (9)
83typeof(UIElement), 86(UIElement) null, 95public UIElement Target 97get { return (UIElement) GetValue(TargetProperty); } 105UIElement oldElement = (UIElement) e.OldValue; 106UIElement newElement = (UIElement) e.NewValue; 160/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListBox.cs (1)
216/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListBoxItem.cs (1)
229/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListView.cs (1)
217/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\MediaElement.cs (1)
688/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Menu.cs (1)
114/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\MenuItem.cs (6)
1276/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1593UIElement uiElement = source as UIElement; 2246internal static void SetInsideContextMenuProperty(UIElement element, bool value) 2643private static bool GetBoolField(UIElement element, BoolField field) 2648private static void SetBoolField(UIElement element, BoolField field, bool value)
System\Windows\Controls\Page.cs (4)
576UIElement child = this.GetVisualChild(0) as UIElement; 601UIElement child = this.GetVisualChild(0) as UIElement;
System\Windows\Controls\Panel.cs (15)
87UIElement uie = value as UIElement; 91throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 658UIElement child; 659while ((child = generator.GenerateNext() as UIElement) != null) 718UIElement e = generator.GenerateNext() as UIElement; 749UIElement e = generator.GenerateNext(out isNewlyRealized) as UIElement; 775UIElement[] elements = new UIElement[containerCount]; 914public static void SetZIndex(UIElement element, int value) 926public static int GetZIndex(UIElement element) 944UIElement child = d as UIElement;
System\Windows\Controls\PasswordBox.cs (1)
431/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\PopupControlService.cs (14)
63UIElement rootAsUIElement = source != null ? source.RootVisual as UIElement : null; 853UIElement ownerUIE; 855if ((ownerUIE = owner as UIElement) != null) 871UIElement uieParent = KeyboardNavigation.GetParentUIElementFromContentElement(ownerCE, ref ichParent); 972if (sourceDO is UIElement uiElement) 1050UIElement uie = GetTarget(o); 1153UIElement uie = o as UIElement; 1184private static UIElement GetTarget(DependencyObject o) 1186UIElement uie = o as UIElement; 1195uie = ceParent as UIElement; 1279UIElement uie = GetTarget(owner);
System\Windows\Controls\Primitives\BulletDecorator.cs (9)
75public UIElement Bullet 101UIElement child = Child; 237UIElement bullet = Bullet; 238UIElement content = Child; 268UIElement bullet = Bullet; 269UIElement content = Child; 323private double GetFirstLineHeight(UIElement element) 327UIElement text = FindText(element); 441private UIElement _bullet = null;
System\Windows\Controls\Primitives\ButtonBase.cs (2)
105/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 142e.Target = (UIElement)sender;
System\Windows\Controls\Primitives\CalendarItem.cs (2)
431foreach (UIElement element in this.YearView.Children) 992monthCell.AddHandler(UIElement.PreviewKeyDownEvent, new RoutedEventHandler(CellOrMonth_PreviewKeyDown), true);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
139UIElement child = (VisualTreeHelper.GetChildrenCount(this) > 0) ? VisualTreeHelper.GetChild(this, 0) as UIElement : null;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
294var parent = this.Parent as UIElement;
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
542/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
365/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1143if (args.TargetObject is UIElement targetObject)
System\Windows\Controls\Primitives\LayoutInformation.cs (2)
53public static UIElement GetLayoutExceptionElement(Dispatcher dispatcher) 57UIElement e = null;
System\Windows\Controls\Primitives\Popup.cs (33)
106typeof(UIElement), 116public UIElement Child 118get { return (UIElement) GetValue(ChildProperty); } 126UIElement oldChild = (UIElement) e.OldValue; 127UIElement newChild = (UIElement) e.NewValue; 174private static void RegisterPopupWithPlacementTarget(Popup popup, UIElement placementTarget) 205private static void UnregisterPopupFromPlacementTarget(Popup popup, UIElement placementTarget) 230private void UpdatePlacementTargetRegistration(UIElement oldValue, UIElement newValue) 633typeof(UIElement), 645public UIElement PlacementTarget 647get { return (UIElement) GetValue(PlacementTargetProperty); } 661ctrl.UpdatePlacementTargetRegistration((UIElement)e.OldValue, (UIElement)e.NewValue); 665UnregisterPopupFromPlacementTarget(ctrl, (UIElement)e.OldValue); 867public static void CreateRootPopup(Popup popup, UIElement child) 879internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty) 978internal static bool IsRootedInPopup(Popup parentPopup, UIElement element) 1294UIElement element = value as UIElement; 1297throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 1356UIElement placementTarget = PlacementTarget; 1534UIElement child = Child; 2302UIElement target = GetTarget() as UIElement; 2380UIElement child = Child; 2390UIElement target = GetTarget() as UIElement; 3277UIElement target = popup.PlacementTarget; 3534var target = popup?.GetTarget() as UIElement;
System\Windows\Controls\Primitives\PopupRoot.cs (3)
79/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 90internal UIElement Child 303UIElement child = Child;
System\Windows\Controls\Primitives\RepeatButton.cs (1)
182/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
122/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (5)
362internal override UIElement TemplateChild 370UIElement oldTemplate = base.TemplateChild; 471UIElement child = this.GetVisualChild(0) as UIElement; 501/// Override of <seealso cref="UIElement.GetLayoutClip"/>.
System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (2)
53UIElement element = d as UIElement;
System\Windows\Controls\Primitives\Selector.cs (2)
1316UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement;
System\Windows\Controls\Primitives\StatusBar.cs (1)
170/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\StatusBarItem.cs (1)
34/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\TabPanel.cs (8)
94foreach (UIElement child in InternalChildren) 138foreach (UIElement child in InternalChildren) 181/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 199private Size GetDesiredSizeWithoutMargin(UIElement element) 214foreach (UIElement child in InternalChildren) 252foreach (UIElement child in InternalChildren) 301foreach (UIElement child in InternalChildren) 321foreach (UIElement child in InternalChildren)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1607if (visual is UIElement) 1609((UIElement)visual).AddToEventRoute(route, args);
System\Windows\Controls\Primitives\Thumb.cs (1)
203/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ToggleButton.cs (1)
235/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (7)
68List<UIElement> generatedItemsCollection = toolBarPanel.GeneratedItemsCollection; 73UIElement child = generatedItemsCollection[i]; 99UIElement child = children[i] as UIElement; 115UIElement child = children[i] as UIElement; 201UIElement child = children[i];
System\Windows\Controls\Primitives\ToolBarPanel.cs (15)
59UIElement child = _generatedItemsCollection[i]; 293UIElement child = (UIElement)children[i]; 348_generatedItemsCollection = new List<UIElement>(children.Count); 365UIElement child = children[i]; 408UIElement e = generator.GenerateNext() as UIElement; 423private void RemoveChild(UIElement child) 461UIElement e = generator.GenerateNext(out isNewlyRealized) as UIElement; 487UIElement[] elements = new UIElement[containerCount]; 491UIElement child = _generatedItemsCollection[fromPos.Index + i]; 523internal List<UIElement> GeneratedItemsCollection 532private List<UIElement> _generatedItemsCollection;
System\Windows\Controls\Primitives\UniformGrid.cs (3)
172UIElement child = InternalChildren[i]; 208foreach (UIElement child in InternalChildren) 264UIElement child = InternalChildren[i];
System\Windows\Controls\ProgressBar.cs (3)
181_glow.InvalidateProperty(UIElement.OpacityMaskProperty); 213_glow.SetCurrentValue(UIElement.OpacityMaskProperty, mask); 290/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\RadioButton.cs (1)
222/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\RichTextBox.cs (2)
284/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 409UIElement renderScope = this.RenderScope;
System\Windows\Controls\ScrollViewer.cs (11)
951UIElement currentFocusUIElement = focusedElement as UIElement; 1141UIElement child = (count > 0) ? this.GetVisualChild(0) as UIElement : null; 2240UIElement uie = child as UIElement; 2266UIElement uie = visi as UIElement; 2436/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2717hsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedHorizontalScrollBarVisibilityProperty)); 2727vsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedVerticalScrollBarVisibilityProperty));
System\Windows\Controls\Separator.cs (1)
39/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\SinglePageViewer.cs (1)
363/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Slider.cs (1)
1270/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Stack.cs (6)
581UIElement child = children[i]; 741UIElement child = (UIElement)children[i]; 833? ((UIElement)children[i]).DesiredSize.Width 834: ((UIElement)children[i]).DesiredSize.Height; 859return (children.IndexOf((UIElement)dependencyObjectChild));
System\Windows\Controls\StickyNote.cs (6)
568UIElement innerControl = this.Content.InnerControl as UIElement; 599UIElement contentContainer = GetContentContainer(); 702private UIElement GetContentContainer() 704return GetTemplateChild(SNBConstants.c_ContentControlId) as UIElement; 1449Path = new PropertyPath(UIElement.IsKeyboardFocusWithinProperty),
System\Windows\Controls\TabControl.cs (1)
301/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TabItem.cs (1)
255/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TextAdaptor.cs (1)
237UIElement renderScope = textView.RenderScope;
System\Windows\Controls\TextBlock.cs (9)
97void IContentHost.OnChildDesiredSizeChanged(UIElement child) 139if (value is UIElement) 141value = new InlineUIContainer((UIElement)value); 1872protected virtual void OnChildDesiredSizeChangedCore(UIElement child) 1878/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 3653if (embeddedObject is ContentElement || embeddedObject is UIElement) 3655if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 3712if (fd != null && d is UIElement) 3714fd.OnChildDesiredSizeChanged((UIElement)d);
System\Windows\Controls\TextBox.cs (1)
1002/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ToolBar.cs (6)
440/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 629UIElement newFocusElement = null; 630UIElement currentFocusElement = e.Source as UIElement; 641newFocusElement = VisualTreeHelper.GetChild(itemsHost, 0) as UIElement; 644newFocusElement = VisualTreeHelper.GetChild(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
System\Windows\Controls\ToolTip.cs (3)
237public UIElement PlacementTarget 239get { return (UIElement) GetValue(PlacementTargetProperty); } 438/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ToolTipService.cs (10)
160typeof(UIElement), // Type 162new FrameworkPropertyMetadata((UIElement)null)); // Default Value 170public static UIElement GetPlacementTarget(DependencyObject element) 173return (UIElement)element.GetValue(PlacementTargetProperty); 181public static void SetPlacementTarget(DependencyObject element, UIElement value) 515UIElement.AddHandler(element, ToolTipOpeningEvent, handler); 525UIElement.RemoveHandler(element, ToolTipOpeningEvent, handler); 546UIElement.AddHandler(element, ToolTipClosingEvent, handler); 556UIElement.RemoveHandler(element, ToolTipClosingEvent, handler); 571EventManager.RegisterClassHandler(typeof(UIElement), FindToolTipEvent, new FindToolTipEventHandler(OnFindToolTip));
System\Windows\Controls\TreeView.cs (3)
755UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement; 837/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TreeViewItem.cs (1)
1047/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\UIElementCollection.cs (33)
32public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 85public virtual void CopyTo(UIElement[] array, int index) 107public virtual UIElement this[int index] 109get { return _visualChildren[index] as UIElement; } 121UIElement e = vc[index] as UIElement; 138internal void SetInternal(int index, UIElement item) 158public virtual int Add(UIElement element) 169internal int AddInternal(UIElement element) 186public virtual int IndexOf(UIElement element) 195public virtual void Remove(UIElement element) 202internal void RemoveInternal(UIElement element) 214internal virtual void RemoveNoVerify(UIElement element) 223public virtual bool Contains(UIElement element) 264UIElement e = visuals[i] as UIElement; 279public virtual void Insert(int index, UIElement element) 290internal void InsertInternal(int index, UIElement element) 310UIElement e = vc[index] as UIElement; 361UIElement e = visuals[i] as UIElement; 383private UIElement Cast(object value) 388UIElement element = value as UIElement; 411return Contains(value as UIElement); 419return IndexOf(value as UIElement); 449Remove(value as UIElement); 488protected void SetLogicalParent(UIElement element) 497protected void ClearLogicalParent(UIElement element) 505internal UIElement VisualParent 511private void ValidateElement(UIElement element) 534private readonly UIElement _visualParent;
System\Windows\Controls\UserControl.cs (1)
44/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Validation.cs (5)
395if (adornerSite is UIElement { IsVisible: false } siteUIElement) 409if (sender is not UIElement adornerSite) 427if (adornerSite is not UIElement siteUIElement) 580else if (source is UIElement) 581((UIElement)source).RaiseEvent(args);
System\Windows\Controls\ViewBox.cs (6)
160private UIElement InternalChild 165if (vc.Count != 0) return vc[0] as UIElement; 191public override UIElement Child 202UIElement old = InternalChild; 304UIElement child = InternalChild; 336UIElement child = InternalChild;
System\Windows\Controls\ViewPort3D.cs (1)
149/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\VirtualizingPanel.cs (6)
34public double GetItemOffset(UIElement child) 44protected virtual double GetItemOffsetCore(UIElement child) 409protected void AddInternalChild(UIElement child) 422protected void InsertInternalChild(int index, UIElement child) 441internal static void AddInternalChild(UIElementCollection children, UIElement child) 447internal static void InsertInternalChild(UIElementCollection children, int index, UIElement child)
System\Windows\Controls\VirtualizingStackPanel.cs (48)
532_scrollData._offset.X = UIElement.RoundLayoutValue(_scrollData._offset.X, dpi.DpiScaleX); 533_scrollData._computedOffset.X = UIElement.RoundLayoutValue(_scrollData._computedOffset.X, dpi.DpiScaleX); 660_scrollData._offset.Y = UIElement.RoundLayoutValue(_scrollData._offset.Y, dpi.DpiScaleY); 661_scrollData._computedOffset.Y = UIElement.RoundLayoutValue(_scrollData._computedOffset.Y, dpi.DpiScaleY); 1683UIElement child; 1691child = generator.GenerateNext(out newlyRealized) as UIElement; 2207UIElement firstContainerInViewport = null; 2594firstContainerInViewport = children[firstItemInViewportChildIndex] as UIElement; 3377UIElement child = null; 3389child = (UIElement)children[i]; 3418UIElement containerBeforeViewport = null; 3427containerBeforeViewport = (UIElement)children[j]; 5852Size childDesiredSize = ((UIElement)children[i]).DesiredSize; 6422private void SetItemsHostInsetForChild(int index, UIElement child, IContainItemStorage itemStorageProvider, bool isHorizontal) 6533private ItemsControl GetScrollingItemsControl(UIElement container) 6665UIElement child, 7456UIElement child = children[i] as UIElement; 7608UIElement child = children[i] as UIElement; 8075object item = ((ItemContainerGenerator)generator).ItemFromContainer((UIElement)children[childIndex]); 8174UIElement child = null; 8187child = generator.GenerateNext(out newlyRealized) as UIElement; 8199child = (UIElement)children[childIndex]; 8381UIElement child, 8528UIElement child, 8563UIElement child, 8706private void InsertNewContainer(int childIndex, UIElement container) 8717private bool InsertRecycledContainer(int childIndex, UIElement container) 8729private bool InsertContainer(int childIndex, UIElement container, bool isRecycled) 8881private bool AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized, bool isBeforeViewport) 8953UIElement child = Generator.GenerateNext(out newlyRealized) as UIElement; 9057UIElement child; 9093child = (UIElement)children[childIndex]; 9176_realizedChildren = new List<UIElement>(children.Count); 9197foreach (UIElement child in InternalChildren) 9245UIElement child = _realizedChildren[realizedChildIndex]; 9270UIElement visualChild; 9271UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 9424private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 9571UIElement firstContainerInViewport, 10973protected override double GetItemOffsetCore(UIElement child) 11039double distance = vp.GetItemOffset((UIElement)child); 11248UIElement container = null; 11252container = (UIElement)children[i]; 11695private List<UIElement> _realizedChildren; 13000foreach (UIElement child in RealizedChildren)
System\Windows\Controls\WrapPanel.cs (6)
228UIElement child = children[i] as UIElement; 288UIElement child = children[i] as UIElement; 337UIElement child = children[i] as UIElement;
System\Windows\Data\BindingGroup.cs (4)
590UIElement layoutElement = Helper.FindMentor(this) as UIElement; 904UIElement layoutElement = mentor as UIElement;
System\Windows\Documents\Adorner.cs (6)
41protected Adorner(UIElement adornedElement) 75UIElement ch = this.GetVisualChild(i) as UIElement; 83/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 170public UIElement AdornedElement 238private readonly UIElement _adornedElement;
System\Windows\Documents\AdornerDecorator.cs (2)
22public override UIElement Child 151public override UIElement Child
System\Windows\Documents\AdornerLayer.cs (12)
207foreach (UIElement key in ElementMap.Keys) 228public void Update(UIElement element) 253public Adorner[] GetAdorners(UIElement element) 434/// Override for <seealso cref="UIElement.ArrangeCore" /> 675private void Clear(UIElement element) 698private void UpdateElementAdorners(UIElement element) 763private void UpdateAdorner(UIElement element) 790UIElement[] keys = new UIElement[keyCollection.Count]; 795UIElement elTemp = (UIElement)keys[i]; 811Clear((UIElement)removeList[i]);
System\Windows\Documents\BlockUIContainer.cs (4)
47public BlockUIContainer(UIElement uiElement) 67public UIElement Child 71return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 83UIElement child = Child;
System\windows\Documents\CaretElement.cs (2)
919_caretElement.ApplyAnimationClock(UIElement.OpacityProperty, _blinkAnimationClock); 925_caretElement.ApplyAnimationClock(UIElement.OpacityProperty, null);
System\Windows\Documents\ColumnResizeAdorner.cs (2)
30internal ColumnResizeAdorner(UIElement scope) : base(scope) 130internal void Initialize(UIElement renderScope, double xPos, double yPos, double height)
System\Windows\Documents\DocumentSequence.cs (4)
151UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 153UIElement uiElementRet = null; 1124UIElement e; 1125if ((e = ((object)base.Visual) as UIElement) != null)
System\Windows\Documents\DocumentSequenceTextView.cs (3)
482internal override UIElement RenderScope 488while (visual != null && !(visual is UIElement)) 493return visual as UIElement;
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
54if (property == UIElement.BitmapEffectProperty)
System\Windows\Documents\FixedDocument.cs (6)
196UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 198UIElement uiElementRet = null; 490fixedPosition = new FixedPosition(fixedPage.CreateFixedNode(pageIndex, (UIElement)element), 0); 1304private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement)); 1407UIElement e; 1408if ((e = ((object)base.Visual) as UIElement)!=null)
System\Windows\Documents\FixedDSBuilder.cs (5)
28internal NameHashFixedNode(UIElement e, int i) 32internal UIElement uiElement; 44public void BuildNameHashTable(String Name, UIElement e, int indexToFixedNodes) 102private void AddFixedNodeInFlow(int index, UIElement e) 114e = _fixedPage.GetElement(fn) as UIElement;
System\Windows\Documents\FixedHighlight.cs (3)
34internal FixedHighlight(UIElement element, int beginOffset, int endOffset, FixedHighlightType t, 198internal UIElement Element 228private readonly UIElement _element; // the Glyphs element, or possibly an image
System\Windows\Documents\FixedHyperlink.cs (1)
25UIElement FindElementByID(string elementID, out FixedPage rootFixedPage);
System\Windows\Documents\FixedPage.cs (24)
81/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 183UIElement uie = value as UIElement; 187throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)); 216public static double GetLeft(UIElement element) 229public static void SetLeft(UIElement element, double length) 244public static double GetTop(UIElement element) 257public static void SetTop(UIElement element, double length) 272public static double GetRight(UIElement element) 285public static void SetRight(UIElement element, double length) 300public static double GetBottom(UIElement element) 313public static void SetBottom(UIElement element, double length) 325public static Uri GetNavigateUri(UIElement element) 336public static void SetNavigateUri(UIElement element, Uri uri) 742foreach (UIElement child in Children) 765foreach (UIElement child in Children) 827UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 829UIElement uiElementRet = null; 834UIElement uiElement; 844uiElementRet = node as UIElement; 853internal FixedNode CreateFixedNode(int pageIndex, UIElement e) 1014childIndex = parentFP.Children.IndexOf((UIElement)e); 1018childIndex = parentC.Children.IndexOf((UIElement)e); 1047private FixedNode _CreateFixedNode(int pageIndex, UIElement e)
System\Windows\Documents\FixedSOMElement.cs (1)
68public static FixedSOMElement CreateFixedSOMElement(FixedPage page, UIElement uiElement, FixedNode fixedNode, int startIndex, int endIndex)
System\Windows\Documents\FixedTextBuilder.cs (14)
946elements.Current as UIElement, 1179public LogicalHyperlink(Uri uri, Geometry geom, UIElement uiElement) 1212public UIElement UIElement 1233private UIElement _uiElement; 1257public void AddLogicalHyperlink(Uri uri, Geometry geometry, UIElement uiElement) 1266public Uri GetUri(FixedSOMElement element, FixedPage p, out UIElement shadowElement) 1269UIElement e = p.GetElement(element.FixedNode) as UIElement; 1316public void MarkAsUsed(UIElement uiElement) 1395foreach (UIElement child in children) 1460UIElement shadowHyperlink; 1718private void _SetHyperlink(Uri navUri, FixedNode node, UIElement shadowHyperlink) 1731UIElement uiElement = _fixedPage.GetElement(node) as UIElement;
System\Windows\Documents\FixedTextContainer.cs (3)
427UIElement e; 430e = (UIElement)o; 440e = (UIElement)o;
System\Windows\Documents\FixedTextView.cs (7)
85UIElement e; 670internal override UIElement RenderScope 676while (visual != null && !(visual is UIElement)) 681return visual as UIElement; 762private bool _HitTest(Point pt, out UIElement e) 774e = (UIElement) v; 1278private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\Documents\FlowDocument.cs (2)
936internal void OnChildDesiredSizeChanged(UIElement child) 1202OnChildDesiredSizeChanged(arg as UIElement);
System\Windows\Documents\Glyphs.cs (1)
690((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)
1846private UIElement RenderScope
System\Windows\Documents\InlineCollection.cs (4)
67UIElement uiElement = value as UIElement; 103public void Add(UIElement uiElement) 232private int AddUIElement(UIElement uiElement, bool returnIndex)
System\Windows\Documents\InlineUIContainer.cs (6)
48public InlineUIContainer(UIElement childUIElement) : this(childUIElement, null) 62public InlineUIContainer(UIElement childUIElement, TextPointer insertionPosition) 91public UIElement Child 95return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 107UIElement child = Child; 155UIElement childElement = this.Child;
System\Windows\Documents\ITextRange.cs (1)
110UIElement GetUIElementSelected();
System\Windows\Documents\ITextView.cs (1)
496UIElement RenderScope { get; }
System\Windows\Documents\RubberbandSelector.cs (2)
209foreach (UIElement child in vc) 607private UIElement _scope; // element to which we are attached
System\windows\Documents\TextEditor.cs (2)
289internal static ITextView GetTextView(UIElement scope) 385EventManager.RegisterClassHandler(controlType, UIElement.LostFocusEvent, new RoutedEventHandler(OnLostFocus));
System\windows\Documents\TextEditorContextMenu.cs (2)
113if (contextMenu == null || !(e.TargetElement is UIElement)) 239UIElement placementTarget = ((ContextMenu)sender).PlacementTarget;
System\windows\Documents\TextEditorMouse.cs (4)
687UIElement uiElement = GetUIElementWhenMouseOver(This, mouseMovePoint); 710private static UIElement GetUIElementWhenMouseOver(TextEditor This, Point mouseMovePoint) 747return mouseMovePosition.GetAdjacentElement(mouseMovePosition.LogicalDirection) as UIElement; 757UIElement renderScope = textEditor.TextView.RenderScope;
System\Windows\Documents\TextElement.cs (2)
800UIElement uie = value as UIElement;
System\Windows\Documents\TextPointer.cs (7)
507/// element and has <see cref="UIElement"/> as atomic symbol in a requested direction.</para> 632/// the <see cref="UIElement"/> class.</para> 795/// and a <see cref="UIElement"/>.</para> 799/// <para><see cref="UIElement"/> object can be returned only when 831/// <para>- the whole <see cref="UIElement"/> as atomic embedded object.</para> 893/// <para>- the whole <see cref="UIElement"/> as atomic embedded object.</para> 2136internal void InsertUIElement(UIElement uiElement)
System\Windows\Documents\TextRange.cs (2)
177UIElement ITextRange.GetUIElementSelected() 867internal UIElement GetUIElementSelected()
System\Windows\Documents\TextRangeBase.cs (2)
1613internal static UIElement GetUIElementSelected(ITextRange range) 1633return start.GetAdjacentElement(LogicalDirection.Forward) as UIElement;
System\Windows\Documents\TextRangeEdit.cs (1)
877UIElement embeddedElement = ((BlockUIContainer)block).Child;
System\Windows\Documents\TextSchema.cs (14)
270elementType.Module == typeof(System.Windows.UIElement).Module; // presentationcore 835return typeof(UIElement).IsAssignableFrom(childType); 870return typeof(UIElement).IsAssignableFrom(childType); 1183UIElement.RenderTransformProperty, 1184UIElement.RenderTransformOriginProperty, 1185UIElement.OpacityProperty, 1186UIElement.OpacityMaskProperty, 1187UIElement.BitmapEffectProperty, 1188UIElement.BitmapEffectInputProperty, 1189UIElement.VisibilityProperty, 1190UIElement.ClipToBoundsProperty, 1191UIElement.ClipProperty, 1192UIElement.SnapsToDevicePixelsProperty, 1201UIElement.AllowDropProperty,
System\windows\Documents\TextSelection.cs (2)
2544if (element is UIElement && ((UIElement)element).IsKeyboardFocusWithin)
System\Windows\Documents\TextStore.cs (1)
2066internal UIElement RenderScope
System\windows\Documents\UIElementPropertyUndoUnit.cs (5)
48private UIElementPropertyUndoUnit(UIElement uiElement, DependencyProperty property, object oldValue) 101internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, HorizontalAlignment newValue) 107internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, FlowDirection newValue) 123private static void AddPrivate(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, object newValue) 164private readonly UIElement _uiElement;
System\Windows\Documents\ValidationHelper.cs (1)
120Invariant.Assert(child is UIElement);
System\Windows\FrameworkElement.cs (46)
323protected internal virtual void ParentLayoutInvalidated(UIElement child) 581internal virtual UIElement TemplateChild 1407if (item == null || (item is UIElement)) 2196UIElement layoutParent = null; 2209layoutParent = v as UIElement; 3142UIElement e = null; 4282/// Override for <seealso cref="UIElement.MeasureCore" />. 4333mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4334mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4335mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4336mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4381frameworkAvailableSize = UIElement.RoundLayoutSize(frameworkAvailableSize, dpi.DpiScaleX, dpi.DpiScaleY); 4462clippedDesiredWidth = UIElement.RoundLayoutValue(clippedDesiredWidth, dpi.DpiScaleX); 4463clippedDesiredHeight = UIElement.RoundLayoutValue(clippedDesiredHeight, dpi.DpiScaleY); 4508/// Override for <seealso cref="UIElement.ArrangeCore" />. 4562marginWidth = UIElement.RoundLayoutValue(marginWidth, dpi.DpiScaleX); 4563marginHeight = UIElement.RoundLayoutValue(marginHeight, dpi.DpiScaleY); 4670mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4671mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4672mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4673mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4696arrangeSize = UIElement.RoundLayoutSize(arrangeSize, dpi.DpiScaleX, dpi.DpiScaleY); 4709RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY); 4722clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4739clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4755clientSize = UIElement.RoundLayoutSize(clientSize, dpi.DpiScaleX, dpi.DpiScaleY); 4771offset.X = UIElement.RoundLayoutValue(offset.X, dpi.DpiScaleX); 4772offset.Y = UIElement.RoundLayoutValue(offset.Y, dpi.DpiScaleY); 4780/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 4862/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 4883mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4884mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4885mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4886mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4936clipRect = UIElement.RoundLayoutRect(clipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4957slotClipRect = UIElement.RoundLayoutRect(slotClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4974localClipRect = UIElement.RoundLayoutRect(localClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 5003slotRect = UIElement.RoundLayoutRect(slotRect, dpi.DpiScaleX, dpi.DpiScaleY); 5012localRect = UIElement.RoundLayoutRect(localRect, dpi.DpiScaleX, dpi.DpiScaleY); 5133internal static void InternalSetLayoutTransform(UIElement element, Transform layoutTransform) 5797UIElement uiElement = this._templatedParent as UIElement; 6071UIElement uiElement = modelTreeNode as UIElement; 6378private UIElement _templateChild; // Non-null if this FE has a child that was created as part of a template. 6384internal static DependencyObjectType UIElementDType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\FrameworkTemplate.cs (3)
755else if (dependencyProperty == UIElement.UidProperty) 1122UIElement rootElement = rootObject as UIElement;
System\Windows\Generated\FrameworkContentElement.cs (2)
362UIElement.SynchronizeForceInheritProperties(null, this, null, _parent); 366UIElement.SynchronizeForceInheritProperties(null, this, null, oldParent);
System\Windows\Generated\FrameworkElement.cs (2)
360UIElement.SynchronizeForceInheritProperties(this, null, null, _parent); 364UIElement.SynchronizeForceInheritProperties(this, null, null, oldParent);
System\Windows\Ink\Events.cs (9)
117private List<UIElement> _elements; 124internal InkCanvasSelectionChangingEventArgs(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 129List<UIElement> elements = 130new List<UIElement>(selectedElements); 163public void SetSelectedElements(IEnumerable<UIElement> selectedElements) 167List<UIElement> elements = 168new List<UIElement>(selectedElements); 177public ReadOnlyCollection<UIElement> GetSelectedElements() 179return new ReadOnlyCollection<UIElement>(_elements);
System\Windows\Input\KeyboardNavigation.cs (37)
492public FocusVisualAdorner(UIElement adornedElement, Style focusVisualStyle) : base(adornedElement) 508public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent, IContentHost contentHostParent, Style focusVisualStyle) 547((UIElement)GetVisualChild(0)).Measure(constraint); 624((UIElement)GetVisualChild(0)).Arrange(new Rect(new Point(), finalSize)); 750private UIElement _adorderChild; 755internal static UIElement GetParentUIElementFromContentElement(ContentElement ce) 761internal static UIElement GetParentUIElementFromContentElement(ContentElement ce, ref IContentHost ichParent) 775UIElement eParent = parent as UIElement; 785UIElement uielement = visualParent as UIElement; 874UIElement parentUIElement = GetParentUIElementFromContentElement(fce, ref parentICH); 1429UIElement uiElement = visual as UIElement; 1459if (current is UIElement || current is UIElement3D) 1473DependencyObject parentAsUIElement = parent as UIElement; 1516if (current is UIElement || current is UIElement3D) 1534DependencyObject parentAsUIElement = parent as UIElement; 1628if (current is UIElement || current is UIElement3D) 1643DependencyObject uiElement = e as UIElement; 1696if (current is UIElement || current is UIElement3D) 1709DependencyObject uiElement = e as UIElement; 1921UIElement uie = element as UIElement; 2362UIElement uiElement = element as UIElement; 2400UIElement parentUIElement = GetParentUIElementFromContentElement(ce, ref parentICH); 2722UIElement sourceUIElement = sourceElement as UIElement; 2731UIElement targetUIElement = targetElement as UIElement; 2760UIElement uiElement = sender as UIElement; 2776if (sender is UIElement) 2777((UIElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus)); 2989ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3021currentRectElement as UIElement,
System\Windows\Interop\ActiveXHost.cs (2)
63invalidatorMap[UIElement.VisibilityProperty] = new PropertyInvalidator(OnVisibilityInvalidated); 914args.Target = (UIElement)sender;
System\Windows\Interop\HwndHost.cs (1)
618/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (7)
56return typeof(System.Windows.UIElement); 58return typeof(System.Windows.UIElement); 60return typeof(System.Windows.UIElement); 62return typeof(System.Windows.UIElement); 64return typeof(System.Windows.UIElement); 79case 3: assembly = typeof(System.Windows.UIElement).Assembly; break; 787case 694: t = () => typeof(UIElement); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (53)
4115Type type = typeof(System.Windows.UIElement); 4116DependencyProperty dp = System.Windows.UIElement.ClipToBoundsProperty; 4118this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4134Type type = typeof(System.Windows.UIElement); 4135DependencyProperty dp = System.Windows.UIElement.FocusableProperty; 4137this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4153Type type = typeof(System.Windows.UIElement); 4154DependencyProperty dp = System.Windows.UIElement.IsEnabledProperty; 4156this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4172Type type = typeof(System.Windows.UIElement); 4173DependencyProperty dp = System.Windows.UIElement.RenderTransformProperty; 4175this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4191Type type = typeof(System.Windows.UIElement); 4192DependencyProperty dp = System.Windows.UIElement.VisibilityProperty; 4194this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4233typeof(System.Windows.UIElement), // type 4238SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.AdornedElementPlaceholder)target).Child = (System.Windows.UIElement)value; }, 4252typeof(System.Windows.UIElement), // type 4257SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.AdornerDecorator)target).Child = (System.Windows.UIElement)value; }, 4309typeof(System.Windows.UIElement), // type 4314SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.BlockUIContainer)target).Child = (System.Windows.UIElement)value; }, 4366typeof(System.Windows.UIElement), // type 4371SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Border)target).Child = (System.Windows.UIElement)value; }, 4385typeof(System.Windows.UIElement), // type 4390SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Child = (System.Windows.UIElement)value; }, 4674typeof(System.Windows.UIElement), // type 4679SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Decorator)target).Child = (System.Windows.UIElement)value; }, 5129typeof(System.Windows.UIElement), // type 5134SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.InkPresenter)target).Child = (System.Windows.UIElement)value; }, 5148typeof(System.Windows.UIElement), // type 5153SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.InlineUIContainer)target).Child = (System.Windows.UIElement)value; }, 6612typeof(System.Windows.UIElement), // type 6617SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Viewbox)target).Child = (System.Windows.UIElement)value; }, 7321Type type = typeof(System.Windows.UIElement); 7322DependencyProperty dp = System.Windows.UIElement.UidProperty; 7324this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8388Type type = typeof(System.Windows.UIElement); 8389DependencyProperty dp = System.Windows.UIElement.RenderTransformOriginProperty; 8391this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8430typeof(System.Windows.UIElement), // type 8435SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Bullet = (System.Windows.UIElement)value; }, 8445Type type = typeof(System.Windows.UIElement); 8446DependencyProperty dp = System.Windows.UIElement.SnapsToDevicePixelsProperty; 8448this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8464Type type = typeof(System.Windows.UIElement); 8466this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8473GetDelegate = delegate (object target) { return ((System.Windows.UIElement)target).CommandBindings; }, 8483Type type = typeof(System.Windows.UIElement); 8485this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 8492GetDelegate = delegate (object target) { return ((System.Windows.UIElement)target).InputBindings; }, 8753Type type = typeof(System.Windows.UIElement); 8754DependencyProperty dp = System.Windows.UIElement.AllowDropProperty; 8756this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11868typeof(System.Windows.UIElement),
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (1)
35UIElement.AddHandler(dObject, _member.RoutedEvent, handler);
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
105case 3: assembly = new Baml6Assembly(typeof(System.Windows.UIElement).Assembly); break;
System\Windows\Markup\BamlRecordReader.cs (8)
1093((element is UIElement) || 2831UIElement uiel = element as UIElement; 3302UIElement element = CurrentContext.ObjectData as UIElement; 3305SetDependencyValue(element, UIElement.UidProperty, bamlDefAttributeRecord.Value); 4419UIElement uiElement = element as UIElement;
System\Windows\Markup\KnownTypes.cs (6)
1941return System.Windows.UIElement.ClipToBoundsProperty; 1943return System.Windows.UIElement.FocusableProperty; 1945return System.Windows.UIElement.IsEnabledProperty; 1947return System.Windows.UIElement.RenderTransformProperty; 1949return System.Windows.UIElement.VisibilityProperty; 6241case 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)
99UIElement uiElement = args.Instance as UIElement;
System\Windows\Markup\XamlReader.cs (2)
367UIElement uiElement = args.Instance as UIElement;
System\Windows\Navigation\NavigationService.cs (2)
2309UIElement navigatorHost = INavigatorHost as UIElement;
System\Windows\Navigation\NavigationWindow.cs (1)
826/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\SizeChangedEventArgs.cs (3)
20/// The SizeChangeInfo that is used by <seealso cref="UIElement.OnRenderSizeChanged"/>. 22internal SizeChangedEventArgs(UIElement element, SizeChangedInfo info) 77private UIElement _element;
System\Windows\StyleHelper.cs (2)
1931internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1940UIElement child,
System\Windows\SystemResources.cs (1)
514_presentationCore = typeof(UIElement).Assembly;
System\Windows\Window.cs (7)
81UIElement.ManipulationCompletedEvent, 85UIElement.ManipulationInertiaStartingEvent, 1741/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1860UIElement child = this.GetVisualChild(0) as UIElement; 3396UIElement child = this.GetVisualChild(0) as UIElement;
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
403UIElement child = Child; 458UIElement child = Child;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
219UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
176UIElement child = Child; 221UIElement child = Child;
PresentationFramework.Aero2 (5)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
403UIElement child = Child; 458UIElement child = Child;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
219UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
176UIElement child = Child; 221UIElement child = Child;
PresentationFramework.AeroLite (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
176UIElement child = Child; 221UIElement child = Child;
PresentationFramework.Classic (4)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
657UIElement child = Child; 706UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
176UIElement child = Child; 221UIElement child = Child;
PresentationFramework.Luna (4)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
314UIElement child = Child; 369UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
176UIElement child = Child; 221UIElement child = Child;
PresentationFramework.Royale (4)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
272UIElement child = Child; 327UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
176UIElement child = Child; 221UIElement child = Child;
PresentationUI (8)
MS\Internal\Documents\Application\PageTextBox.cs (1)
138/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
236/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (6)
1214private void ChangeControlVisibility(UIElement uie) 1227private void ChangeControlVisibility(UIElement uie, bool visibility) 2426UIElement[] children = new UIElement[fixedPage.Children.Count]; 2428foreach (UIElement child in fixedPage.Children) 2435foreach (UIElement child in children)
ReachFramework (7)
AlphaFlattener\Utility.cs (2)
1573UIElement uiElement = visualBrush.Visual as UIElement;
Serialization\Manager\ReachSerializationUtils.cs (3)
690UIElement element = visual as UIElement; 1139UIElement uiElement,
Serialization\VisualTreeFlattener.cs (2)
512UIElement 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)
51UIElement element = menu.FooterPaneHost;
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
199UIElement helpPaneHost = OwningRibbon.HelpPaneHost;
Microsoft\Windows\Automation\Peers\RibbonContextualTabGroupAutomationPeer.cs (2)
42UIElement headerElement = tabGroup.Header as UIElement;
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
114UIElement filterHost = null;
Microsoft\Windows\Automation\Peers\RibbonMenuItemDataAutomationPeer.cs (8)
69UIElement owner = GetWrapper(); 137UIElement owner = GetWrapper(); 168UIElement owner = GetWrapper(); 198UIElement owner = GetWrapper(); 238UIElement owner = GetWrapper(); 262UIElement owner = GetWrapper(); 282UIElement owner = GetWrapper(); 336UIElement owner = GetWrapper();
Microsoft\Windows\Controls\ActivatingKeyTipEventArgs.cs (1)
67public UIElement PlacementTarget
Microsoft\Windows\Controls\Generated\TreeHelper.cs (4)
213UIElement element = pathStart as UIElement; 234UIElement element = pathStart as UIElement;
Microsoft\Windows\Controls\KeyTipAdorner.cs (7)
27public KeyTipAdorner(UIElement adornedElement, 28UIElement placementTarget, 96_keyTipControl.IsEnabled = (bool)keyTipElement.GetValue(UIElement.IsEnabledProperty); 160private UIElement PlacementTarget { get; set; } 191UIElement placementTarget = PlacementTarget; 239UIElement placementTarget = PlacementTarget; 291private double NudgeToRibbonGroupAxis(UIElement placementTarget, double verticalPosition)
Microsoft\Windows\Controls\KeyTipService.cs (6)
933if (!((bool)(exactMatchElement.GetValue(UIElement.IsEnabledProperty)))) 1342DependencyProperty.RegisterAttached("KeyTipAdornerHolder", typeof(UIElement), typeof(KeyTipService), new UIPropertyMetadata(null)); 1352UIElement uie = RibbonHelper.GetContainingUIElement(element); 1374UIElement adornedElement = RibbonHelper.GetContainingUIElement(activatingEventArgs.PlacementTarget ?? element); 1425UIElement adornedElement = (UIElement)element.GetValue(KeyTipAdornerHolderProperty);
Microsoft\Windows\Controls\Ribbon\Primitives\IProvideStarLayoutInfoBase.cs (1)
25UIElement TargetElement { get; }
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (6)
383UIElement child = children[i] as UIElement; 453UIElement child = children[i]; 594UIElement child = (UIElement)children[i]; 625public UIElement TargetElement
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (4)
337UIElement child = children[i] as UIElement; 411UIElement child = children[i] as UIElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (11)
63UIElement child = children[i]; 145private static bool IsStarChild(UIElement child) 151private static bool IsStarChild(UIElement child, out double weight) 207UIElement child = children[i]; 274UIElement child = children[i]; 307UIElement child = children[i]; 349UIElement child = children[columnChildIndex]; 380private static bool CanChildStretch(UIElement child) 389UIElement contentChild = ribbonControl.ContentChild; 430public UIElement TargetElement 437return itemsPresenter.TemplatedParent as UIElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
306foreach (UIElement child in this.Children)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (8)
116foreach (UIElement child in InternalChildren) 158UIElement starLayoutTarget = starLayoutInfoProvider.TargetElement; 211HashSet<UIElement> starLayoutTargets = GetStarLayoutProviderTargets(); 221UIElement child = children[i]; 258private HashSet<UIElement> GetStarLayoutProviderTargets() 260HashSet<UIElement> targets = new HashSet<UIElement>(); 264UIElement starLayoutTarget = starProvider.TargetElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (3)
23UIElement child = Children[i]; 44UIElement child = (UIElement)children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (16)
37UIElement childToAdd = Generator.GenerateNext() as UIElement; 58UIElement childToMove = GeneratedChildren[args.OldPosition.Index]; 109private List<UIElement> _generatedChildren; 111internal List<UIElement> GeneratedChildren 128_generatedChildren = new List<UIElement>(); 139UIElement child; 142while ((child = Generator.GenerateNext() as UIElement) != null) 176List<UIElement> generatedItems = GeneratedChildren; 182UIElement generatedChild = generatedItems[i]; 247UIElement parent = VisualTreeHelper.GetParent(this) as UIElement; 276UIElement child = (UIElement)children[i]; 314UIElement currentChild = InternalChildren[j]; 328UIElement currentChild = GeneratedChildren[k];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (8)
113foreach (UIElement child in InternalChildren) 249UIElement child = children[index]; 405UIElement child = children[i]; 454UIElement child = children[i]; 488foreach (UIElement element in children) 542foreach (UIElement element in children) 606foreach (UIElement element in InternalChildren) 671UIElement child = children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (2)
194UIElement qat = Ribbon.QatTopHost; 204UIElement titleHost = Ribbon.TitleHost;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (18)
66private UIElement _qatTopHost = null; // ContentPresenter hosting QuickAccessToolBar 67private UIElement _titleHost = null; // ContentPresenter hosting the Title 68private UIElement _helpPaneHost = null; // ContentPresenter hosting the HelpPaneContent 665internal UIElement QatTopHost 673internal UIElement TitleHost 681internal UIElement HelpPaneHost 765_qatTopHost = this.GetTemplateChild(Ribbon.QatHostTemplateName) as UIElement; 766_titleHost = this.GetTemplateChild(Ribbon.TitleHostTemplateName) as UIElement; 767_helpPaneHost = this.GetTemplateChild(Ribbon.HelpPaneTemplateName) as UIElement; 1293!((UIElement)(ribbon._itemsPresenterPopup.Parent)).IsArrangeValid)) 2381ContextMenuOriginalSource = e.OriginalSource as UIElement; 2385internal UIElement ContextMenuOriginalSource 2438UIElement originalSource = args.OriginalSource as UIElement; 2441originalSource = FindElementThatCanBeAddedToQAT(originalSource) as UIElement; 2539UIElement originalSource = args.OriginalSource as UIElement; 2632e.CloneInstance = (UIElement)RibbonHelper.CreateClone(e.InstanceToBeCloned, allowTransformations);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (9)
267internal UIElement FooterPaneHost 272internal UIElement AuxiliaryPaneHost 395UIElement auxiliaryPaneHost = AuxiliaryPaneHost; 411UIElement footerPaneHost = FooterPaneHost; 427UIElement subMenuScrollViewer = SubMenuScrollViewer; 447UIElement footerPaneHost = FooterPaneHost; 470UIElement popupChild = _popup.TryGetChild(); 488UIElement auxilaryPaneHost = AuxiliaryPaneHost; 518UIElement auxilaryPaneHost = AuxiliaryPaneHost;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (3)
543_clonedElement = logicalElement as UIElement; 950UIElement targetFocusOnFalse = null; 1686private UIElement _clonedElement;
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
181internal UIElement ContentChild
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (8)
72private static bool CanRaiseDismissPopups(UIElement dismissPopupSource) 99UIElement dismissPopupSource = contextMenu.GetDismissPopupSource(); 139UIElement uie = current as UIElement; 180private UIElement GetDismissPopupSource() 182UIElement placementTarget = PlacementTarget; 194UIElement returnValue = ribbon.ContextMenuOriginalSource; 209UIElement dismissPopupSource = GetDismissPopupSource();
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (5)
152UIElement element = e.OldValue as UIElement; 160UIElement element = e.NewValue as UIElement; 222internal UIElement ContentChild
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (1)
111UIElement contentChild = ribbonControl.ContentChild;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (1)
43UIElement popupRoot,
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
2688predictedFocus = RibbonHelper.PredictFocus(focusedElement, direction) as UIElement; 2702UIElement predictedFocus = null; 2709predictedFocus = RibbonHelper.PredictFocus(focusedElement, direction) as UIElement; 2725UIElement focusContainer = RibbonHelper.GetContainingUIElement(focusedElement);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (8)
618UIElement popupChild = group._collapsedGroupPopup.TryGetChild(); 857UIElement contentChild = ribbonControl.ContentChild; 1394UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1436UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1491UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1666UIElement placementTarget = e.PlacementTarget; 1711UIElement ribbonPopupChild = ribbon.ItemsPresenterPopup.TryGetChild(); 1753UIElement popupChild = _collapsedGroupPopup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (57)
480UIElement uie = Keyboard.FocusedElement as UIElement; 495UIElement uie; 499if ((uie = element as UIElement) != null) 517UIElement uie; 521if ((uie = element as UIElement) != null) 945UIElement uiElement = element as UIElement; 970UIElement uiElement = element as UIElement; 1011public static void HandleLostMouseCapture(UIElement element, 1015UIElement targetCapture, 1016UIElement targetFocus) 1095private static bool ReacquireCapture(UIElement targetCapture, UIElement targetFocus) 1105public static bool IsMousePhysicallyOver(UIElement element) 1125UIElement alternateCaptureHost) 1133UIElement element = sender as UIElement; 1137UIElement source = Mouse.Captured as UIElement; 1151UIElement mouseOverTarget, 1152UIElement alternateMouseOverTarget) 1176public static void AsyncSetFocusAndCapture(UIElement element, 1178UIElement targetCapture, 1179UIElement targetFocus) 1202public static void RestoreFocusAndCapture(UIElement targetCapture, 1203UIElement targetFocus) 1219public static void HandleIsDropDownChanged(UIElement element, 1221UIElement targetCapture, 1222UIElement targetFocus) 1245object sender, KeyEventArgs e, Func<bool> gettor, Action<bool> settor, UIElement targetFocusOnFalse, UIElement targetFocusContainerOnTrue) 1268UIElement uie = sender as UIElement; 1308public static UIElement TryGetChild(this Popup popup) 1313public static bool IsCaptureInSubtree(UIElement element) 1319public static bool IsCaptureInVisualSubtree(UIElement element) 1394UIElement managerElement = starLayoutManager as UIElement; 1520private static void TransferProperty(UIElement original, UIElement clone, DependencyProperty dp, TransferMode mode) 1525private static void TransferProperty(UIElement original, UIElement clone, DependencyProperty originalProperty, DependencyProperty cloneProperty, TransferMode mode) 1847if (original is UIElement || 2484UIElement container = parentItemsControl.ItemContainerGenerator.ContainerFromIndex(i) as UIElement; 2559public static UIElement GetContainingUIElement(DependencyObject element) 2561UIElement uie = element as UIElement; 2600UIElement mediumPlacementTarget) 2647UIElement nonLargePlacementTarget) 2680UIElement mediumPlacementTarget) 2731UIElement mediumPlacementTarget) 2833internal static AutomationPeer CreatePeer(UIElement element) 2942UIElement uie = element as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (10)
63EventManager.RegisterClassHandler(ownerType, UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCaptureThunk)); 65EventManager.RegisterClassHandler(ownerType, UIElement.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotKeyboardFocusThunk), true); 790UIElement popupChild = _popup.TryGetChild(); 1250UIElement popupChild = _popup.TryGetChild(); 1278_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1329private UIElement _popupRoot; 1423UIElement popupChild = _popup.TryGetChild(); 1439UIElement popupChild = _popup.TryGetChild(); 1528UIElement popupChild = _popup.TryGetChild(); 1675UIElement popupChild = _popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (12)
650_sideBarBorder = GetTemplateChild(SideBarBorderTemplatePartName) as UIElement; 778UIElement popupChild = _popup.TryGetChild(); 830UIElement popupChild = _popup.TryGetChild(); 987UIElement popupChild = _popup.TryGetChild(); 1300UIElement popupChild = _popup.TryGetChild(); 1322_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1582private UIElement _popupRoot; 1583private UIElement _sideBarBorder = null; 1662UIElement popupChild = _popup.TryGetChild(); 1678UIElement popupChild = _popup.TryGetChild(); 1736internal UIElement SideBarBorder 1815UIElement popupChild = _popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (8)
175UIElement popupChild = qat._overflowPopup.TryGetChild(); 353UIElement popupChild = _overflowPopup.TryGetChild(); 365UIElement popupChild = _overflowPopup.TryGetChild(); 383UIElement popupChild = _overflowPopup.TryGetChild(); 444UIElement popupChild = _overflowPopup.TryGetChild(); 583UIElement contentChild = ribbonControl.ContentChild; 604UIElement contentChild = ribbonControl.ContentChild; 664UIElement popupChild = _overflowPopup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBarCloneEventArgs.cs (4)
21public RibbonQuickAccessToolBarCloneEventArgs(UIElement targetElement) 27public UIElement InstanceToBeCloned 35public UIElement CloneInstance 54private UIElement _instanceToBeCloned;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
403UIElement popupChild = Popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
77UIElement target = e.NewValue as UIElement; 283UIElement placementTarget = toolTip.PlacementTarget; 337UIElement 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)
52private SW.UIElement _child; 178public SW.UIElement Child 186UIElement oldValue = Child; 264private void OnChildChanged(UIElement oldChild)
System\Windows\Integration\WindowsFormsHost.cs (1)
547/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)