2 types derived from UIElement
PresentationFramework (2)
System\windows\Documents\CaretElement.cs (1)
1200private class CaretSubElement : UIElement
System\Windows\FrameworkElement.cs (1)
101public partial class FrameworkElement : UIElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
2 instantiations of UIElement
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10693bamlType.DefaultConstructor = delegate() { return new System.Windows.UIElement(); };
System\Windows\Markup\KnownTypes.cs (1)
1629case KnownElements.UIElement: o = new System.Windows.UIElement(); break;
2751 references to UIElement
Microsoft.CodeAnalysis.EditorFeatures.Wpf (18)
Adornments\BrushTag.cs (1)
16/// just a simple single <see cref="UIElement"/> should subclass <see cref="GraphicsTag"/>. In that case the <see
Adornments\GraphicsResult.cs (2)
13public UIElement VisualElement { get; } 16public GraphicsResult(UIElement visualElement, Action? dispose)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
179public static void UpdateColor(TextFormattingRunProperties format, UIElement adornment)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (7)
32private UIElement _focusedElement = null; 33private readonly List<UIElement> _tabNavigableChildren; 69((UIElement)_findAdornmentLayer).LayoutUpdated += FindAdornmentCanvas_LayoutUpdated; 132((UIElement)_textView.Caret).Visibility = Visibility.Visible; 135private void FocusElement(UIElement firstElement, Func<int, int> selector) 301var adornment = _findAdornmentLayer.Elements[0].Adornment; 366((UIElement)_findAdornmentLayer).LayoutUpdated -= FindAdornmentCanvas_LayoutUpdated;
QuickInfo\OnTheFlyDocsView.xaml.cs (5)
196public UIElement OnDemandLinkContent { get; } 198public UIElement LoadingContent { get; } 200public UIElement ResultsContent { get; } 235private UIElement ToUIElement(object model) 236=> _viewElementFactoryService.CreateViewElement<UIElement>(_textView, model);
QuickInfo\OnTheFlyDocsViewFactory.cs (2)
23[TypeConversion(from: typeof(QuickInfoOnTheFlyDocsElement), to: typeof(UIElement))] 44if (typeof(TView) != typeof(UIElement))
Microsoft.VisualStudio.LanguageServices (3)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
335renderHeight = ((UIElement)border).RenderSize.Height;
InheritanceMargin\InheritanceGlyphFactory.cs (1)
59public UIElement? GenerateGlyph(IWpfTextViewLine line, IGlyphTag tag)
PreviewPane\PreviewPane.xaml.cs (1)
212var preview = grid.Children[0];
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
209image.SetBinding(CrispImage.GrayscaleProperty, new Binding(UIElement.IsEnabledProperty.Name)
PresentationCore (1191)
MS\Internal\Automation\ElementUtil.cs (6)
113internal static Rect GetLocalRect( UIElement element ) 128internal static Rect GetScreenRect( IntPtr hwnd, UIElement el ) 168UIElement el = visual as UIElement; 260if ( !(sibling is UIElement) || (((UIElement)sibling).Visibility == Visibility.Visible ) )
MS\Internal\Automation\SynchronizedInputAdaptor.cs (4)
42UIElement e = _owner as UIElement; 76UIElement e = _owner as UIElement;
MS\Internal\DeferredElementTreeState.cs (2)
93UIElement e = element as UIElement;
MS\Internal\DpiUtil\DpiUtil.cs (6)
177lock (UIElement.DpiLock) 181int sizeOfList = UIElement.DpiScaleXValues.Count; 185if (UIElement.DpiScaleXValues[index] == pixelsPerInchX / DpiUtil.DefaultPixelsPerInch && 186UIElement.DpiScaleYValues[index] == pixelsPerInchY / DpiUtil.DefaultPixelsPerInch) 195UIElement.DpiScaleXValues.Add(pixelsPerInchX / DpiUtil.DefaultPixelsPerInch); 196UIElement.DpiScaleYValues.Add(pixelsPerInchY / DpiUtil.DefaultPixelsPerInch);
MS\Internal\DpiUtil\DpiUtil+SystemDpiHelper.cs (6)
68lock (UIElement.DpiLock) 70return new DpiScale2(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 80lock(UIElement.DpiLock) 82UIElement.DpiScaleXValues.Insert(0, systemDpiScale.DpiScaleX); 83UIElement.DpiScaleYValues.Insert(0, systemDpiScale.DpiScaleY);
MS\Internal\Interop\TipTsfHelper.cs (2)
163UIElement uiElement; 168if ((uiElement = focusedObject as UIElement) != null)
MS\Internal\SynchronizedInputHelper.cs (5)
18UIElement e = o as UIElement; 134UIElement e = logicalParent as UIElement; 296if (InputManager.ListeningElement is UIElement e)
MS\Internal\UIElementHelper.cs (15)
19UIElement oAsUIElement = o as UIElement; 34UIElement oAsUIElement = o as UIElement; 49UIElement uie; 53if ((uie = o as UIElement) != null) 69internal static UIElement GetContainingUIElement2D(DependencyObject reference) 71UIElement element = null; 75element = reference as UIElement; 113UIElement childAsUIElement = child as UIElement; 133return (o is UIElement or UIElement3D); 138UIElement e = null; 179out UIElement e, 189e = o as UIElement;
System\Windows\Automation\AutomationProperties.cs (5)
344typeof(UIElement), 346new UIPropertyMetadata((UIElement)null)); 351public static void SetLabeledBy(DependencyObject element, UIElement value) 361public static UIElement GetLabeledBy(DependencyObject element) 365return ((UIElement)element.GetValue(LabeledByProperty));
System\Windows\Automation\Peers\AutomationPeer.cs (2)
408UIElement uie = focusedElement as UIElement;
System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
43/// <seealso cref="UIElement.OnCreateAutomationPeer"/> virtual callback. If FrameworkContentElement does not
System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (1)
20public GenericRootAutomationPeer(UIElement owner): base(owner)
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (7)
93&& child is UIElement 94&& (peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)child)) != null ) 216UIElement containingUIElement = GetContainingUIElement(_owner); 238private static UIElement GetContainingUIElement(DependencyObject reference) 240UIElement element = null; 244element = reference as UIElement; 332UIElement element = AutomationProperties.GetLabeledBy(_owner);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (12)
16public UIElementAutomationPeer(UIElement owner) 23public UIElement Owner 38/// <seealso cref="UIElement.OnCreateAutomationPeer"/> virtual callback. If UIElement does not 42public static AutomationPeer CreatePeerForElement(UIElement element) 50public static AutomationPeer FromElement(UIElement element) 111&& child is UIElement 112&& (peer = CreatePeerForElement((UIElement)child)) != null ) 259internal static Rect CalculateVisibleBoundingRect(UIElement owner) 379UIElement element = AutomationProperties.GetLabeledBy(_owner); 420UIElement element = _owner.PositionAndSizeOfSetController; 455UIElement element = _owner.PositionAndSizeOfSetController; 524private UIElement _owner;
System\Windows\ContentElement.cs (15)
30UIElement.RegisterEvents(typeof(ContentElement)); 33UIElement.IsFocusedPropertyKey.OverrideMetadata( 549UIElement.IsFocusedProperty.AddOwner( 596UIElement.IsEnabledProperty.AddOwner( 618add { EventHandlersStoreAdd(UIElement.IsEnabledChangedKey, value); } 619remove { EventHandlersStoreRemove(UIElement.IsEnabledChangedKey, value); } 684ce.RaiseDependencyPropertyChanged(UIElement.IsEnabledChangedKey, e); 704UIElement.FocusableProperty.AddOwner( 724add {EventHandlersStoreAdd(UIElement.FocusableChangedKey, value);} 725remove {EventHandlersStoreRemove(UIElement.FocusableChangedKey, value);} 733ce.RaiseDependencyPropertyChanged(UIElement.FocusableChangedKey, e); 788UIElement.AllowDropProperty.AddOwner( 947internal static readonly UncommonField<EventHandlersStore> EventHandlersStoreField = UIElement.EventHandlersStoreField; 948internal static readonly UncommonField<InputBindingCollection> InputBindingCollectionField = UIElement.InputBindingCollectionField; 949internal static readonly UncommonField<CommandBindingCollection> CommandBindingCollectionField = UIElement.CommandBindingCollectionField;
System\Windows\dataobject.cs (6)
800UIElement.AddHandler(element, CopyingEvent, handler); 810UIElement.RemoveHandler(element, CopyingEvent, handler); 849UIElement.AddHandler(element, PastingEvent, handler); 859UIElement.RemoveHandler(element, PastingEvent, handler); 888UIElement.AddHandler(element, SettingDataEvent, handler); 898UIElement.RemoveHandler(element, SettingDataEvent, handler);
System\Windows\DpiScale.cs (1)
14/// or <see cref="System.Windows.UIElement"/> is rendered.
System\Windows\DragDrop.cs (42)
52UIElement.AddHandler(element, PreviewQueryContinueDragEvent, handler); 62UIElement.RemoveHandler(element, PreviewQueryContinueDragEvent, handler); 77UIElement.AddHandler(element, QueryContinueDragEvent, handler); 87UIElement.RemoveHandler(element, QueryContinueDragEvent, handler); 102UIElement.AddHandler(element, PreviewGiveFeedbackEvent, handler); 112UIElement.RemoveHandler(element, PreviewGiveFeedbackEvent, handler); 127UIElement.AddHandler(element, GiveFeedbackEvent, handler); 137UIElement.RemoveHandler(element, GiveFeedbackEvent, handler); 152UIElement.AddHandler(element, PreviewDragEnterEvent, handler); 162UIElement.RemoveHandler(element, PreviewDragEnterEvent, handler); 177UIElement.AddHandler(element, DragEnterEvent, handler); 187UIElement.RemoveHandler(element, DragEnterEvent, handler); 202UIElement.AddHandler(element, PreviewDragOverEvent, handler); 212UIElement.RemoveHandler(element, PreviewDragOverEvent, handler); 227UIElement.AddHandler(element, DragOverEvent, handler); 237UIElement.RemoveHandler(element, DragOverEvent, handler); 252UIElement.AddHandler(element, PreviewDragLeaveEvent, handler); 262UIElement.RemoveHandler(element, PreviewDragLeaveEvent, handler); 277UIElement.AddHandler(element, DragLeaveEvent, handler); 287UIElement.RemoveHandler(element, DragLeaveEvent, handler); 302UIElement.AddHandler(element, PreviewDropEvent, handler); 312UIElement.RemoveHandler(element, PreviewDropEvent, handler); 327UIElement.AddHandler(element, DropEvent, handler); 337UIElement.RemoveHandler(element, DropEvent, handler); 380if (dragSource is UIElement) 382((UIElement)dragSource).RaiseEvent(args); 411if (dragSource is UIElement) 413((UIElement)dragSource).RaiseEvent(args); 696if (_dragSource is UIElement) 698((UIElement)_dragSource).RaiseEvent(args); 719if (_dragSource is UIElement) 721((UIElement)_dragSource).RaiseEvent(args); 753if (_dragSource is UIElement) 755((UIElement)_dragSource).RaiseEvent(args); 776if (_dragSource is UIElement) 778((UIElement)_dragSource).RaiseEvent(args); 1155if (target is UIElement) 1157((UIElement)target).RaiseEvent(dragEventArgs); 1179if (target is UIElement) 1181((UIElement)target).RaiseEvent(dragEventArgs); 1305UIElement targetUIElement; 1312targetUIElement = target as UIElement;
System\Windows\EventManager.cs (2)
109/// <see cref="UIElement.AddHandler(RoutedEvent, Delegate)"/> <para/> 156if (!typeof(UIElement).IsAssignableFrom(classType) &&
System\Windows\FocusWithinProperty.cs (3)
16UIElement.IsKeyboardFocusWithinPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 28UIElement.IsKeyboardFocusWithinProperty,
System\Windows\Generated\ContentElement.cs (80)
380UIElement.BuildRouteHelper(this, route, args); 403UIElement.RaiseEventImpl(this, e); 422UIElement.RaiseEventImpl(this, args); 435UIElement.RaiseEventImpl(this, args); 735UIElement.IsMouseDirectlyOverPropertyKey.OverrideMetadata( 741UIElement.IsMouseOverPropertyKey.OverrideMetadata( 746UIElement.IsStylusOverPropertyKey.OverrideMetadata( 751UIElement.IsKeyboardFocusWithinPropertyKey.OverrideMetadata( 756UIElement.IsMouseCapturedPropertyKey.OverrideMetadata( 762UIElement.IsMouseCaptureWithinPropertyKey.OverrideMetadata( 767UIElement.IsStylusDirectlyOverPropertyKey.OverrideMetadata( 773UIElement.IsStylusCapturedPropertyKey.OverrideMetadata( 779UIElement.IsStylusCaptureWithinPropertyKey.OverrideMetadata( 784UIElement.IsKeyboardFocusedPropertyKey.OverrideMetadata( 790UIElement.AreAnyTouchesDirectlyOverPropertyKey.OverrideMetadata( 795UIElement.AreAnyTouchesOverPropertyKey.OverrideMetadata( 800UIElement.AreAnyTouchesCapturedPropertyKey.OverrideMetadata( 805UIElement.AreAnyTouchesCapturedWithinPropertyKey.OverrideMetadata( 892public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 899add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 900remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 911public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 918add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 919remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 930public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 937add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 938remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 949public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 956add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 957remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 968public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 975add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 976remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 987public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 994add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 995remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 1006public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 1013add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 1014remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 1025public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 1032add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 1033remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 2251public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 2263add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 2264remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 2280RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2286public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2291public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2296public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2303add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2304remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2320RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2326public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2338add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2339remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2355RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2361public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2368add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2369remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2385RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2391public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2403add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2404remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2420RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2426public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2438add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2439remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2455RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2461public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2468add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2469remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2485RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2491public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2503add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2504remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2520RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2526public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2531public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2536public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2541public static readonly DependencyProperty AreAnyTouchesCapturedWithinProperty = UIElement.AreAnyTouchesCapturedWithinProperty.AddOwner(_typeofThis);
System\Windows\Generated\UIElement.cs (293)
26static private readonly Type _typeofThis = typeof(UIElement); 380UIElement.BuildRouteHelper(this, route, args); 389/// <see cref="UIElement.BuildRoute"/> and 403UIElement.RaiseEventImpl(this, e); 422UIElement.RaiseEventImpl(this, args); 435UIElement.RaiseEventImpl(this, args); 736EventManager.RegisterClassHandler(type, Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseDownThunk), true); 737EventManager.RegisterClassHandler(type, Mouse.MouseDownEvent, new MouseButtonEventHandler(UIElement.OnMouseDownThunk), true); 738EventManager.RegisterClassHandler(type, Mouse.PreviewMouseUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseUpThunk), true); 739EventManager.RegisterClassHandler(type, Mouse.MouseUpEvent, new MouseButtonEventHandler(UIElement.OnMouseUpThunk), true); 740EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonDownThunk), false); 741EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonDownThunk), false); 742EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonUpThunk), false); 743EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonUpThunk), false); 744EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonDownThunk), false); 745EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonDownThunk), false); 746EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonUpThunk), false); 747EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonUpThunk), false); 748EventManager.RegisterClassHandler(type, Mouse.PreviewMouseMoveEvent, new MouseEventHandler(UIElement.OnPreviewMouseMoveThunk), false); 749EventManager.RegisterClassHandler(type, Mouse.MouseMoveEvent, new MouseEventHandler(UIElement.OnMouseMoveThunk), false); 750EventManager.RegisterClassHandler(type, Mouse.PreviewMouseWheelEvent, new MouseWheelEventHandler(UIElement.OnPreviewMouseWheelThunk), false); 751EventManager.RegisterClassHandler(type, Mouse.MouseWheelEvent, new MouseWheelEventHandler(UIElement.OnMouseWheelThunk), false); 752EventManager.RegisterClassHandler(type, Mouse.MouseEnterEvent, new MouseEventHandler(UIElement.OnMouseEnterThunk), false); 753EventManager.RegisterClassHandler(type, Mouse.MouseLeaveEvent, new MouseEventHandler(UIElement.OnMouseLeaveThunk), false); 754EventManager.RegisterClassHandler(type, Mouse.GotMouseCaptureEvent, new MouseEventHandler(UIElement.OnGotMouseCaptureThunk), false); 755EventManager.RegisterClassHandler(type, Mouse.LostMouseCaptureEvent, new MouseEventHandler(UIElement.OnLostMouseCaptureThunk), false); 756EventManager.RegisterClassHandler(type, Mouse.QueryCursorEvent, new QueryCursorEventHandler(UIElement.OnQueryCursorThunk), false); 757EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 758EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 759EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 760EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 761EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 762EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 763EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 764EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 765EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 766EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 767EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 768EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 769EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 770EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 771EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 772EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 773EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 774EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 775EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 776EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 777EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 778EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 779EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyDownEvent, new KeyEventHandler(UIElement.OnPreviewKeyDownThunk), false); 780EventManager.RegisterClassHandler(type, Keyboard.KeyDownEvent, new KeyEventHandler(UIElement.OnKeyDownThunk), false); 781EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyUpEvent, new KeyEventHandler(UIElement.OnPreviewKeyUpThunk), false); 782EventManager.RegisterClassHandler(type, Keyboard.KeyUpEvent, new KeyEventHandler(UIElement.OnKeyUpThunk), false); 783EventManager.RegisterClassHandler(type, Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewGotKeyboardFocusThunk), false); 784EventManager.RegisterClassHandler(type, Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnGotKeyboardFocusThunk), false); 785EventManager.RegisterClassHandler(type, Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewLostKeyboardFocusThunk), false); 786EventManager.RegisterClassHandler(type, Keyboard.LostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnLostKeyboardFocusThunk), false); 787EventManager.RegisterClassHandler(type, TextCompositionManager.PreviewTextInputEvent, new TextCompositionEventHandler(UIElement.OnPreviewTextInputThunk), false); 788EventManager.RegisterClassHandler(type, TextCompositionManager.TextInputEvent, new TextCompositionEventHandler(UIElement.OnTextInputThunk), false); 789EventManager.RegisterClassHandler(type, CommandManager.PreviewExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnPreviewExecutedThunk), false); 790EventManager.RegisterClassHandler(type, CommandManager.ExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnExecutedThunk), false); 791EventManager.RegisterClassHandler(type, CommandManager.PreviewCanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnPreviewCanExecuteThunk), false); 792EventManager.RegisterClassHandler(type, CommandManager.CanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnCanExecuteThunk), false); 793EventManager.RegisterClassHandler(type, CommandDevice.CommandDeviceEvent, new CommandDeviceEventHandler(UIElement.OnCommandDeviceThunk), false); 794EventManager.RegisterClassHandler(type, DragDrop.PreviewQueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnPreviewQueryContinueDragThunk), false); 795EventManager.RegisterClassHandler(type, DragDrop.QueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnQueryContinueDragThunk), false); 796EventManager.RegisterClassHandler(type, DragDrop.PreviewGiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnPreviewGiveFeedbackThunk), false); 797EventManager.RegisterClassHandler(type, DragDrop.GiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnGiveFeedbackThunk), false); 798EventManager.RegisterClassHandler(type, DragDrop.PreviewDragEnterEvent, new DragEventHandler(UIElement.OnPreviewDragEnterThunk), false); 799EventManager.RegisterClassHandler(type, DragDrop.DragEnterEvent, new DragEventHandler(UIElement.OnDragEnterThunk), false); 800EventManager.RegisterClassHandler(type, DragDrop.PreviewDragOverEvent, new DragEventHandler(UIElement.OnPreviewDragOverThunk), false); 801EventManager.RegisterClassHandler(type, DragDrop.DragOverEvent, new DragEventHandler(UIElement.OnDragOverThunk), false); 802EventManager.RegisterClassHandler(type, DragDrop.PreviewDragLeaveEvent, new DragEventHandler(UIElement.OnPreviewDragLeaveThunk), false); 803EventManager.RegisterClassHandler(type, DragDrop.DragLeaveEvent, new DragEventHandler(UIElement.OnDragLeaveThunk), false); 804EventManager.RegisterClassHandler(type, DragDrop.PreviewDropEvent, new DragEventHandler(UIElement.OnPreviewDropThunk), false); 805EventManager.RegisterClassHandler(type, DragDrop.DropEvent, new DragEventHandler(UIElement.OnDropThunk), false); 806EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 807EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 808EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 809EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 810EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 811EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 812EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 813EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 814EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 815EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 824UIElement uie = sender as UIElement; 846UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 858UIElement uie = sender as UIElement; 880UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 887UIElement uie = sender as UIElement; 909UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 916UIElement uie = sender as UIElement; 938UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 945UIElement uie = sender as UIElement; 970UIElement uie = sender as UIElement; 995UIElement uie = sender as UIElement; 1020UIElement uie = sender as UIElement; 1045UIElement uie = sender as UIElement; 1070UIElement uie = sender as UIElement; 1095UIElement uie = sender as UIElement; 1120UIElement uie = sender as UIElement; 1145UIElement uie = sender as UIElement; 1170UIElement uie = sender as UIElement; 1195UIElement uie = sender as UIElement; 1224UIElement uie = sender as UIElement; 1250UIElement uie = sender as UIElement; 1275UIElement uie = sender as UIElement; 1300UIElement uie = sender as UIElement; 1325UIElement uie = sender as UIElement; 1350UIElement uie = sender as UIElement; 1375UIElement uie = sender as UIElement; 1400UIElement uie = sender as UIElement; 1425UIElement uie = sender as UIElement; 1450UIElement uie = sender as UIElement; 1475UIElement uie = sender as UIElement; 1500UIElement uie = sender as UIElement; 1525UIElement uie = sender as UIElement; 1550UIElement uie = sender as UIElement; 1575UIElement uie = sender as UIElement; 1600UIElement uie = sender as UIElement; 1625UIElement uie = sender as UIElement; 1650UIElement uie = sender as UIElement; 1675UIElement uie = sender as UIElement; 1700UIElement uie = sender as UIElement; 1725UIElement uie = sender as UIElement; 1750UIElement uie = sender as UIElement; 1775UIElement uie = sender as UIElement; 1800UIElement uie = sender as UIElement; 1825UIElement uie = sender as UIElement; 1850UIElement uie = sender as UIElement; 1875UIElement uie = sender as UIElement; 1900UIElement uie = sender as UIElement; 1925UIElement uie = sender as UIElement; 1954UIElement uie = sender as UIElement; 1980UIElement uie = sender as UIElement; 2005UIElement uie = sender as UIElement; 2030UIElement uie = sender as UIElement; 2055UIElement uie = sender as UIElement; 2080UIElement uie = sender as UIElement; 2105UIElement uie = sender as UIElement; 2130UIElement uie = sender as UIElement; 2155UIElement uie = sender as UIElement; 2220UIElement uie = sender as UIElement; 2245UIElement uie = sender as UIElement; 2270UIElement uie = sender as UIElement; 2295UIElement uie = sender as UIElement; 2320UIElement uie = sender as UIElement; 2345UIElement uie = sender as UIElement; 2370UIElement uie = sender as UIElement; 2395UIElement uie = sender as UIElement; 2420UIElement uie = sender as UIElement; 2445UIElement uie = sender as UIElement; 2470UIElement uie = sender as UIElement; 2495UIElement uie = sender as UIElement; 2520UIElement uie = sender as UIElement; 2545UIElement uie = sender as UIElement; 2570UIElement uie = sender as UIElement; 2595UIElement uie = sender as UIElement; 2620UIElement uie = sender as UIElement; 2645UIElement uie = sender as UIElement; 2670UIElement uie = sender as UIElement; 2695UIElement uie = sender as UIElement; 2720UIElement uie = sender as UIElement; 2745UIElement uie = sender as UIElement; 2852add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 2853remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 2871add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 2872remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 2890add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 2891remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 2909add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 2910remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 2928add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 2929remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 2947add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 2948remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 2966add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 2967remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 2985add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 2986remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 4221((UIElement) d).RaiseIsMouseDirectlyOverChanged(e); 4235add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 4236remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 4252RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 4317add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4318remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4334RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 4357((UIElement) d).RaiseIsMouseCapturedChanged(e); 4371add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 4372remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 4388RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 4419add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 4420remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 4436RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 4459((UIElement) d).RaiseIsStylusDirectlyOverChanged(e); 4473add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 4474remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 4490RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 4513((UIElement) d).RaiseIsStylusCapturedChanged(e); 4527add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 4528remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 4544RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 4575add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 4576remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 4592RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 4615((UIElement) d).RaiseIsKeyboardFocusedChanged(e); 4629add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 4630remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 4646RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args);
System\Windows\Generated\UIElement3D.cs (66)
175UIElement.BuildRouteHelper(this, route, args); 198UIElement.RaiseEventImpl(this, e); 217UIElement.RaiseEventImpl(this, args); 230UIElement.RaiseEventImpl(this, args); 611public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 618add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 619remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 630public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 637add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 638remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 649public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 656add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 657remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 668public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 675add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 676remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 687public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 694add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 695remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 706public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 713add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 714remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 725public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 732add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 733remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 744public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 751add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 752remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 1970public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 1982add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 1983remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 1999RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2005public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2010public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2015public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2022add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2023remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2039RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2045public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2057add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2058remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2074RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2080public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2087add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2088remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2104RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2110public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2122add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2123remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2139RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2145public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2157add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2158remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2174RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2180public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2187add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2188remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2204RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2210public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2222add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2223remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2239RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2245public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2250public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2255public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2260public static readonly DependencyProperty AreAnyTouchesCapturedWithinProperty = UIElement.AreAnyTouchesCapturedWithinProperty.AddOwner(_typeofThis);
System\Windows\GlobalEventManager.cs (2)
56typeof(UIElement).IsAssignableFrom(classType) || 404if (dType.SystemType == typeof(UIElement) || dType.SystemType == typeof(ContentElement))
System\Windows\IContentHost.cs (1)
71void OnChildDesiredSizeChanged(UIElement child);
System\Windows\Input\AccessKeyManager.cs (11)
146UIElement.AddHandler(element, AccessKeyPressedEvent, handler); 156UIElement.RemoveHandler(element, AccessKeyPressedEvent, handler); 234UIElement invokeUIElement = null; 240UIElement target = targets[i] as UIElement; 502UIElement uiElem = element as UIElement; 529return ((bool)element.GetValue(UIElement.IsEnabledProperty)); 547public UIElement target; 786public UIElement Target 821private UIElement _target;
System\Windows\Input\Command\CommandManager.cs (14)
47public static void AddPreviewExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 60public static void RemovePreviewExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 82public static void AddExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 95public static void RemoveExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 117public static void AddPreviewCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 130public static void RemovePreviewCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 152public static void AddCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 165public static void RemoveCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 283bool isUIElement = targetElementAsDO is UIElement; 291localInputBindings = ((UIElement)targetElement).InputBindingsInternal; 345localCommandBindings = ((UIElement)targetElement).CommandBindingsInternal; 534UIElement uiElement => uiElement.CommandBindingsInternal, 698UIElement element = childScope as UIElement;
System\Windows\Input\Command\RoutedCommand.cs (3)
347if (targetAsDO is UIElement uie) 375UIElement targetUIElement = target as UIElement;
System\Windows\Input\FocusManager.cs (8)
35UIElement.AddHandler(element, GotFocusEvent, handler); 45UIElement.RemoveHandler(element, GotFocusEvent, handler); 60UIElement.AddHandler(element, LostFocusEvent, handler); 70UIElement.RemoveHandler(element, LostFocusEvent, handler); 213oldVisual.ClearValue(UIElement.IsFocusedPropertyKey); 222newVisual.SetValue(UIElement.IsFocusedPropertyKey, BooleanBoxes.TrueBox); 340UIElement uiElement = d as UIElement;
System\Windows\Input\InputElement.cs (5)
24return o is UIElement or ContentElement or UIElement3D; 35if(o is UIElement) 95if(o is UIElement uiElement) 142if(o is UIElement uiElement) 352private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\Input\InputManager.cs (1)
781if (eventSource is UIElement e)
System\Windows\Input\InputMethod.cs (4)
455public void ShowConfigureUI(UIElement element) 491public void ShowRegisterWordUI(UIElement element, string registeredText) 1482private bool _ShowConfigureUI(UIElement element, bool fShow) 1535private bool _ShowRegisterWordUI(UIElement element, bool fShow, string strRegister)
System\Windows\Input\Keyboard.cs (25)
29UIElement.AddHandler(element, PreviewKeyDownEvent, handler); 39UIElement.RemoveHandler(element, PreviewKeyDownEvent, handler); 54UIElement.AddHandler(element, KeyDownEvent, handler); 64UIElement.RemoveHandler(element, KeyDownEvent, handler); 79UIElement.AddHandler(element, PreviewKeyUpEvent, handler); 89UIElement.RemoveHandler(element, PreviewKeyUpEvent, handler); 104UIElement.AddHandler(element, KeyUpEvent, handler); 114UIElement.RemoveHandler(element, KeyUpEvent, handler); 129UIElement.AddHandler(element, PreviewGotKeyboardFocusEvent, handler); 139UIElement.RemoveHandler(element, PreviewGotKeyboardFocusEvent, handler); 154UIElement.AddHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler); 164UIElement.RemoveHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler); 179UIElement.AddHandler(element, KeyboardInputProviderAcquireFocusEvent, handler); 189UIElement.RemoveHandler(element, KeyboardInputProviderAcquireFocusEvent, handler); 204UIElement.AddHandler(element, GotKeyboardFocusEvent, handler); 214UIElement.RemoveHandler(element, GotKeyboardFocusEvent, handler); 229UIElement.AddHandler(element, PreviewLostKeyboardFocusEvent, handler); 239UIElement.RemoveHandler(element, PreviewLostKeyboardFocusEvent, handler); 254UIElement.AddHandler(element, LostKeyboardFocusEvent, handler); 264UIElement.RemoveHandler(element, LostKeyboardFocusEvent, handler); 382UIElement uie = element as UIElement; 391if((bool)element.GetValue(UIElement.IsEnabledProperty) == false) 402BaseValueSourceInternal valueSource = element.GetValueSource(UIElement.FocusableProperty, null, out hasModifiers); 403bool focusable = (bool) element.GetValue(UIElement.FocusableProperty);
System\Windows\Input\KeyboardDevice.cs (6)
382if (o is UIElement uie) 408if (o is UIElement uie) 436UIElement.FocusWithinProperty.OnOriginValueChanged(oldFocus, _focus, ref _focusTreeState); 442o.SetValue(UIElement.IsKeyboardFocusedPropertyKey, false); // Same property for ContentElements 448o.SetValue(UIElement.IsKeyboardFocusedPropertyKey, true); // Same property for ContentElements 645UIElement.FocusWithinProperty.OnOriginValueChanged(_focus, _focus, ref _focusTreeState);
System\Windows\Input\Manipulation.cs (18)
32public static bool IsManipulationActive(UIElement element) 39private static ManipulationDevice GetActiveManipulationDevice(UIElement element) 57public static void StartInertia(UIElement element) 72public static void CompleteManipulation(UIElement element) 81internal static bool TryCompleteManipulation(UIElement element) 98public static void SetManipulationMode(UIElement element, ManipulationModes mode) 118public static ManipulationModes GetManipulationMode(UIElement element) 139public static void SetManipulationContainer(UIElement element, IInputElement container) 160public static IInputElement GetManipulationContainer(UIElement element) 178public static void SetManipulationPivot(UIElement element, ManipulationPivot pivot) 198public static ManipulationPivot GetManipulationPivot(UIElement element) 217public static void AddManipulator(UIElement element, IManipulator manipulator) 236public static void RemoveManipulator(UIElement element, IManipulator manipulator) 247internal static bool TryRemoveManipulator(UIElement element, IManipulator manipulator) 265public static void SetManipulationParameter(UIElement element, ManipulationParameters2D parameter) 296internal static UIElement FindManipulationParent(Visual visual) 300UIElement element = visual as UIElement;
System\Windows\Input\ManipulationDevice.cs (7)
24private ManipulationDevice(UIElement element) : base() 73internal static ManipulationDevice AddManipulationDevice(UIElement element) 84_manipulationDevices = new Dictionary<UIElement, ManipulationDevice>(2); 102internal static ManipulationDevice GetManipulationDevice(UIElement element) 250foreach (UIElement element in _manipulationDevices.Keys) 511private UIElement _target; 524private static Dictionary<UIElement, ManipulationDevice> _manipulationDevices;
System\Windows\Input\ManipulationLogic.cs (10)
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)
29UIElement.AddHandler(element, PreviewMouseMoveEvent, handler); 39UIElement.RemoveHandler(element, PreviewMouseMoveEvent, handler); 54UIElement.AddHandler(element, MouseMoveEvent, handler); 64UIElement.RemoveHandler(element, MouseMoveEvent, handler); 79UIElement.AddHandler(element, PreviewMouseDownOutsideCapturedElementEvent, handler); 89UIElement.RemoveHandler(element, PreviewMouseDownOutsideCapturedElementEvent, handler); 104UIElement.AddHandler(element, PreviewMouseUpOutsideCapturedElementEvent, handler); 114UIElement.RemoveHandler(element, PreviewMouseUpOutsideCapturedElementEvent, handler); 129UIElement.AddHandler(element, PreviewMouseDownEvent, handler); 139UIElement.RemoveHandler(element, PreviewMouseDownEvent, handler); 154UIElement.AddHandler(element, MouseDownEvent, handler); 164UIElement.RemoveHandler(element, MouseDownEvent, handler); 179UIElement.AddHandler(element, PreviewMouseUpEvent, handler); 189UIElement.RemoveHandler(element, PreviewMouseUpEvent, handler); 204UIElement.AddHandler(element, MouseUpEvent, handler); 214UIElement.RemoveHandler(element, MouseUpEvent, handler); 229UIElement.AddHandler(element, PreviewMouseWheelEvent, handler); 239UIElement.RemoveHandler(element, PreviewMouseWheelEvent, handler); 254UIElement.AddHandler(element, MouseWheelEvent, handler); 264UIElement.RemoveHandler(element, MouseWheelEvent, handler); 279UIElement.AddHandler(element, MouseEnterEvent, handler); 289UIElement.RemoveHandler(element, MouseEnterEvent, handler); 304UIElement.AddHandler(element, MouseLeaveEvent, handler); 314UIElement.RemoveHandler(element, MouseLeaveEvent, handler); 329UIElement.AddHandler(element, GotMouseCaptureEvent, handler); 339UIElement.RemoveHandler(element, GotMouseCaptureEvent, handler); 354UIElement.AddHandler(element, LostMouseCaptureEvent, handler); 364UIElement.RemoveHandler(element, LostMouseCaptureEvent, handler); 379UIElement.AddHandler(element, QueryCursorEvent, handler); 389UIElement.RemoveHandler(element, QueryCursorEvent, handler);
System\Windows\Input\MouseDevice.cs (21)
308if (element is UIElement) 310UIElement e = element as UIElement; 656UIElement.MouseOverProperty.OnOriginValueChanged(_mouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState); 709if (dependencyObject is UIElement uie) 748UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(_mouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState); 754private bool ValidateUIElementForCapture(UIElement element) 963if (o is UIElement uie) 988if (o is UIElement uie) 1015UIElement.MouseOverProperty.OnOriginValueChanged(oldMouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState); 1021o.SetValue(UIElement.IsMouseDirectlyOverPropertyKey, false); // Same property for ContentElements 1026o.SetValue(UIElement.IsMouseDirectlyOverPropertyKey, true); // Same property for ContentElements 1057if (o is UIElement uie) 1082if (o is UIElement uie) 1109UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(oldMouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState); 1115o.SetValue(UIElement.IsMouseCapturedPropertyKey, false); // Same property for ContentElements 1120o.SetValue(UIElement.IsMouseCapturedPropertyKey, true); // Same property for ContentElements 1572UIElement eTest = null; 1578eTest = ieTest as UIElement; 2124UIElement root = inputSource.RootVisual as UIElement;
System\Windows\Input\Stylus\Common\Stylus.cs (44)
27UIElement.AddHandler(element, PreviewStylusDownEvent, handler); 37UIElement.RemoveHandler(element, PreviewStylusDownEvent, handler); 52UIElement.AddHandler(element, StylusDownEvent, handler); 62UIElement.RemoveHandler(element, StylusDownEvent, handler); 77UIElement.AddHandler(element, PreviewStylusUpEvent, handler); 87UIElement.RemoveHandler(element, PreviewStylusUpEvent, handler); 102UIElement.AddHandler(element, StylusUpEvent, handler); 112UIElement.RemoveHandler(element, StylusUpEvent, handler); 127UIElement.AddHandler(element, PreviewStylusMoveEvent, handler); 137UIElement.RemoveHandler(element, PreviewStylusMoveEvent, handler); 152UIElement.AddHandler(element, StylusMoveEvent, handler); 162UIElement.RemoveHandler(element, StylusMoveEvent, handler); 177UIElement.AddHandler(element, PreviewStylusInAirMoveEvent, handler); 187UIElement.RemoveHandler(element, PreviewStylusInAirMoveEvent, handler); 202UIElement.AddHandler(element, StylusInAirMoveEvent, handler); 212UIElement.RemoveHandler(element, StylusInAirMoveEvent, handler); 227UIElement.AddHandler(element, StylusEnterEvent, handler); 237UIElement.RemoveHandler(element, StylusEnterEvent, handler); 252UIElement.AddHandler(element, StylusLeaveEvent, handler); 262UIElement.RemoveHandler(element, StylusLeaveEvent, handler); 277UIElement.AddHandler(element, PreviewStylusInRangeEvent, handler); 287UIElement.RemoveHandler(element, PreviewStylusInRangeEvent, handler); 302UIElement.AddHandler(element, StylusInRangeEvent, handler); 312UIElement.RemoveHandler(element, StylusInRangeEvent, handler); 327UIElement.AddHandler(element, PreviewStylusOutOfRangeEvent, handler); 337UIElement.RemoveHandler(element, PreviewStylusOutOfRangeEvent, handler); 352UIElement.AddHandler(element, StylusOutOfRangeEvent, handler); 362UIElement.RemoveHandler(element, StylusOutOfRangeEvent, handler); 377UIElement.AddHandler(element, PreviewStylusSystemGestureEvent, handler); 387UIElement.RemoveHandler(element, PreviewStylusSystemGestureEvent, handler); 402UIElement.AddHandler(element, StylusSystemGestureEvent, handler); 412UIElement.RemoveHandler(element, StylusSystemGestureEvent, handler); 427UIElement.AddHandler(element, GotStylusCaptureEvent, handler); 437UIElement.RemoveHandler(element, GotStylusCaptureEvent, handler); 452UIElement.AddHandler(element, LostStylusCaptureEvent, handler); 462UIElement.RemoveHandler(element, LostStylusCaptureEvent, handler); 477UIElement.AddHandler(element, StylusButtonDownEvent, handler); 487UIElement.RemoveHandler(element, StylusButtonDownEvent, handler); 503UIElement.AddHandler(element, StylusButtonUpEvent, handler); 513UIElement.RemoveHandler(element, StylusButtonUpEvent, handler); 529UIElement.AddHandler(element, PreviewStylusButtonDownEvent, handler); 539UIElement.RemoveHandler(element, PreviewStylusButtonDownEvent, handler); 555UIElement.AddHandler(element, PreviewStylusButtonUpEvent, handler); 565UIElement.RemoveHandler(element, PreviewStylusButtonUpEvent, handler);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
668protected bool ValidateUIElementForCapture(UIElement element)
System\Windows\Input\Stylus\Common\StylusPlugin.cs (1)
189public UIElement Element
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (3)
225internal StylusPlugInCollection(UIElement element) 242internal UIElement Element 598private UIElement _element;
System\Windows\Input\Stylus\Common\StylusPlugInCollectionBase.cs (1)
58internal abstract void UpdateState(UIElement element);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (13)
515if (o is UIElement element) 541if (o is UIElement element) 567UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(oldCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 573o.SetValue(UIElement.IsStylusCapturedPropertyKey, false); // Same property for ContentElements 579o.SetValue(UIElement.IsStylusCapturedPropertyKey, true); // Same property for ContentElements 602if (o is UIElement element) 631if (o is UIElement element) 661UIElement.StylusOverProperty.OnOriginValueChanged(oldOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState); 667o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, false); // Same property for ContentElements 673o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, true); // Same property for ContentElements 776if (dependencyObject is UIElement uie) 819UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(_stylusCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 881UIElement.StylusOverProperty.OnOriginValueChanged(_stylusOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (6)
561UIElement e = element as UIElement; 943UIElement eTest = null; 948eTest = ieTest as UIElement; 1025UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
52internal override void UpdateState(UIElement element)
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (5)
179internal StylusPlugInCollection FindPlugInCollection(UIElement element) 250UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement; 364UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (3)
344UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement; 501internal StylusPlugInCollection FindPlugInCollection(UIElement element)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (15)
2052if (o is UIElement uie) 2081if (o is UIElement uie) 2111UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(oldCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 2117o.SetValue(UIElement.IsStylusCapturedPropertyKey, false); // Same property for ContentElements 2122o.SetValue(UIElement.IsStylusCapturedPropertyKey, true); // Same property for ContentElements 2140if (o is UIElement uie) 2169if (o is UIElement uie) 2199UIElement.StylusOverProperty.OnOriginValueChanged(oldOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState); 2205o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, false); // Same property for ContentElements 2210o.SetValue(UIElement.IsStylusDirectlyOverPropertyKey, true); // Same property for ContentElements 2348UIElement.StylusOverProperty.OnOriginValueChanged(_stylusOver as DependencyObject, _stylusOver as DependencyObject, ref _stylusOverTreeState); 2418if (dependencyObject is UIElement uie) 2461UIElement.StylusCaptureWithinProperty.OnOriginValueChanged(_stylusCapture as DependencyObject, _stylusCapture as DependencyObject, ref _stylusCaptureWithinTreeState); 2649UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (6)
258UIElement e = element as UIElement; 585UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement; 1013UIElement eTest = null; 1018eTest = ieTest as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (1)
58internal override void UpdateState(UIElement element)
System\Windows\Input\TextCompositionManager.cs (12)
49UIElement.AddHandler(element, PreviewTextInputStartEvent, handler); 61UIElement.RemoveHandler(element, PreviewTextInputStartEvent, handler); 78UIElement.AddHandler(element, TextInputStartEvent, handler); 90UIElement.RemoveHandler(element, TextInputStartEvent, handler); 107UIElement.AddHandler(element, PreviewTextInputUpdateEvent, handler); 119UIElement.RemoveHandler(element, PreviewTextInputUpdateEvent, handler); 136UIElement.AddHandler(element, TextInputUpdateEvent, handler); 148UIElement.RemoveHandler(element, TextInputUpdateEvent, handler); 165UIElement.AddHandler(element, PreviewTextInputEvent, handler); 177UIElement.RemoveHandler(element, PreviewTextInputEvent, handler); 194UIElement.AddHandler(element, TextInputEvent, handler); 206UIElement.RemoveHandler(element, TextInputEvent, handler);
System\Windows\Input\TouchDevice.cs (25)
210UIElement eTest = ieTest as UIElement; 325UIElement uiElement; 347UIElement oldUIElement; 390o.SetValue(UIElement.AreAnyTouchesCapturedPropertyKey, 396o.SetValue(UIElement.AreAnyTouchesCapturedPropertyKey, BooleanBoxes.TrueBox); 447ReverseInheritProperty property = capture ? (ReverseInheritProperty)UIElement.TouchesCapturedWithinProperty : (ReverseInheritProperty)UIElement.TouchesOverProperty; 518UIElement uiElement; 593private static void CastInputElement(IInputElement element, out UIElement uiElement, out ContentElement contentElement, out UIElement3D uiElement3D) 595uiElement = element as UIElement; 756UIElement manipulatableElement = GetManipulatableElement(); 854UIElement oldUIElement; 858UIElement newUIElement; 901o.SetValue(UIElement.AreAnyTouchesDirectlyOverPropertyKey, 907o.SetValue(UIElement.AreAnyTouchesDirectlyOverPropertyKey, BooleanBoxes.TrueBox); 1021UIElement manipulatableElement = GetManipulatableElement(); 1055private UIElement GetManipulatableElement() 1057UIElement element = InputElement.GetContainingUIElement(_directlyOver as DependencyObject) as UIElement; 1066private void PromoteMainToManipulation(UIElement manipulatableElement, TouchEventArgs touchEventArgs) 1083UIElement element = _captured as UIElement; 1097UIElement element = _manipulatingElement.Target as UIElement;
System\Windows\Input\TouchesCapturedWithinProperty.cs (2)
10base(UIElement.AreAnyTouchesCapturedWithinPropertyKey, 16internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\Input\TouchesOverProperty.cs (2)
10base(UIElement.AreAnyTouchesOverPropertyKey, 18internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\InterOp\HwndSource.cs (20)
569if(_rootVisual is UIElement) 571((UIElement)(_rootVisual)).LayoutUpdated += new EventHandler(OnLayoutUpdated); 579UIElement.PropagateResumeLayout(null, value); 592if(oldRoot is UIElement) 594((UIElement)oldRoot).LayoutUpdated -= new EventHandler(OnLayoutUpdated); 597UIElement.PropagateSuspendLayout(oldRoot); 782UIElement root = _rootVisual as UIElement; 898UIElement root = _rootVisual as UIElement; 999if ((_rootVisual is UIElement) && _hwndTarget!= null && _hwndTarget.IsDisposed == false) 1016UIElement rootUIElement = null; 1017rootUIElement = _rootVisual as UIElement; 1179UIElement rootUIElement=null; 1180rootUIElement = _rootVisual as UIElement; 1322private void Process_WM_WINDOWPOSCHANGING(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 1396private void Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 1484private void DisableSizeToContent(UIElement rootUIElement, IntPtr hwnd) 1958UIElement root =_rootVisual as UIElement;
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (3)
15if (!(sink is UIElement)) 25_sinkElement = sink as UIElement; 89private UIElement _sinkElement;
System\Windows\InterOp\HwndTarget.cs (6)
1411UIElement uiroot = (UIElement)root; 1820UIElement element = d as UIElement; 2309DpiScale newDpiScale = new DpiScale(UIElement.DpiScaleXValues[dpiFlags.Index], UIElement.DpiScaleYValues[dpiFlags.Index]);
System\Windows\LayoutManager.cs (37)
59private void setForceLayout(UIElement e) 64private void markTreeDirty(UIElement e) 69UIElement p = e.GetUIParentNo3DTraversal() as UIElement; 86UIElement uie = ((UIElement)v); 206UIElement currentElement = null; 453private Rect getProperArrangeRect(UIElement element) 512internal override void setRequest(UIElement e, Request r) 517internal override Request getRequest(UIElement e) 522internal override bool canRelyOnParentRecalc(UIElement parent) 528internal override void invalidate(UIElement e) 537internal override void setRequest(UIElement e, Request r) 542internal override Request getRequest(UIElement e) 547internal override bool canRelyOnParentRecalc(UIElement parent) 553internal override void invalidate(UIElement e) 781internal UIElement GetLastExceptionElement() 786internal void SetLastExceptionElement(UIElement e) 793private UIElement _forceLayoutElement; //set in extreme situations, forces the update of the whole tree containing the element 794private UIElement _lastExceptionElement; //set on exception in Measure or Arrange. 803internal static int s_LayoutRecursionLimit = UIElement.MAX_ELEMENTS_IN_ROUTE; //to keep these two constants in sync 832internal abstract Request getRequest(UIElement e); 833internal abstract void setRequest(UIElement e, Request r); 834internal abstract bool canRelyOnParentRecalc(UIElement parent); 835internal abstract void invalidate(UIElement e); 839internal UIElement Target; 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)
204UIElement element = Target as UIElement; 259private void DoLayout(UIElement element) 270UIElement.PropagateResumeLayout(null, element); 284UIElement element = (UIElement)Target; 313UIElement element = arg as UIElement;
System\Windows\Media\Generated\BitmapCacheBrush.cs (2)
134UIElement element = (UIElement)oldV;
System\Windows\Media\Generated\VisualBrush.cs (2)
76UIElement element = (UIElement)oldV;
System\Windows\Media\Visual.cs (14)
2612UIElement.PropagateResumeLayout(this, child); 2690UIElement.PropagateSuspendLayout(child); 4279UIElement.InvalidateForceInheritPropertyOnChildren(this, property); 4688lock (UIElement.DpiLock) 4690if (UIElement.DpiScaleXValues.Count == 0) 4693return UIElement.EnsureDpiScale(); 4697dpi = new DpiScale(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 4703if (index < 3 && UIElement.DpiScaleXValues[index] != 0 && UIElement.DpiScaleYValues[index] != 0) 4705dpi = new DpiScale(UIElement.DpiScaleXValues[index], UIElement.DpiScaleYValues[index]); 4711dpi = new DpiScale(UIElement.DpiScaleXValues[actualIndex], UIElement.DpiScaleYValues[actualIndex]);
System\Windows\Media\VisualBrush.cs (8)
186UIElement element = Visual as UIElement; 226private void DoLayout(UIElement element) 237UIElement.PropagateResumeLayout(null, element); 253UIElement element = (UIElement)Visual; 282UIElement element = arg as UIElement;
System\Windows\MouseCaptureWithinProperty.cs (3)
16UIElement.IsMouseCaptureWithinPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 28UIElement.IsMouseCaptureWithinProperty,
System\Windows\MouseOverProperty.cs (2)
16UIElement.IsMouseOverPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\Navigation\BaseUriHelper.cs (2)
571UIElement uie = doCurrent as UIElement;
System\Windows\PresentationSource.cs (8)
133if (o is UIElement uie) 201if (o is UIElement uie) 439UIElement oldRootUIElement = oldRoot as UIElement; 440UIElement newRootUIElement = newRoot as UIElement; 536Debug.Assert(uie is UIElement3D or UIElement); 704if (doTarget is UIElement uiElement)
System\Windows\ReverseInheritProperty.cs (8)
33internal abstract void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue); 105UIElement uie; 163UIElement uie; 234private static bool BlockReverseInheritance(UIElement uie, ContentElement ce, UIElement3D uie3D) 254private static void SetFlag(UIElement uie, ContentElement ce, UIElement3D uie3D, CoreFlags flag, bool value) 272private static bool IsFlagSet(UIElement uie, ContentElement ce, UIElement3D uie3D, CoreFlags flag) 292private static void CastElement(DependencyObject o, out UIElement uie, out ContentElement ce, out UIElement3D uie3D) 294uie = o as UIElement;
System\Windows\SizeChangedInfo.cs (3)
37public SizeChangedInfo(UIElement element, Size previousSize, bool widthChanged, bool heightChanged) 98internal UIElement Element 104private UIElement _element;
System\Windows\StylusCaptureWithinProperty.cs (3)
16UIElement.IsStylusCaptureWithinPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 28UIElement.IsStylusCaptureWithinProperty,
System\Windows\StylusOverProperty.cs (2)
16UIElement.IsStylusOverPropertyKey, 24internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
System\Windows\UIElement.cs (145)
35/// <seealso cref="UIElement" /> 76UIElement.RegisterEvents(typeof(UIElement)); 79typeof(UIElement), 83typeof(UIElement), 87typeof(UIElement), 91typeof(UIElement), 94EventManager.RegisterClassHandler(typeof(UIElement), ManipulationStartingEvent, new EventHandler<ManipulationStartingEventArgs>(OnManipulationStartingThunk)); 95EventManager.RegisterClassHandler(typeof(UIElement), ManipulationStartedEvent, new EventHandler<ManipulationStartedEventArgs>(OnManipulationStartedThunk)); 96EventManager.RegisterClassHandler(typeof(UIElement), ManipulationDeltaEvent, new EventHandler<ManipulationDeltaEventArgs>(OnManipulationDeltaThunk)); 97EventManager.RegisterClassHandler(typeof(UIElement), ManipulationInertiaStartingEvent, new EventHandler<ManipulationInertiaStartingEventArgs>(OnManipulationInertiaStartingThunk)); 98EventManager.RegisterClassHandler(typeof(UIElement), ManipulationBoundaryFeedbackEvent, new EventHandler<ManipulationBoundaryFeedbackEventArgs>(OnManipulationBoundaryFeedbackThunk)); 99EventManager.RegisterClassHandler(typeof(UIElement), ManipulationCompletedEvent, new EventHandler<ManipulationCompletedEventArgs>(OnManipulationCompletedThunk)); 139typeof(UIElement), 309/// Causes <see cref="System.Windows.UIElement.OnRender"/> to be called at a later time. 328protected virtual void OnChildDesiredSizeChanged(UIElement child) 463UIElement e = (UIElement)v; 508UIElement e = (UIElement)v; 697UIElement p; 717internal void GetUIParentOrICH(out UIElement uiParent, out IContentHost ich) 729uiParent = (UIElement)v; 736internal UIElement GetUIParentWithinLayoutIsland() 738UIElement uiParent = null; 749uiParent = (UIElement)v; 803DependencyObject parent = GetUIParent() as UIElement; 1342/// <seealso cref="UIElement.RenderTransform" /> 1348typeof(UIElement), 1367UIElement uie = (UIElement)d; 1386/// <seealso cref="UIElement.RenderTransformOrigin" /> 1391typeof(UIElement), 1420UIElement uie = (UIElement)d; 1441if (parent is not UIElement and not UIElement3D) 1488if (parent is not UIElement and not UIElement3D) 1583UIElement uie = sender as UIElement; 1664UIElement uiElement = e as UIElement; 1698UIElement uiElement = e as UIElement; 1889UIElement uiElement = d as UIElement; 1925UIElement uiElement = d as UIElement; 1974public Point TranslatePoint(Point point, UIElement relativeTo) 2071UIElement element = candidate as UIElement; 2192newEvent = UIElement.PreviewMouseLeftButtonDownEvent; 2194newEvent = UIElement.MouseLeftButtonDownEvent; 2196newEvent = UIElement.PreviewMouseLeftButtonUpEvent; 2198newEvent = UIElement.MouseLeftButtonUpEvent; 2202newEvent = UIElement.PreviewMouseRightButtonDownEvent; 2204newEvent = UIElement.MouseRightButtonDownEvent; 2206newEvent = UIElement.PreviewMouseRightButtonUpEvent; 2208newEvent = UIElement.MouseRightButtonUpEvent; 2265UIElement.BuildRouteHelper(sender, route, args); 2319UIElement.BuildRouteHelper(sender, route, args); 2673typeof(UIElement), 2681UIElement uie = (UIElement) d; 2708= DependencyProperty.Register("OpacityMask", typeof(Brush), typeof(UIElement), 2713UIElement uie = (UIElement) d; 2740typeof(UIElement), 2745UIElement uie = (UIElement)d; 2774typeof(UIElement), 2779UIElement uie = (UIElement)d; 2804typeof(UIElement), 2809((UIElement) d).pushBitmapEffectInput((BitmapEffectInput) e.NewValue); 2832UIElement uie = (UIElement) d; 2843UIElement uie = (UIElement) d; 2854UIElement uie = (UIElement) d; 2865UIElement uie = (UIElement) d; 2881typeof(UIElement), 2886UIElement uie = (UIElement)d; 2929typeof(UIElement), 2951typeof(UIElement), 2959UIElement uie = (UIElement) d; 3054UIElement p; 3357typeof(UIElement), 3364UIElement uie = (UIElement) d; 3398typeof(UIElement), 3405UIElement uie = (UIElement) d; 3430typeof(UIElement), 3437UIElement uie = (UIElement) d; 3480public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement)); 3494public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement)); 3512typeof(UIElement), 3527UIElement uiElement = ((UIElement)d); 3577typeof(UIElement), 3627UIElement uie = (UIElement) d; 3668UIElement uie = (UIElement)d; 3704typeof(UIElement), 3731UIElement uie = (UIElement) d; 3771UIElement uie = (UIElement)d; 3804typeof(UIElement), 3822return ((UIElement)d).IsVisible ? BooleanBoxes.TrueBox : BooleanBoxes.FalseBox; 3902UIElement uie = (UIElement) d; 3932typeof(UIElement), 3958UIElement uie = (UIElement) d; 4173UIElement uiElement, 4250UIElement element = vChild as UIElement; 4317typeof(UIElement), 4345((UIElement)d).CoerceStylusProperties(); 4349Manipulation.TryCompleteManipulation((UIElement)d); 4377public static readonly RoutedEvent ManipulationStartingEvent = Manipulation.ManipulationStartingEvent.AddOwner(typeof(UIElement)); 4391((UIElement)sender).OnManipulationStarting(e); 4402public static readonly RoutedEvent ManipulationStartedEvent = Manipulation.ManipulationStartedEvent.AddOwner(typeof(UIElement)); 4416((UIElement)sender).OnManipulationStarted(e); 4427public static readonly RoutedEvent ManipulationDeltaEvent = Manipulation.ManipulationDeltaEvent.AddOwner(typeof(UIElement)); 4441((UIElement)sender).OnManipulationDelta(e); 4452public static readonly RoutedEvent ManipulationInertiaStartingEvent = Manipulation.ManipulationInertiaStartingEvent.AddOwner(typeof(UIElement)); 4466((UIElement)sender).OnManipulationInertiaStarting(e); 4477public static readonly RoutedEvent ManipulationBoundaryFeedbackEvent = Manipulation.ManipulationBoundaryFeedbackEvent.AddOwner(typeof(UIElement)); 4491((UIElement)sender).OnManipulationBoundaryFeedback(e); 4502public static readonly RoutedEvent ManipulationCompletedEvent = Manipulation.ManipulationCompletedEvent.AddOwner(typeof(UIElement)); 4516((UIElement)sender).OnManipulationCompleted(e); 4683private static readonly UncommonField<WeakReference<UIElement>> _positionAndSizeOfSetController = new UncommonField<WeakReference<UIElement>>(); 4691internal UIElement PositionAndSizeOfSetController 4695UIElement element = null; 4696WeakReference<UIElement> wRef = _positionAndSizeOfSetController.GetValue(this); 4706_positionAndSizeOfSetController.SetValue(this, new WeakReference<UIElement>(value));
System\Windows\UIElement3D.cs (26)
30UIElement.RegisterEvents(typeof(UIElement3D)); 33IsVisibleProperty = UIElement.IsVisibleProperty.AddOwner(typeof(UIElement3D)); 41UIElement.IsVisiblePropertyKey); 44IsFocusedProperty = UIElement.IsFocusedProperty.AddOwner(typeof(UIElement3D)); 49UIElement.IsFocusedPropertyKey); 80UIElement.AllowDropProperty.AddOwner( 136if (parent is not UIElement and not UIElement3D) 168UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 180if (parent is not UIElement and not UIElement3D) 201UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 269UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 641UIElement.VisibilityProperty.AddOwner( 802UIElement.IsEnabledProperty.AddOwner( 824add { EventHandlersStoreAdd(UIElement.IsEnabledChangedKey, value); } 825remove { EventHandlersStoreRemove(UIElement.IsEnabledChangedKey, value); } 873if (parent == null || (bool)parent.GetValue(UIElement.IsEnabledProperty)) 893uie.RaiseDependencyPropertyChanged(UIElement.IsEnabledChangedKey, e); 923UIElement.IsHitTestVisibleProperty.AddOwner( 1041add { EventHandlersStoreAdd(UIElement.IsVisibleChangedKey, value); } 1042remove { EventHandlersStoreRemove(UIElement.IsVisibleChangedKey, value); } 1141UIElement.FocusableProperty.AddOwner( 1161add { EventHandlersStoreAdd(UIElement.FocusableChangedKey, value); } 1162remove { EventHandlersStoreRemove(UIElement.FocusableChangedKey, value); } 1170uie.RaiseDependencyPropertyChanged(UIElement.FocusableChangedKey, e); 1365UIElement element = vChild as UIElement;
PresentationFramework (1245)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
152public override UIElement GetParent(Object selection)
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
84public abstract UIElement GetParent(Object selection);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
148public static UIElement GetParent(Object selection) 168public static UIElement GetParent(ITextPointer pointer) 178return (UIElement)scrollViewer.ScrollViewer.Content; 209return parent as UIElement;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
94public override UIElement GetParent(Object selection)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
85public override UIElement GetParent(Object selection) 90return (UIElement)selection;
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (3)
91public override UIElement GetParent(Object selection) 95UIElement element = selection as UIElement;
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (3)
66internal static void HostComponent(AdornerLayer adornerLayer, IAnnotationComponent component, UIElement annotatedElement, bool reorder) 133public override UIElement Host { get { return _adornerLayer; } } 146AdornerLayer parentLayer = AdornerLayer.GetAdornerLayer((UIElement)parent);
MS\Internal\Annotations\Component\AnnotationAdorner.cs (10)
32public AnnotationAdorner(IAnnotationComponent component, UIElement annotatedElement) : base(annotatedElement) 36if (component is UIElement) 40this.AddVisualChild((UIElement)_annotationComponent); 60if (!(_annotationComponent is UIElement)) 108return (UIElement)_annotationComponent; 136((UIElement)_annotationComponent).Measure(childConstraint); 149((UIElement)_annotationComponent).Arrange(new Rect(((UIElement)_annotationComponent).DesiredSize)); 164this.RemoveVisualChild((UIElement)_annotationComponent); 230private UIElement _annotatedElement;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (4)
143UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject 163UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
1120UIElement uie = TopOwner as UIElement;
MS\Internal\Annotations\Component\HighlightComponent.cs (2)
167public UIElement AnnotatedElement 171return _attachedAnnotation != null ? (_attachedAnnotation.Parent as UIElement) : null;
MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
70UIElement AnnotatedElement { get; }
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (5)
143public UIElement AnnotatedElement 147return _attachedAnnotation != null ? (_attachedAnnotation.Parent as UIElement) : null; 497_uiParent = PathNode.GetParent(textContainer.Parent) as UIElement; 1013UIElement host = component.PresentationContext.Host; 1179private UIElement _uiParent = null; // the TextContainer parent. We need to handle GotFocus/LostFocus events
MS\Internal\Annotations\Component\PresentationContext.cs (1)
28public abstract UIElement Host { get; }
MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (4)
115UIElement parent = ((UIElement)VisualTreeHelper.GetParent(this)) as UIElement; 119((UIElement)VisualTreeHelper.GetParent(this)).InvalidateArrange();
MS\Internal\Controls\InkCanvasInnerCanvas.cs (8)
58UIElement removedElement = visualRemoved as UIElement; 82foreach (UIElement child in InternalChildren) 130foreach (UIElement child in InternalChildren) 182protected override void OnChildDesiredSizeChanged(UIElement child) 248internal UIElement HitTestOnElements(Point point) 250UIElement hitElement = null; 277hitElement = currentObject as UIElement;
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
26internal InkCanvasSelectionAdorner(UIElement adornedElement)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (4)
1085UIElement IAnnotationComponent.AnnotatedElement 1089return _attachedAnnotation != null ? _attachedAnnotation.Parent as UIElement : null; 1333SetValue(UIElement.VisibilityProperty, Visibility.Collapsed); 1592UIElement parent = component.AnnotatedElement;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
467public static StickyNoteContentControl CreateContentControl(StickyNoteType type, UIElement content)
MS\Internal\Controls\TemplatedAdorner.cs (1)
39public TemplatedAdorner(UIElement adornedElement, ControlTemplate adornerTemplate) : base(adornedElement)
MS\Internal\Data\DataBindEngine.cs (2)
214(_layoutElement = c.TargetElement as UIElement) != null) 697private UIElement _layoutElement;
MS\Internal\DataStreams.cs (6)
79private ArrayList SaveSubStreams(UIElement element) 159UIElement element = node as UIElement; 237private void LoadSubStreams(UIElement element, ArrayList subStreams) 281UIElement element = node as UIElement;
MS\Internal\Documents\DocumentGrid.cs (6)
1172UIElement background = _childrenCollection[_backgroundVisualIndex] as UIElement; 1210UIElement uiPage = _childrenCollection[visualChild] as UIElement; 2277UIElement page = _childrenCollection[i] as UIElement;
MS\Internal\Documents\DocumentPageTextView.cs (2)
474internal override UIElement RenderScope 701private readonly UIElement _owner;
MS\Internal\Documents\MultiPageTextView.cs (3)
38internal MultiPageTextView(DocumentViewerBase viewer, UIElement renderScope, ITextContainer textContainer) 624internal override UIElement RenderScope 1548private readonly UIElement _renderScope;
MS\Internal\Documents\ScrollData.cs (16)
30internal void LineUp(UIElement owner) 38internal void LineDown(UIElement owner) 46internal void LineLeft(UIElement owner) 54internal void LineRight(UIElement owner) 62internal void PageUp(UIElement owner) 70internal void PageDown(UIElement owner) 78internal void PageLeft(UIElement owner) 86internal void PageRight(UIElement owner) 94internal void MouseWheelUp(UIElement owner) 102internal void MouseWheelDown(UIElement owner) 110internal void MouseWheelLeft(UIElement owner) 118internal void MouseWheelRight(UIElement owner) 126internal void SetHorizontalOffset(UIElement owner, double offset) 148internal void SetVerticalOffset(UIElement owner, double offset) 170internal Rect MakeVisible(UIElement owner, Visual visual, Rect rectangle) 231internal void SetScrollOwner(UIElement owner, ScrollViewer value)
MS\Internal\Documents\TextBoxView.cs (1)
1253UIElement ITextView.RenderScope
MS\Internal\Documents\TextContainerHelper.cs (8)
346if (element is UIElement) 350peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 407if (element is UIElement) 409peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 478if (element is UIElement) 480peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 699internal static int GetCPFromEmbeddedObject(UIElement embeddedObject, ElementEdge edge) 740&& (peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)child)) != null)
MS\Internal\Documents\TextDocumentView.cs (4)
547internal override UIElement RenderScope 551UIElement renderScope = null; 556while (visual != null && !(visual is UIElement)) 560renderScope = visual as UIElement;
MS\Internal\Documents\TextParagraphView.cs (1)
451internal override UIElement RenderScope
MS\Internal\Documents\TextViewBase.cs (2)
290internal abstract UIElement RenderScope { get; } 633UIElement ITextView.RenderScope
MS\Internal\Documents\UIElementIsland.cs (7)
31internal UIElementIsland(UIElement child) 113internal UIElement Root 146private UIElement _child; // Hosted UIElement root. 220void IContentHost.OnChildDesiredSizeChanged(UIElement child) 246internal DesiredSizeChangedEventArgs(UIElement child) 254internal UIElement Child 262private readonly UIElement _child;
MS\Internal\FrameworkObject.cs (2)
912UIElement uiElement; 915if ((uiElement = _do as UIElement) != null)
MS\Internal\Helper.cs (10)
518internal static Size MeasureElementWithSingleChild(UIElement element, Size constraint) 520UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 535internal static Size ArrangeElementWithSingleChild(UIElement element, Size arrangeSize) 537UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 1346UIElement uiElement = element as UIElement; 1376UIElement element = d as UIElement;
MS\Internal\Ink\ClipboardProcessor.cs (13)
136List<UIElement> elements = new List<UIElement>(inkCanvasSelection.SelectedElements); 181internal bool PasteData(IDataObject dataObject, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 200List<UIElement> elements = xamlData.Elements; 315private bool CopySelectionInXAML(IDataObject dataObject, StrokeCollection strokes, List<UIElement> elements, Matrix transform, Size size) 341UIElement newElement = XamlReader.Load(new XmlTextReader(new StringReader(xml))) as UIElement; 354ClipboardData data = new XamlClipboardData(new UIElement[] { inkCanvas }); 371private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 377List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count); 378foreach (UIElement uiElement in rootInkCanvas.Children) 384foreach ( UIElement child in children )
MS\Internal\Ink\EditingCoordinator.cs (4)
968_inkCanvas.AddHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 998_inkCanvas.AddHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>)); 1021_inkCanvas.RemoveHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 1036_inkCanvas.RemoveHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>));
MS\Internal\Ink\ElementsClipboardData.cs (6)
31internal ElementsClipboardData(UIElement[] elements) 35ElementList = new List<UIElement>(elements); 50internal List<UIElement> Elements 60return new List<UIElement>(); 76protected List<UIElement> ElementList 98private List<UIElement> _elementList;
MS\Internal\Ink\InkCanvasSelection.cs (16)
77internal ReadOnlyCollection<UIElement> SelectedElements 83_selectedElements = new List<UIElement>(); 86return new ReadOnlyCollection<UIElement>(_selectedElements); 193internal void Select(StrokeCollection strokes, IList<UIElement> elements, bool raiseSelectionChanged) 229_selectedElements = new List<UIElement>(elements); 329internal void RemoveElement(UIElement removedElement) 355internal void UpdateElementBounds(UIElement element, Matrix transform) 368internal void UpdateElementBounds(UIElement originalElement, UIElement updatedElement, Matrix transform) 539IList<UIElement> elements, 725IList<UIElement> elements = SelectedElements; 1015private static bool FrameworkElementArraysAreEqual(IList<UIElement> elements1, IList<UIElement> elements2) 1034foreach ( UIElement e in elements1 ) 1065foreach ( UIElement element in SelectedElements ) 1110private List<UIElement> _selectedElements;
MS\Internal\Ink\LassoSelectionBehavior.cs (11)
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) 632private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement)
MS\Internal\Ink\SelectionEditingBehavior.cs (2)
81InkCanvas.SelectionAdorner.AddHandler(UIElement.LostMouseCaptureEvent, 93InkCanvas.SelectionAdorner.RemoveHandler(UIElement.LostMouseCaptureEvent,
MS\Internal\Ink\TextClipboardData.cs (1)
70ElementList = new List<UIElement>();
MS\Internal\Ink\XamlClipboardData.cs (5)
33internal XamlClipboardData(UIElement[] elements) : base (elements) 73foreach ( UIElement element in Elements ) 89ElementList = new List<UIElement>(); 96UIElement element = XamlReader.Load(new System.Xml.XmlTextReader(new System.IO.StringReader(xml)), useRestrictiveXamlReader: true) as UIElement;
MS\Internal\LayoutDump.cs (16)
85internal static void DumpLayoutTreeToFile(string tagName, UIElement root, string fileName) 102internal static string DumpLayoutTreeToString(string tagName, UIElement root) 125internal static void DumpLayoutTree(XmlTextWriter writer, string tagName, UIElement root) 167internal delegate bool DumpCustomUIElement(XmlTextWriter writer, UIElement element, bool uiElementsOnly); 199if (visual is UIElement) 201DumpUIElement(writer, (UIElement)visual, parent, false); 240private static void DumpUIElement(XmlTextWriter writer, UIElement element, Visual parent, bool uiElementsOnly) 355List<UIElement> uiElements = new List<UIElement>(); 417internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements) 424if (child is UIElement) 426uiElements.Add((UIElement)(child)); 460private static bool DumpDocumentPageView(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 476private static bool DumpText(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 509private static bool DumpFlowDocumentScrollViewer(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 535private static bool DumpFlowDocumentView(XmlTextWriter writer, UIElement element, bool uiElementsOnly)
MS\Internal\PtsHost\FlowDocumentPage.cs (4)
400internal void OnChildDesiredSizeChangedCore(UIElement child) 959if (embeddedObject is ContentElement || embeddedObject is UIElement) 961if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 1220void IContentHost.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\LineBase.cs (2)
308if (embeddedObject is UIElement) 315run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph);
MS\Internal\PtsHost\PageVisual.cs (1)
150void IContentHost.OnChildDesiredSizeChanged(UIElement child)
MS\Internal\PtsHost\PtsHost.cs (1)
2526UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.Element).Child;
MS\Internal\PtsHost\RunClient.cs (1)
35internal InlineObjectRun(int cch, UIElement element, TextRunProperties textProps, TextParagraph host)
MS\Internal\PtsHost\TextParaClient.cs (4)
1267UIElement uiElement = (UIElement)inlineObjects[i].Element; 1301UIElement uiElement = (UIElement)inlineObjects[i].Element;
MS\Internal\Text\ComplexLine.cs (4)
200proxyVisual.Offset = new Vector(UIElement.RoundLayoutValue(lineOffset.X + rect.Left, dpi.DpiScaleX), 201UIElement.RoundLayoutValue(lineOffset.Y + rect.Top, dpi.DpiScaleY)); 526if (element is UIElement) 533run = new InlineObject(dcp, TextContainerHelper.EmbeddedObjectLength, (UIElement)element, textProps, _owner);
MS\Internal\Text\InlineObject.cs (3)
30internal InlineObject(int dcp, int cch, UIElement element, TextRunProperties textProps, System.Windows.Controls.TextBlock host) 160internal UIElement Element { get { return _element; } } 175private readonly UIElement _element;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
92internal static Point ClientToScreen(UIElement relativeTo, Point point)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
489public void OnChildDesiredSizeChanged(UIElement child)
System\Windows\Annotations\AnnotationService.cs (9)
944UIElement root = _root as UIElement; 996IList<UIElement> processedElements = new List<UIElement>(); 999UIElement parent = annotation.Parent as UIElement; 1022private static void InvalidateAdorners(UIElement element) 1711UIElement root = _root as UIElement;
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
134foreach (UIElement child in this.OwningGrid.Children) 378foreach (UIElement child in this.OwningGrid.Children) 620foreach (UIElement child in this.OwningGrid.Children)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
225UIElement owningRow = GetWrapper();
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (5)
129UIElement uiElement = textView?.RenderScope; 138UIElement uiScope; 159UIElement uiScope; 192UIElement uiScope; 213private Rect CalculateBoundingRect(bool clipToVisible, out UIElement uiScope)
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
115if (document is UIElement) 117documentPeer = UIElementAutomationPeer.CreatePeerForElement((UIElement)document);
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
138foreach (UIElement e in _owner.HeaderRowPresenter.ActualColumnHeaders)
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (2)
171&& (includeInvisibleItems || ((UIElement)child).IsVisible) 172&& (peer = CreatePeerForElement((UIElement)child)) != null)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
56foreach (UIElement ele in rowPresenter.ActualCells)
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
155foreach (UIElement child in childItems)
System\Windows\Automation\Peers\ItemAutomationPeer.cs (5)
82internal UIElement GetWrapper() 84UIElement wrapper = null; 95wrapper = item as UIElement; 97wrapper = owner.ItemContainerGenerator.ContainerFromItem(item) as UIElement; 107UIElement wrapper = GetWrapper();
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
79foreach (UIElement child in childItems) 785return UIElementAutomationPeer.CreatePeerForElement((UIElement)_container);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
175UIElement uiElement = owner.ItemContainerGenerator.ContainerFromIndex(i) as UIElement;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
117&& (peer = CreatePeerForElement((UIElement)child)) != null)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
223UIElement uiElement = textView?.RenderScope;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (4)
89&& child is UIElement) 93object dataItem = (child as UIElement) != null ? (logicalParentAp.Owner as ItemsControl).GetItemOrContainerFromContainer(child as UIElement) : child; 130peer = CreatePeerForElement((UIElement)child);
System\Windows\Controls\AdornedElementPlaceholder.cs (9)
59if (!(value is UIElement)) 60throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 65this.Child = (UIElement)value; 85public UIElement AdornedElement 99public virtual UIElement Child 108UIElement old = _child; 190UIElement child = Child; 205UIElement child = Child; 237private UIElement _child;
System\Windows\Controls\Border.cs (20)
210UIElement child = Child; 216borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 217UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 263borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 264UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 270UIElement child = Child; 411pen.Thickness = UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX); 474pen.Thickness = UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX); 505pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY); 536pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY); 568ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX), 569UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY)); 573ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 574UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 578ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX), 579RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY));
System\Windows\Controls\Button.cs (1)
238/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Calendar.cs (1)
84EventManager.RegisterClassHandler(typeof(Calendar), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
System\Windows\Controls\Canvas.cs (13)
73public static double GetLeft(UIElement element) 85public static void SetLeft(UIElement element, double length) 99public static double GetTop(UIElement element) 111public static void SetTop(UIElement element, double length) 125public static double GetRight(UIElement element) 137public static void SetRight(UIElement element, double length) 151public static double GetBottom(UIElement element) 163public static void SetBottom(UIElement element, double length) 187UIElement uie = d as UIElement; 261foreach (UIElement child in InternalChildren) 284foreach (UIElement child in InternalChildren) 332/// Override of <seealso cref="UIElement.GetLayoutClip"/>.
System\Windows\Controls\CheckBox.cs (1)
55/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\CleanUpVirtualizedItemEventArgs.cs (3)
12public CleanUpVirtualizedItemEventArgs(object value, UIElement element) 35public UIElement UIElement 61private UIElement _element;
System\Windows\Controls\ComboBox.cs (4)
53EventManager.RegisterClassHandler(typeof(ComboBox), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus)); // call us even if textbox in the style get focus 894_clonedElement = logicalElement as UIElement; 1891/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2026private UIElement _clonedElement;
System\Windows\Controls\ComboBoxItem.cs (1)
173SetFlags(newContent is UIElement, VisualFlags.IsLayoutIslandRoot);
System\Windows\Controls\ContentPresenter.cs (10)
1001UIElement e = content as UIElement; 1005Debug.Assert(tc.CanConvertTo(typeof(UIElement))); 1006e = (UIElement) tc.ConvertTo(content, typeof(UIElement)); 1052private UIElement DefaultExpansion(object content, ContentPresenter container) 1075Debug.Assert(!(content is String) && !(content is UIElement)); // these are handled by different templates 1114Debug.Assert(!(tc != null && tc.CanConvertTo(typeof(UIElement)))); // this is handled by a different template 1168else if (item is UIElement) 1176tc.CanConvertTo(typeof(UIElement)))
System\Windows\Controls\ContextMenu.cs (3)
184public UIElement PlacementTarget 186get { return (UIElement) GetValue(PlacementTargetProperty); } 377/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ContextMenuService.cs (10)
169typeof(UIElement), // Type 171new FrameworkPropertyMetadata((UIElement)null)); // Default Value 179public static UIElement GetPlacementTarget(DependencyObject element) 182return (UIElement)element.GetValue(PlacementTargetProperty); 190public static void SetPlacementTarget(DependencyObject element, UIElement value) 348UIElement.AddHandler(element, ContextMenuOpeningEvent, handler); 358UIElement.RemoveHandler(element, ContextMenuOpeningEvent, handler); 377UIElement.AddHandler(element, ContextMenuClosingEvent, handler); 387UIElement.RemoveHandler(element, ContextMenuClosingEvent, handler); 392EventManager.RegisterClassHandler(typeof(UIElement), ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening));
System\Windows\Controls\Control.cs (10)
29EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 30EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 31EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 32EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 563if ((e.RoutedEvent == UIElement.PreviewMouseLeftButtonDownEvent) || 564(e.RoutedEvent == UIElement.PreviewMouseRightButtonDownEvent)) 698UIElement child = (UIElement)(this.GetVisualChild(0)); 720UIElement child = (UIElement)(this.GetVisualChild(0));
System\Windows\Controls\DataGrid.cs (15)
2295UIElement source = e.OriginalSource as UIElement; 5585UIElement startElement = Keyboard.FocusedElement as UIElement; 5919UIElement startElement = Keyboard.FocusedElement as UIElement; 6371UIElement sourceElement = e.OriginalSource as UIElement; 6386sourceElement = VisualTreeHelper.GetParent(sourceElement) as UIElement; 6609UIElement element = Mouse.DirectlyOver as UIElement; 6618element = VisualTreeHelper.GetParent(row) as UIElement; 6630UIElement element = Mouse.DirectlyOver as UIElement; 6639element = VisualTreeHelper.GetParent(cell) as UIElement;
System\Windows\Controls\DataGridCell.cs (2)
551DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 564DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement);
System\Windows\Controls\DataGridCellsPanel.cs (29)
83UIElement parent = VisualTreeHelper.GetParent(this) as UIElement; 98private static void MeasureChild(UIElement child, Size constraint) 532private UIElement GenerateChild( 552private UIElement GenerateChild( 560UIElement child = generator.GenerateNext(out newlyRealized) as UIElement; 623private void AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized) 662private void InsertRecycledContainer(int childIndex, UIElement container) 670private void InsertNewContainer(int childIndex, UIElement container) 678private void InsertContainer(int childIndex, UIElement container, bool isRecycled) 766UIElement child = _realizedChildren[realizedChildIndex]; 841UIElement child = GenerateChild(generator, constraint, column, ref childIndex, out childSize); 966UIElement child = generator.ContainerFromIndex(columnIndex) as UIElement; 1058UIElement child = children[i] as UIElement; 1170UIElement visualChild; 1171UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 1270public UIElement OldClippedChild 1275public UIElement NewClippedChild 1410ArrangeChild(children[childIndex] as UIElement, i, arrangeState); 1432UIElement child = children[additionalChildIndices[i]] as UIElement; 1452UIElement child, 1960_realizedChildren = new List<UIElement>(children.Count); 2367internal Geometry GetFrozenClipForChild(UIElement child) 2453private UIElement _clippedChildForFrozenBehaviour; 2455private List<UIElement> _realizedChildren;
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
42style.Setters.Add(new Setter(UIElement.IsHitTestVisibleProperty, false)); 43style.Setters.Add(new Setter(UIElement.FocusableProperty, false));
System\Windows\Controls\DataGridHelper.cs (11)
168public static T FindVisualParent<T>(UIElement element) where T : UIElement 170UIElement parent = element; 179parent = VisualTreeHelper.GetParent(parent) as UIElement; 196UIElement uielement = element as UIElement; 239UIElement element = (UIElement)cell; 288return panel.GetFrozenClipForChild((UIElement)cell); 303UIElement element = (UIElement)cell;
System\Windows\Controls\DatePicker.cs (1)
86EventManager.RegisterClassHandler(typeof(DatePicker), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
System\Windows\Controls\Decorator.cs (8)
64if (!(value is UIElement)) 66throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 74this.Child = (UIElement)value; 103public virtual UIElement Child 190UIElement child = Child; 206UIElement child = Child; 217internal UIElement IntChild 226UIElement _child;
System\Windows\Controls\DefinitionBase.cs (2)
801internal void EnsureDeferredValidation(UIElement layoutUpdatedHost) 959private UIElement _layoutUpdatedHost; // UIElement for which layout updated event handler is registered
System\Windows\Controls\DockPanel.cs (6)
99public static Dock GetDock(UIElement element) 112public static void SetDock(UIElement element, Dock dock) 121UIElement uie = d as UIElement; //it may be anyting, like FlowDocument... bug 1237275 213UIElement child = children[i]; 278UIElement child = children[i];
System\Windows\Controls\DocumentViewer.cs (1)
854/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Expander.cs (1)
291/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\FlowDocumentReader.cs (5)
764/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 956if (focusedElement is UIElement) 958((UIElement)focusedElement).Focus(); 1576if (CurrentViewer != null && CurrentViewer is UIElement) 1578((UIElement)CurrentViewer).Focus();
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
748/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1097UIElement targetUIElement; 1116else if (args.TargetObject is UIElement) 1118targetUIElement = (UIElement)args.TargetObject;
System\Windows\Controls\Frame.cs (1)
527/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Grid.cs (24)
73UIElement cell = value as UIElement; 80throw (new ArgumentException(SR.Format(SR.Grid_UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value")); 125public static void SetColumn(UIElement element, int value) 138public static int GetColumn(UIElement element) 150public static void SetRow(UIElement element, int value) 163public static int GetRow(UIElement element) 175public static void SetColumnSpan(UIElement element, int value) 188public static int GetColumnSpan(UIElement element) 200public static void SetRowSpan(UIElement element, int value) 213public static int GetRowSpan(UIElement element) 225public static void SetIsSharedSizeScope(UIElement element, bool value) 237public static bool GetIsSharedSizeScope(UIElement element) 367UIElement child = children[i]; 665UIElement child = children[i]; 687UIElement cell = children[currentCell]; 893UIElement child = children[i]; 1354UIElement child = InternalChildren[cell]; 2113definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2152definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2202definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi); 2226final = UIElement.RoundLayoutValue(finalOld, dpi); 2252double dpiIncrement = UIElement.RoundLayoutValue(1.0, dpi); 2662double roundedSize = UIElement.RoundLayoutValue(def.SizeCache, dpi);
System\Windows\Controls\GridSplitter.cs (4)
292/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 369/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 879delta = UIElement.RoundLayoutValue(delta, dpi.DpiScaleX); 887delta = UIElement.RoundLayoutValue(delta, dpi.DpiScaleY);
System\Windows\Controls\GridViewColumnHeader.cs (2)
242/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 538/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
256UIElement child = children[GetVisualIndex(i)]; 346UIElement child = children[GetVisualIndex(i)]; 784/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\GridViewRowPresenter.cs (6)
141UIElement child = children[column.ActualIndex]; 217UIElement child = children[column.ActualIndex]; 401internal List<UIElement> ActualCells 405List<UIElement> list = new List<UIElement>(); 416UIElement cell = children[indexList[i]];
System\Windows\Controls\GroupBox.cs (1)
37/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\GroupItem.cs (1)
34/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Image.cs (1)
178/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\InkCanvas.cs (37)
266if (e.Property == UIElement.RenderTransformProperty || 424public static double GetTop(UIElement element) 436public static void SetTop(UIElement element, double length) 458public static double GetBottom(UIElement element) 470public static void SetBottom(UIElement element, double length) 492public static double GetLeft(UIElement element) 504public static void SetLeft(UIElement element, double length) 526public static double GetRight(UIElement element) 538public static void SetRight(UIElement element, double length) 551UIElement uie = d as UIElement; 640_selectionAdorner.SetBinding(UIElement.VisibilityProperty, activeEditingModeBinding); 1692public ReadOnlyCollection<UIElement> GetSelectedElements() 1724public void Select(IEnumerable<UIElement> selectedElements) 1735public void Select(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 1746UIElement[] validElements = ValidateSelectedElements(selectedElements); 2085List<UIElement> newElements = new List<UIElement>(); 2101foreach ( UIElement element in newElements ) 2296ChangeInkCanvasSelection(new StrokeCollection(), new UIElement[]{}); 2312CoreChangeSelection(new StrokeCollection(), new UIElement[] { }, raiseSelectionChangedEvent); 2321internal void ChangeInkCanvasSelection(StrokeCollection strokes, UIElement[] elements) 2336UIElement[] validElements = elements; 2404private void CoreChangeSelection(StrokeCollection validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged) 2493private UIElement[] ValidateSelectedElements(IEnumerable<UIElement> selectedElements) 2497return new UIElement[]{}; 2500List<UIElement> elements = new List<UIElement>(); 2501foreach (UIElement element in selectedElements) 2524private bool InkCanvasIsAncestorOf(UIElement element) 2655IList<UIElement> elements = GetSelectedElements(); 2660removeSelectedElements ? new List<UIElement>() : elements, 2673foreach ( UIElement element in elements ) 2710IEnumerable<UIElement> children = null; 2716UIElement[] uiElementArray = new UIElement[uiElementCollection.Count];
System\Windows\Controls\InkPresenter.cs (1)
210UIElement child = Child;
System\Windows\Controls\ItemsControl.cs (16)
1159UIElement ui = container as UIElement; 1176ui = VisualTreeHelper.GetParent(ui) as UIElement; 1336if (p != null && (visual is UIElement)) 1338p.Children.RemoveNoVerify((UIElement)visual); 1566return (item is UIElement); 2947UIElement element, 2956UIElement element, 2983UIElement element, 3074UIElement element, 3197UIElement focusedElement = e.OriginalSource as UIElement; 3207UIElement itemContainer = itemsControl._focusedInfo.Container as UIElement; 3268UIElement container = info.Container as UIElement;
System\Windows\Controls\Label.cs (9)
84typeof(UIElement), 87(UIElement) null, 96public UIElement Target 98get { return (UIElement) GetValue(TargetProperty); } 106UIElement oldElement = (UIElement) e.OldValue; 107UIElement newElement = (UIElement) e.NewValue; 164/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListBox.cs (1)
217/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListBoxItem.cs (1)
233/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ListView.cs (1)
221/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\MediaElement.cs (1)
689/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Menu.cs (1)
115/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\MenuItem.cs (6)
1280/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1598UIElement uiElement = source as UIElement; 2252internal static void SetInsideContextMenuProperty(UIElement element, bool value) 2655private static bool GetBoolField(UIElement element, BoolField field) 2660private static void SetBoolField(UIElement element, BoolField field, bool value)
System\Windows\Controls\Page.cs (4)
590UIElement child = this.GetVisualChild(0) as UIElement; 615UIElement child = this.GetVisualChild(0) as UIElement;
System\Windows\Controls\Panel.cs (15)
88UIElement uie = value as UIElement; 92throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 659UIElement child; 660while ((child = generator.GenerateNext() as UIElement) != null) 719UIElement e = generator.GenerateNext() as UIElement; 750UIElement e = generator.GenerateNext(out isNewlyRealized) as UIElement; 776UIElement[] elements = new UIElement[containerCount]; 915public static void SetZIndex(UIElement element, int value) 927public static int GetZIndex(UIElement element) 945UIElement child = d as UIElement;
System\Windows\Controls\PasswordBox.cs (1)
439/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\PopupControlService.cs (14)
64UIElement rootAsUIElement = source != null ? source.RootVisual as UIElement : null; 847UIElement ownerUIE; 849if ((ownerUIE = owner as UIElement) != null) 865UIElement uieParent = KeyboardNavigation.GetParentUIElementFromContentElement(ownerCE, ref ichParent); 966if (sourceDO is UIElement uiElement) 1044UIElement uie = GetTarget(o); 1147UIElement uie = o as UIElement; 1178private static UIElement GetTarget(DependencyObject o) 1180UIElement uie = o as UIElement; 1189uie = ceParent as UIElement; 1273UIElement uie = GetTarget(owner);
System\Windows\Controls\Primitives\BulletDecorator.cs (9)
76public UIElement Bullet 102UIElement child = Child; 238UIElement bullet = Bullet; 239UIElement content = Child; 269UIElement bullet = Bullet; 270UIElement content = Child; 324private double GetFirstLineHeight(UIElement element) 328UIElement text = FindText(element); 442UIElement _bullet = null;
System\Windows\Controls\Primitives\ButtonBase.cs (2)
106/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 143e.Target = (UIElement)sender;
System\Windows\Controls\Primitives\CalendarItem.cs (2)
432foreach (UIElement element in this.YearView.Children) 1000monthCell.AddHandler(UIElement.PreviewKeyDownEvent, new RoutedEventHandler(CellOrMonth_PreviewKeyDown), true);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
140UIElement child = (VisualTreeHelper.GetChildrenCount(this) > 0) ? VisualTreeHelper.GetChild(this, 0) as UIElement : null;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
295var parent = this.Parent as UIElement;
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
539/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
377/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1165if (args.TargetObject is UIElement) 1167UIElement targetObject = (UIElement)args.TargetObject;
System\Windows\Controls\Primitives\LayoutInformation.cs (2)
54public static UIElement GetLayoutExceptionElement(Dispatcher dispatcher) 58UIElement e = null;
System\Windows\Controls\Primitives\Popup.cs (33)
111typeof(UIElement), 121public UIElement Child 123get { return (UIElement) GetValue(ChildProperty); } 131UIElement oldChild = (UIElement) e.OldValue; 132UIElement newChild = (UIElement) e.NewValue; 179private static void RegisterPopupWithPlacementTarget(Popup popup, UIElement placementTarget) 210private static void UnregisterPopupFromPlacementTarget(Popup popup, UIElement placementTarget) 235private void UpdatePlacementTargetRegistration(UIElement oldValue, UIElement newValue) 638typeof(UIElement), 650public UIElement PlacementTarget 652get { return (UIElement) GetValue(PlacementTargetProperty); } 666ctrl.UpdatePlacementTargetRegistration((UIElement)e.OldValue, (UIElement)e.NewValue); 670UnregisterPopupFromPlacementTarget(ctrl, (UIElement)e.OldValue); 872public static void CreateRootPopup(Popup popup, UIElement child) 884internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty) 965internal static bool IsRootedInPopup(Popup parentPopup, UIElement element) 1284UIElement element = value as UIElement; 1287throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 1344UIElement placementTarget = PlacementTarget; 1522UIElement child = Child; 2290UIElement target = GetTarget() as UIElement; 2368UIElement child = Child; 2378UIElement target = GetTarget() as UIElement; 3269UIElement target = popup.PlacementTarget; 3530var target = popup?.GetTarget() as UIElement;
System\Windows\Controls\Primitives\PopupRoot.cs (3)
80/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 91internal UIElement Child 292UIElement child = Child;
System\Windows\Controls\Primitives\RepeatButton.cs (1)
186/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
123/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (5)
363override internal UIElement TemplateChild 371UIElement oldTemplate = base.TemplateChild; 472UIElement child = this.GetVisualChild(0) as UIElement; 502/// Override of <seealso cref="UIElement.GetLayoutClip"/>.
System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (2)
54UIElement element = d as UIElement;
System\Windows\Controls\Primitives\Selector.cs (2)
1320UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement;
System\Windows\Controls\Primitives\StatusBar.cs (1)
171/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\StatusBarItem.cs (1)
35/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\TabPanel.cs (8)
95foreach (UIElement child in InternalChildren) 139foreach (UIElement child in InternalChildren) 182/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 200private Size GetDesiredSizeWithoutMargin(UIElement element) 213foreach (UIElement child in InternalChildren) 251foreach (UIElement child in InternalChildren) 300foreach (UIElement child in InternalChildren) 320foreach (UIElement child in InternalChildren)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1672if (visual is UIElement) 1674((UIElement)visual).AddToEventRoute(route, args);
System\Windows\Controls\Primitives\Thumb.cs (1)
204/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ToggleButton.cs (1)
242/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (7)
69List<UIElement> generatedItemsCollection = toolBarPanel.GeneratedItemsCollection; 74UIElement child = generatedItemsCollection[i]; 100UIElement child = children[i] as UIElement; 116UIElement child = children[i] as UIElement; 202UIElement child = children[i];
System\Windows\Controls\Primitives\ToolBarPanel.cs (15)
60UIElement child = _generatedItemsCollection[i]; 297UIElement child = (UIElement)children[i]; 350_generatedItemsCollection = new List<UIElement>(children.Count); 367UIElement child = children[i]; 410UIElement e = generator.GenerateNext() as UIElement; 428private void RemoveChild(UIElement child) 466UIElement e = generator.GenerateNext(out isNewlyRealized) as UIElement; 495UIElement[] elements = new UIElement[containerCount]; 499UIElement child = _generatedItemsCollection[fromPos.Index + i]; 531internal List<UIElement> GeneratedItemsCollection 540private List<UIElement> _generatedItemsCollection;
System\Windows\Controls\Primitives\UniformGrid.cs (3)
173UIElement child = InternalChildren[i]; 209foreach (UIElement child in InternalChildren) 265UIElement child = InternalChildren[i];
System\Windows\Controls\ProgressBar.cs (3)
185_glow.InvalidateProperty(UIElement.OpacityMaskProperty); 214_glow.SetCurrentValue(UIElement.OpacityMaskProperty, mask); 290/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\RadioButton.cs (1)
223/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\RichTextBox.cs (2)
285/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 408UIElement renderScope = this.RenderScope;
System\Windows\Controls\ScrollViewer.cs (11)
952UIElement currentFocusUIElement = focusedElement as UIElement; 1142UIElement child = (count > 0) ? this.GetVisualChild(0) as UIElement : null; 2242UIElement uie = child as UIElement; 2268UIElement uie = visi as UIElement; 2439/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2716hsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedHorizontalScrollBarVisibilityProperty)); 2726vsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedVerticalScrollBarVisibilityProperty));
System\Windows\Controls\Separator.cs (1)
40/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\SinglePageViewer.cs (1)
364/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Slider.cs (1)
1287/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Stack.cs (6)
586UIElement child = children[i]; 746UIElement child = (UIElement)children[i]; 838? ((UIElement)children[i]).DesiredSize.Width 839: ((UIElement)children[i]).DesiredSize.Height; 864return (children.IndexOf((UIElement)dependencyObjectChild));
System\Windows\Controls\StickyNote.cs (6)
586UIElement innerControl = this.Content.InnerControl as UIElement; 617UIElement contentContainer = GetContentContainer(); 720private UIElement GetContentContainer() 722return GetTemplateChild(SNBConstants.c_ContentControlId) as UIElement; 1482stickyNoteIsKeyboardFocusWithin.Path = new PropertyPath(UIElement.IsKeyboardFocusWithinProperty);
System\Windows\Controls\TabControl.cs (1)
303/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TabItem.cs (1)
257/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TextAdaptor.cs (1)
238UIElement renderScope = textView.RenderScope;
System\Windows\Controls\TextBlock.cs (9)
100void IContentHost.OnChildDesiredSizeChanged(UIElement child) 142if (value is UIElement) 144value = new InlineUIContainer((UIElement)value); 1881protected virtual void OnChildDesiredSizeChangedCore(UIElement child) 1887/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 3663if (embeddedObject is ContentElement || embeddedObject is UIElement) 3665if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 3722if (fd != null && d is UIElement) 3724fd.OnChildDesiredSizeChanged((UIElement)d);
System\Windows\Controls\TextBox.cs (1)
1001/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ToolBar.cs (6)
447/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 636UIElement newFocusElement = null; 637UIElement currentFocusElement = e.Source as UIElement; 648newFocusElement = VisualTreeHelper.GetChild(itemsHost, 0) as UIElement; 651newFocusElement = VisualTreeHelper.GetChild(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
System\Windows\Controls\ToolTip.cs (3)
239public UIElement PlacementTarget 241get { return (UIElement) GetValue(PlacementTargetProperty); } 440/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\ToolTipService.cs (10)
161typeof(UIElement), // Type 163new FrameworkPropertyMetadata((UIElement)null)); // Default Value 171public static UIElement GetPlacementTarget(DependencyObject element) 174return (UIElement)element.GetValue(PlacementTargetProperty); 182public static void SetPlacementTarget(DependencyObject element, UIElement value) 516UIElement.AddHandler(element, ToolTipOpeningEvent, handler); 526UIElement.RemoveHandler(element, ToolTipOpeningEvent, handler); 547UIElement.AddHandler(element, ToolTipClosingEvent, handler); 557UIElement.RemoveHandler(element, ToolTipClosingEvent, handler); 572EventManager.RegisterClassHandler(typeof(UIElement), FindToolTipEvent, new FindToolTipEventHandler(OnFindToolTip));
System\Windows\Controls\TreeView.cs (3)
758UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement; 840/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\TreeViewItem.cs (1)
1065/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\UIElementCollection.cs (33)
33public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 86public virtual void CopyTo(UIElement[] array, int index) 108public virtual UIElement this[int index] 110get { return _visualChildren[index] as UIElement; } 122UIElement e = vc[index] as UIElement; 139internal void SetInternal(int index, UIElement item) 159public virtual int Add(UIElement element) 170internal int AddInternal(UIElement element) 187public virtual int IndexOf(UIElement element) 196public virtual void Remove(UIElement element) 203internal void RemoveInternal(UIElement element) 215internal virtual void RemoveNoVerify(UIElement element) 224public virtual bool Contains(UIElement element) 265UIElement e = visuals[i] as UIElement; 280public virtual void Insert(int index, UIElement element) 291internal void InsertInternal(int index, UIElement element) 311UIElement e = vc[index] as UIElement; 362UIElement e = visuals[i] as UIElement; 384private UIElement Cast(object value) 389UIElement element = value as UIElement; 412return Contains(value as UIElement); 420return IndexOf(value as UIElement); 450Remove(value as UIElement); 489protected void SetLogicalParent(UIElement element) 501protected void ClearLogicalParent(UIElement element) 512internal UIElement VisualParent 518private void ValidateElement(UIElement element) 541private readonly UIElement _visualParent;
System\Windows\Controls\UserControl.cs (1)
45/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\Validation.cs (5)
402if (adornerSite is UIElement { IsVisible: false } siteUIElement) 416if (sender is not UIElement adornerSite) 434if (adornerSite is not UIElement siteUIElement) 587else if (source is UIElement) 588((UIElement)source).RaiseEvent(args);
System\Windows\Controls\ViewBox.cs (6)
161private UIElement InternalChild 166if (vc.Count != 0) return vc[0] as UIElement; 192public override UIElement Child 203UIElement old = InternalChild; 305UIElement child = InternalChild; 337UIElement child = InternalChild;
System\Windows\Controls\ViewPort3D.cs (1)
149/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Controls\VirtualizingPanel.cs (6)
35public double GetItemOffset(UIElement child) 45protected virtual double GetItemOffsetCore(UIElement child) 413protected void AddInternalChild(UIElement child) 426protected void InsertInternalChild(int index, UIElement child) 445internal static void AddInternalChild(UIElementCollection children, UIElement child) 451internal static void InsertInternalChild(UIElementCollection children, int index, UIElement child)
System\Windows\Controls\VirtualizingStackPanel.cs (48)
533_scrollData._offset.X = UIElement.RoundLayoutValue(_scrollData._offset.X, dpi.DpiScaleX); 534_scrollData._computedOffset.X = UIElement.RoundLayoutValue(_scrollData._computedOffset.X, dpi.DpiScaleX); 661_scrollData._offset.Y = UIElement.RoundLayoutValue(_scrollData._offset.Y, dpi.DpiScaleY); 662_scrollData._computedOffset.Y = UIElement.RoundLayoutValue(_scrollData._computedOffset.Y, dpi.DpiScaleY); 1694UIElement child; 1702child = generator.GenerateNext(out newlyRealized) as UIElement; 2219UIElement firstContainerInViewport = null; 2606firstContainerInViewport = children[firstItemInViewportChildIndex] as UIElement; 3392UIElement child = null; 3404child = (UIElement)children[i]; 3433UIElement containerBeforeViewport = null; 3442containerBeforeViewport = (UIElement)children[j]; 5876Size childDesiredSize = ((UIElement)children[i]).DesiredSize; 6446private void SetItemsHostInsetForChild(int index, UIElement child, IContainItemStorage itemStorageProvider, bool isHorizontal) 6557private ItemsControl GetScrollingItemsControl(UIElement container) 6689UIElement child, 7478UIElement child = children[i] as UIElement; 7630UIElement child = children[i] as UIElement; 8097object item = ((ItemContainerGenerator)generator).ItemFromContainer((UIElement)children[childIndex]); 8196UIElement child = null; 8209child = generator.GenerateNext(out newlyRealized) as UIElement; 8221child = (UIElement)children[childIndex]; 8403UIElement child, 8550UIElement child, 8585UIElement child, 8728private void InsertNewContainer(int childIndex, UIElement container) 8739private bool InsertRecycledContainer(int childIndex, UIElement container) 8751private bool InsertContainer(int childIndex, UIElement container, bool isRecycled) 8903private bool AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized, bool isBeforeViewport) 8975UIElement child = Generator.GenerateNext(out newlyRealized) as UIElement; 9079UIElement child; 9115child = (UIElement)children[childIndex]; 9198_realizedChildren = new List<UIElement>(children.Count); 9219foreach (UIElement child in InternalChildren) 9267UIElement child = _realizedChildren[realizedChildIndex]; 9292UIElement visualChild; 9293UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 9446private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 9591UIElement firstContainerInViewport, 10996protected override double GetItemOffsetCore(UIElement child) 11062double distance = vp.GetItemOffset((UIElement)child); 11271UIElement container = null; 11275container = (UIElement)children[i]; 11718private List<UIElement> _realizedChildren; 13028foreach (UIElement child in RealizedChildren)
System\Windows\Controls\WrapPanel.cs (6)
229UIElement child = children[i] as UIElement; 289UIElement child = children[i] as UIElement; 338UIElement child = children[i] as UIElement;
System\Windows\Data\BindingGroup.cs (4)
597UIElement layoutElement = Helper.FindMentor(this) as UIElement; 917UIElement layoutElement = mentor as UIElement;
System\Windows\Documents\Adorner.cs (6)
42protected Adorner(UIElement adornedElement) 76UIElement ch = this.GetVisualChild(i) as UIElement; 87/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 174public UIElement AdornedElement 240private readonly UIElement _adornedElement;
System\Windows\Documents\AdornerDecorator.cs (2)
23public override UIElement Child 152public override UIElement Child
System\Windows\Documents\AdornerLayer.cs (12)
208foreach (UIElement key in ElementMap.Keys) 229public void Update(UIElement element) 254public Adorner[] GetAdorners(UIElement element) 435/// Override for <seealso cref="UIElement.ArrangeCore" /> 674private void Clear(UIElement element) 697private void UpdateElementAdorners(UIElement element) 762private void UpdateAdorner(UIElement element) 789UIElement[] keys = new UIElement[keyCollection.Count]; 794UIElement elTemp = (UIElement)keys[i]; 810Clear((UIElement)removeList[i]);
System\Windows\Documents\BlockUIContainer.cs (4)
48public BlockUIContainer(UIElement uiElement) 68public UIElement Child 72return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 84UIElement child = Child;
System\windows\Documents\CaretElement.cs (2)
923_caretElement.ApplyAnimationClock(UIElement.OpacityProperty, _blinkAnimationClock); 929_caretElement.ApplyAnimationClock(UIElement.OpacityProperty, null);
System\Windows\Documents\ColumnResizeAdorner.cs (2)
31internal ColumnResizeAdorner(UIElement scope) : base(scope) 131internal void Initialize(UIElement renderScope, double xPos, double yPos, double height)
System\Windows\Documents\DocumentSequence.cs (4)
159UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 161UIElement uiElementRet = null; 1137UIElement e; 1138if ((e = ((object)base.Visual) as UIElement) != null)
System\Windows\Documents\DocumentSequenceTextView.cs (3)
489internal override UIElement RenderScope 495while (visual != null && !(visual is UIElement)) 500return visual as UIElement;
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
55if (property == UIElement.BitmapEffectProperty)
System\Windows\Documents\FixedDocument.cs (6)
197UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 199UIElement uiElementRet = null; 491fixedPosition = new FixedPosition(fixedPage.CreateFixedNode(pageIndex, (UIElement)element), 0); 1306private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement)); 1409UIElement e; 1410if ((e = ((object)base.Visual) as UIElement)!=null)
System\Windows\Documents\FixedDSBuilder.cs (5)
29internal NameHashFixedNode(UIElement e, int i) 33internal UIElement uiElement; 45public void BuildNameHashTable(String Name, UIElement e, int indexToFixedNodes) 103private void AddFixedNodeInFlow(int index, UIElement e) 115e = _fixedPage.GetElement(fn) as UIElement;
System\Windows\Documents\FixedHighlight.cs (3)
35internal FixedHighlight(UIElement element, int beginOffset, int endOffset, FixedHighlightType t, 199internal UIElement Element 229private readonly UIElement _element; // the Glyphs element, or possibly an image
System\Windows\Documents\FixedHyperlink.cs (1)
26UIElement FindElementByID(string elementID, out FixedPage rootFixedPage);
System\Windows\Documents\FixedPage.cs (24)
80/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 182UIElement uie = value as UIElement; 186throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 215public static double GetLeft(UIElement element) 228public static void SetLeft(UIElement element, double length) 243public static double GetTop(UIElement element) 256public static void SetTop(UIElement element, double length) 271public static double GetRight(UIElement element) 284public static void SetRight(UIElement element, double length) 299public static double GetBottom(UIElement element) 312public static void SetBottom(UIElement element, double length) 324public static Uri GetNavigateUri(UIElement element) 335public static void SetNavigateUri(UIElement element, Uri uri) 741foreach (UIElement child in Children) 764foreach (UIElement child in Children) 826UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 828UIElement uiElementRet = null; 833UIElement uiElement; 843uiElementRet = node as UIElement; 852internal FixedNode CreateFixedNode(int pageIndex, UIElement e) 1013childIndex = parentFP.Children.IndexOf((UIElement)e); 1017childIndex = parentC.Children.IndexOf((UIElement)e); 1046private FixedNode _CreateFixedNode(int pageIndex, UIElement e)
System\Windows\Documents\FixedSOMElement.cs (1)
69public static FixedSOMElement CreateFixedSOMElement(FixedPage page, UIElement uiElement, FixedNode fixedNode, int startIndex, int endIndex)
System\Windows\Documents\FixedTextBuilder.cs (14)
950elements.Current as UIElement, 1183public LogicalHyperlink(Uri uri, Geometry geom, UIElement uiElement) 1216public UIElement UIElement 1237private UIElement _uiElement; 1261public void AddLogicalHyperlink(Uri uri, Geometry geometry, UIElement uiElement) 1270public Uri GetUri(FixedSOMElement element, FixedPage p, out UIElement shadowElement) 1273UIElement e = p.GetElement(element.FixedNode) as UIElement; 1320public void MarkAsUsed(UIElement uiElement) 1399foreach (UIElement child in children) 1464UIElement shadowHyperlink; 1721private void _SetHyperlink(Uri navUri, FixedNode node, UIElement shadowHyperlink) 1734UIElement uiElement = _fixedPage.GetElement(node) as UIElement;
System\Windows\Documents\FixedTextContainer.cs (3)
436UIElement e; 439e = (UIElement)o; 449e = (UIElement)o;
System\Windows\Documents\FixedTextView.cs (7)
86UIElement e; 676internal override UIElement RenderScope 682while (visual != null && !(visual is UIElement)) 687return visual as UIElement; 768private bool _HitTest(Point pt, out UIElement e) 780e = (UIElement) v; 1290private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\Documents\FlowDocument.cs (2)
940internal void OnChildDesiredSizeChanged(UIElement child) 1209OnChildDesiredSizeChanged(arg as UIElement);
System\Windows\Documents\Glyphs.cs (1)
692((UIElement)d).InvalidateVisual();
System\Windows\Documents\Hyperlink.cs (5)
924SetUpEventHandler(element, UIElement.KeyDownEvent, new KeyEventHandler(OnKeyDown)); //initiates navigation 925SetUpEventHandler(element, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnMouseLeftButtonDown)); //capture hyperlink pressed state 926SetUpEventHandler(element, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(OnMouseLeftButtonUp)); //can initiate navigation 929SetUpEventHandler(element, UIElement.MouseEnterEvent, new MouseEventHandler(OnMouseEnter)); //set status bar 930SetUpEventHandler(element, UIElement.MouseLeaveEvent, new MouseEventHandler(OnMouseLeave)); //clear status bar
System\Windows\Documents\ImmComposition.cs (1)
1860private UIElement RenderScope
System\Windows\Documents\InlineCollection.cs (4)
68UIElement uiElement = value as UIElement; 104public void Add(UIElement uiElement) 234private int AddUIElement(UIElement uiElement, bool returnIndex)
System\Windows\Documents\InlineUIContainer.cs (6)
49public InlineUIContainer(UIElement childUIElement) : this(childUIElement, null) 63public InlineUIContainer(UIElement childUIElement, TextPointer insertionPosition) 101public UIElement Child 105return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 117UIElement child = Child; 165UIElement childElement = this.Child;
System\Windows\Documents\ITextRange.cs (1)
111UIElement GetUIElementSelected();
System\Windows\Documents\ITextView.cs (1)
497UIElement RenderScope { get; }
System\Windows\Documents\RubberbandSelector.cs (2)
213foreach (UIElement child in vc) 609private UIElement _scope; // element to which we are attached
System\windows\Documents\TextEditor.cs (2)
298internal static ITextView GetTextView(UIElement scope) 394EventManager.RegisterClassHandler(controlType, UIElement.LostFocusEvent, new RoutedEventHandler(OnLostFocus));
System\windows\Documents\TextEditorContextMenu.cs (2)
114if (contextMenu == null || !(e.TargetElement is UIElement)) 240UIElement placementTarget = ((ContextMenu)sender).PlacementTarget;
System\windows\Documents\TextEditorMouse.cs (4)
691UIElement uiElement = GetUIElementWhenMouseOver(This, mouseMovePoint); 714private static UIElement GetUIElementWhenMouseOver(TextEditor This, Point mouseMovePoint) 751return mouseMovePosition.GetAdjacentElement(mouseMovePosition.LogicalDirection) as UIElement; 761UIElement renderScope = textEditor.TextView.RenderScope;
System\Windows\Documents\TextElement.cs (2)
815UIElement uie = value as UIElement;
System\Windows\Documents\TextPointer.cs (7)
508/// element and has <see cref="UIElement"/> as atomic symbol in a requested direction.</para> 633/// the <see cref="UIElement"/> class.</para> 796/// and a <see cref="UIElement"/>.</para> 800/// <para><see cref="UIElement"/> object can be returned only when 832/// <para>- the whole <see cref="UIElement"/> as atomic embedded object.</para> 894/// <para>- the whole <see cref="UIElement"/> as atomic embedded object.</para> 2137internal void InsertUIElement(UIElement uiElement)
System\Windows\Documents\TextRange.cs (2)
184UIElement ITextRange.GetUIElementSelected() 876internal UIElement GetUIElementSelected()
System\Windows\Documents\TextRangeBase.cs (2)
1614internal static UIElement GetUIElementSelected(ITextRange range) 1634return start.GetAdjacentElement(LogicalDirection.Forward) as UIElement;
System\Windows\Documents\TextRangeEdit.cs (1)
878UIElement embeddedElement = ((BlockUIContainer)block).Child;
System\Windows\Documents\TextSchema.cs (14)
271elementType.Module == typeof(System.Windows.UIElement).Module; // presentationcore 841return typeof(UIElement).IsAssignableFrom(childType); 876return typeof(UIElement).IsAssignableFrom(childType); 1189UIElement.RenderTransformProperty, 1190UIElement.RenderTransformOriginProperty, 1191UIElement.OpacityProperty, 1192UIElement.OpacityMaskProperty, 1193UIElement.BitmapEffectProperty, 1194UIElement.BitmapEffectInputProperty, 1195UIElement.VisibilityProperty, 1196UIElement.ClipToBoundsProperty, 1197UIElement.ClipProperty, 1198UIElement.SnapsToDevicePixelsProperty, 1207UIElement.AllowDropProperty,
System\windows\Documents\TextSelection.cs (2)
2558if (element is UIElement && ((UIElement)element).IsKeyboardFocusWithin)
System\Windows\Documents\TextStore.cs (1)
2073internal UIElement RenderScope
System\windows\Documents\UIElementPropertyUndoUnit.cs (5)
49private UIElementPropertyUndoUnit(UIElement uiElement, DependencyProperty property, object oldValue) 102internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, HorizontalAlignment newValue) 108internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, FlowDirection newValue) 124private static void AddPrivate(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, object newValue) 165private readonly UIElement _uiElement;
System\Windows\Documents\ValidationHelper.cs (1)
121Invariant.Assert(child is UIElement);
System\Windows\FrameworkElement.cs (46)
331protected internal virtual void ParentLayoutInvalidated(UIElement child) 589virtual internal UIElement TemplateChild 1418if (item == null || (item is UIElement)) 2205UIElement layoutParent = null; 2218layoutParent = v as UIElement; 3154UIElement e = null; 4292/// Override for <seealso cref="UIElement.MeasureCore" />. 4343mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4344mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4345mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4346mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4391frameworkAvailableSize = UIElement.RoundLayoutSize(frameworkAvailableSize, dpi.DpiScaleX, dpi.DpiScaleY); 4472clippedDesiredWidth = UIElement.RoundLayoutValue(clippedDesiredWidth, dpi.DpiScaleX); 4473clippedDesiredHeight = UIElement.RoundLayoutValue(clippedDesiredHeight, dpi.DpiScaleY); 4518/// Override for <seealso cref="UIElement.ArrangeCore" />. 4572marginWidth = UIElement.RoundLayoutValue(marginWidth, dpi.DpiScaleX); 4573marginHeight = UIElement.RoundLayoutValue(marginHeight, dpi.DpiScaleY); 4680mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4681mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4682mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4683mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4706arrangeSize = UIElement.RoundLayoutSize(arrangeSize, dpi.DpiScaleX, dpi.DpiScaleY); 4719RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY); 4732clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4749clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4765clientSize = UIElement.RoundLayoutSize(clientSize, dpi.DpiScaleX, dpi.DpiScaleY); 4781offset.X = UIElement.RoundLayoutValue(offset.X, dpi.DpiScaleX); 4782offset.Y = UIElement.RoundLayoutValue(offset.Y, dpi.DpiScaleY); 4790/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 4870/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 4891mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4892mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4893mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4894mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4944clipRect = UIElement.RoundLayoutRect(clipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4965slotClipRect = UIElement.RoundLayoutRect(slotClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4982localClipRect = UIElement.RoundLayoutRect(localClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 5011slotRect = UIElement.RoundLayoutRect(slotRect, dpi.DpiScaleX, dpi.DpiScaleY); 5020localRect = UIElement.RoundLayoutRect(localRect, dpi.DpiScaleX, dpi.DpiScaleY); 5141internal static void InternalSetLayoutTransform(UIElement element, Transform layoutTransform) 5799UIElement uiElement = this._templatedParent as UIElement; 6076UIElement uiElement = modelTreeNode as UIElement; 6386private UIElement _templateChild; // Non-null if this FE has a child that was created as part of a template. 6392internal static DependencyObjectType UIElementDType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\FrameworkTemplate.cs (3)
759else if (dependencyProperty == UIElement.UidProperty) 1128UIElement rootElement = rootObject as UIElement;
System\Windows\Generated\FrameworkContentElement.cs (2)
365UIElement.SynchronizeForceInheritProperties(null, this, null, _parent); 369UIElement.SynchronizeForceInheritProperties(null, this, null, oldParent);
System\Windows\Generated\FrameworkElement.cs (2)
363UIElement.SynchronizeForceInheritProperties(this, null, null, _parent); 367UIElement.SynchronizeForceInheritProperties(this, null, null, oldParent);
System\Windows\Ink\Events.cs (9)
118private List<UIElement> _elements; 125internal InkCanvasSelectionChangingEventArgs(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 130List<UIElement> elements = 131new List<UIElement>(selectedElements); 164public void SetSelectedElements(IEnumerable<UIElement> selectedElements) 168List<UIElement> elements = 169new List<UIElement>(selectedElements); 178public ReadOnlyCollection<UIElement> GetSelectedElements() 180return new ReadOnlyCollection<UIElement>(_elements);
System\Windows\Input\KeyboardNavigation.cs (37)
493public FocusVisualAdorner(UIElement adornedElement, Style focusVisualStyle) : base(adornedElement) 507public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent, IContentHost contentHostParent, Style focusVisualStyle) 546((UIElement)GetVisualChild(0)).Measure(constraint); 621((UIElement)GetVisualChild(0)).Arrange(new Rect(new Point(), finalSize)); 748private UIElement _adorderChild; 753internal static UIElement GetParentUIElementFromContentElement(ContentElement ce) 759internal static UIElement GetParentUIElementFromContentElement(ContentElement ce, ref IContentHost ichParent) 773UIElement eParent = parent as UIElement; 783UIElement uielement = visualParent as UIElement; 875UIElement parentUIElement = GetParentUIElementFromContentElement(fce, ref parentICH); 1431UIElement uiElement = visual as UIElement; 1461if (current is UIElement || current is UIElement3D) 1475DependencyObject parentAsUIElement = parent as UIElement; 1518if (current is UIElement || current is UIElement3D) 1536DependencyObject parentAsUIElement = parent as UIElement; 1630if (current is UIElement || current is UIElement3D) 1645DependencyObject uiElement = e as UIElement; 1698if (current is UIElement || current is UIElement3D) 1711DependencyObject uiElement = e as UIElement; 1923UIElement uie = element as UIElement; 2364UIElement uiElement = element as UIElement; 2402UIElement parentUIElement = GetParentUIElementFromContentElement(ce, ref parentICH); 2724UIElement sourceUIElement = sourceElement as UIElement; 2734UIElement targetUIElement = targetElement as UIElement; 2766UIElement uiElement = sender as UIElement; 2782if (sender is UIElement) 2783((UIElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus)); 2995ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3027currentRectElement as UIElement,
System\Windows\Interop\ActiveXHost.cs (2)
68invalidatorMap[UIElement.VisibilityProperty] = new PropertyInvalidator(OnVisibilityInvalidated); 919args.Target = (UIElement)sender;
System\Windows\Interop\HwndHost.cs (1)
623/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (7)
57return typeof(System.Windows.UIElement); 59return typeof(System.Windows.UIElement); 61return typeof(System.Windows.UIElement); 63return typeof(System.Windows.UIElement); 65return typeof(System.Windows.UIElement); 80case 3: assembly = typeof(System.Windows.UIElement).Assembly; break; 788case 694: t = () => typeof(UIElement); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (53)
3922Type type = typeof(System.Windows.UIElement); 3923DependencyProperty dp = System.Windows.UIElement.ClipToBoundsProperty; 3925this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 3939Type type = typeof(System.Windows.UIElement); 3940DependencyProperty dp = System.Windows.UIElement.FocusableProperty; 3942this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 3956Type type = typeof(System.Windows.UIElement); 3957DependencyProperty dp = System.Windows.UIElement.IsEnabledProperty; 3959this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 3973Type type = typeof(System.Windows.UIElement); 3974DependencyProperty dp = System.Windows.UIElement.RenderTransformProperty; 3976this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 3990Type type = typeof(System.Windows.UIElement); 3991DependencyProperty dp = System.Windows.UIElement.VisibilityProperty; 3993this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4028typeof(System.Windows.UIElement), // type 4032bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.AdornedElementPlaceholder)target).Child = (System.Windows.UIElement)value; }; 4045typeof(System.Windows.UIElement), // type 4049bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.AdornerDecorator)target).Child = (System.Windows.UIElement)value; }; 4096typeof(System.Windows.UIElement), // type 4100bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.BlockUIContainer)target).Child = (System.Windows.UIElement)value; }; 4147typeof(System.Windows.UIElement), // type 4151bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Border)target).Child = (System.Windows.UIElement)value; }; 4164typeof(System.Windows.UIElement), // type 4168bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Child = (System.Windows.UIElement)value; }; 4423typeof(System.Windows.UIElement), // type 4427bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Decorator)target).Child = (System.Windows.UIElement)value; }; 4834typeof(System.Windows.UIElement), // type 4838bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.InkPresenter)target).Child = (System.Windows.UIElement)value; }; 4851typeof(System.Windows.UIElement), // type 4855bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.InlineUIContainer)target).Child = (System.Windows.UIElement)value; }; 6169typeof(System.Windows.UIElement), // type 6173bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Viewbox)target).Child = (System.Windows.UIElement)value; }; 6808Type type = typeof(System.Windows.UIElement); 6809DependencyProperty dp = System.Windows.UIElement.UidProperty; 6811this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7767Type type = typeof(System.Windows.UIElement); 7768DependencyProperty dp = System.Windows.UIElement.RenderTransformOriginProperty; 7770this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7805typeof(System.Windows.UIElement), // type 7809bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Bullet = (System.Windows.UIElement)value; }; 7818Type type = typeof(System.Windows.UIElement); 7819DependencyProperty dp = System.Windows.UIElement.SnapsToDevicePixelsProperty; 7821this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7835Type type = typeof(System.Windows.UIElement); 7837this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7843bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.UIElement)target).CommandBindings; }; 7852Type type = typeof(System.Windows.UIElement); 7854this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7860bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.UIElement)target).InputBindings; }; 8094Type type = typeof(System.Windows.UIElement); 8095DependencyProperty dp = System.Windows.UIElement.AllowDropProperty; 8097this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10691typeof(System.Windows.UIElement),
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (1)
36UIElement.AddHandler(dObject, _member.RoutedEvent, handler);
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
106case 3: assembly = new Baml6Assembly(typeof(System.Windows.UIElement).Assembly); break;
System\Windows\Markup\BamlRecordReader.cs (8)
1103((element is UIElement) || 2839UIElement uiel = element as UIElement; 3311UIElement element = CurrentContext.ObjectData as UIElement; 3314SetDependencyValue(element, UIElement.UidProperty, bamlDefAttributeRecord.Value); 4429UIElement uiElement = element as UIElement;
System\Windows\Markup\KnownTypes.cs (6)
1948return System.Windows.UIElement.ClipToBoundsProperty; 1950return System.Windows.UIElement.FocusableProperty; 1952return System.Windows.UIElement.IsEnabledProperty; 1954return System.Windows.UIElement.RenderTransformProperty; 1956return System.Windows.UIElement.VisibilityProperty; 6248case KnownElements.UIElement: t = typeof(System.Windows.UIElement); break;
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
547if (dependencyProperty == UIElement.UidProperty)
System\Windows\Markup\WpfXamlLoader.cs (2)
100UIElement uiElement = args.Instance as UIElement;
System\Windows\Markup\XamlReader.cs (2)
364UIElement uiElement = args.Instance as UIElement;
System\Windows\Navigation\NavigationService.cs (2)
2363UIElement navigatorHost = INavigatorHost as UIElement;
System\Windows\Navigation\NavigationWindow.cs (1)
830/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
System\Windows\SizeChangedEventArgs.cs (3)
21/// The SizeChangeInfo that is used by <seealso cref="UIElement.OnRenderSizeChanged"/>. 23internal SizeChangedEventArgs(UIElement element, SizeChangedInfo info) 78private UIElement _element;
System\Windows\StyleHelper.cs (2)
1934internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1943UIElement child,
System\Windows\SystemResources.cs (1)
521_presentationCore = typeof(UIElement).Assembly;
System\Windows\Window.cs (7)
87UIElement.ManipulationCompletedEvent, 91UIElement.ManipulationInertiaStartingEvent, 1756/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1875UIElement child = this.GetVisualChild(0) as UIElement; 3411UIElement child = this.GetVisualChild(0) as UIElement;
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
394UIElement child = Child; 448UIElement child = Child;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
218UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.Aero2 (5)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
394UIElement child = Child; 448UIElement child = Child;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
218UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.AeroLite (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.Classic (4)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
656UIElement child = Child; 705UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.Luna (4)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
315UIElement child = Child; 369UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationFramework.Royale (4)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
273UIElement child = Child; 327UIElement child = Child;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
177UIElement child = Child; 222UIElement child = Child;
PresentationUI (8)
MS\Internal\Documents\Application\PageTextBox.cs (1)
139/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
241/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (6)
1204private void ChangeControlVisibility(UIElement uie) 1217private void ChangeControlVisibility(UIElement uie, bool visibility) 2427UIElement[] children = new UIElement[fixedPage.Children.Count]; 2429foreach (UIElement child in fixedPage.Children) 2436foreach (UIElement child in children)
ReachFramework (7)
AlphaFlattener\Utility.cs (2)
1573UIElement uiElement = visualBrush.Visual as UIElement;
Serialization\Manager\ReachSerializationUtils.cs (3)
692UIElement element = visual as UIElement; 1142UIElement uiElement,
Serialization\VisualTreeFlattener.cs (2)
513UIElement uiElement = visual as UIElement;
Roslyn.VisualStudio.DiagnosticsWindow (4)
OptionPages\InternalOptionsControl.cs (3)
128var uiElement = CreateControl(option, additional: additional); 137var uiElement = CreateControl(option, languageName, additional); 144private UIElement CreateControl(IOption2 option, string languageName = null, string additional = null)
Panels\TelemetryPanel.xaml.cs (1)
136private static IDisposable Disable(UIElement control)
System.Windows.Controls.Ribbon (245)
Microsoft\Windows\Automation\Peers\RibbonApplicationMenuAutomationPeer.cs (1)
52UIElement element = menu.FooterPaneHost;
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
203UIElement helpPaneHost = OwningRibbon.HelpPaneHost;
Microsoft\Windows\Automation\Peers\RibbonContextualTabGroupAutomationPeer.cs (2)
43UIElement headerElement = tabGroup.Header as UIElement;
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
115UIElement filterHost = null;
Microsoft\Windows\Automation\Peers\RibbonMenuItemDataAutomationPeer.cs (8)
70UIElement owner = GetWrapper(); 138UIElement owner = GetWrapper(); 169UIElement owner = GetWrapper(); 199UIElement owner = GetWrapper(); 239UIElement owner = GetWrapper(); 263UIElement owner = GetWrapper(); 283UIElement owner = GetWrapper(); 337UIElement owner = GetWrapper();
Microsoft\Windows\Controls\ActivatingKeyTipEventArgs.cs (1)
68public UIElement PlacementTarget
Microsoft\Windows\Controls\Generated\TreeHelper.cs (4)
214UIElement element = pathStart as UIElement; 238UIElement element = pathStart as UIElement;
Microsoft\Windows\Controls\KeyTipAdorner.cs (7)
28public KeyTipAdorner(UIElement adornedElement, 29UIElement placementTarget, 100_keyTipControl.IsEnabled = (bool)keyTipElement.GetValue(UIElement.IsEnabledProperty); 164private UIElement PlacementTarget { get; set; } 195UIElement placementTarget = PlacementTarget; 243UIElement placementTarget = PlacementTarget; 295private double NudgeToRibbonGroupAxis(UIElement placementTarget, double verticalPosition)
Microsoft\Windows\Controls\KeyTipService.cs (6)
937if (!((bool)(exactMatchElement.GetValue(UIElement.IsEnabledProperty)))) 1348DependencyProperty.RegisterAttached("KeyTipAdornerHolder", typeof(UIElement), typeof(KeyTipService), new UIPropertyMetadata(null)); 1358UIElement uie = RibbonHelper.GetContainingUIElement(element); 1383UIElement adornedElement = RibbonHelper.GetContainingUIElement(activatingEventArgs.PlacementTarget == null ? element : activatingEventArgs.PlacementTarget); 1434UIElement adornedElement = (UIElement)element.GetValue(KeyTipAdornerHolderProperty);
Microsoft\Windows\Controls\Ribbon\Primitives\IProvideStarLayoutInfoBase.cs (1)
26UIElement TargetElement { get; }
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (6)
384UIElement child = children[i] as UIElement; 454UIElement child = children[i]; 595UIElement child = (UIElement)children[i]; 629public UIElement TargetElement
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (4)
338UIElement child = children[i] as UIElement; 412UIElement child = children[i] as UIElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (11)
64UIElement child = children[i]; 146private static bool IsStarChild(UIElement child) 152private static bool IsStarChild(UIElement child, out double weight) 208UIElement child = children[i]; 275UIElement child = children[i]; 308UIElement child = children[i]; 350UIElement child = children[columnChildIndex]; 381private static bool CanChildStretch(UIElement child) 390UIElement contentChild = ribbonControl.ContentChild; 431public UIElement TargetElement 438return itemsPresenter.TemplatedParent as UIElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
307foreach (UIElement child in this.Children)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (8)
117foreach (UIElement child in InternalChildren) 159UIElement starLayoutTarget = starLayoutInfoProvider.TargetElement; 212HashSet<UIElement> starLayoutTargets = GetStarLayoutProviderTargets(); 222UIElement child = children[i]; 259private HashSet<UIElement> GetStarLayoutProviderTargets() 261HashSet<UIElement> targets = new HashSet<UIElement>(); 265UIElement starLayoutTarget = starProvider.TargetElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (3)
24UIElement child = Children[i]; 45UIElement child = (UIElement)children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (16)
38UIElement childToAdd = Generator.GenerateNext() as UIElement; 59UIElement childToMove = GeneratedChildren[args.OldPosition.Index]; 110private List<UIElement> _generatedChildren; 112internal List<UIElement> GeneratedChildren 129_generatedChildren = new List<UIElement>(); 140UIElement child; 143while ((child = Generator.GenerateNext() as UIElement) != null) 177List<UIElement> generatedItems = GeneratedChildren; 183UIElement generatedChild = generatedItems[i]; 248UIElement parent = VisualTreeHelper.GetParent(this) as UIElement; 280UIElement child = (UIElement)children[i]; 318UIElement currentChild = InternalChildren[j]; 332UIElement currentChild = GeneratedChildren[k];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (8)
114foreach (UIElement child in InternalChildren) 250UIElement child = children[index]; 406UIElement child = children[i]; 455UIElement child = children[i]; 489foreach (UIElement element in children) 543foreach (UIElement element in children) 607foreach (UIElement element in InternalChildren) 672UIElement child = children[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (2)
195UIElement qat = Ribbon.QatTopHost; 205UIElement titleHost = Ribbon.TitleHost;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (18)
67UIElement _qatTopHost = null; // ContentPresenter hosting QuickAccessToolBar 68UIElement _titleHost = null; // ContentPresenter hosting the Title 69UIElement _helpPaneHost = null; // ContentPresenter hosting the HelpPaneContent 666internal UIElement QatTopHost 674internal UIElement TitleHost 682internal UIElement HelpPaneHost 766_qatTopHost = this.GetTemplateChild(Ribbon.QatHostTemplateName) as UIElement; 767_titleHost = this.GetTemplateChild(Ribbon.TitleHostTemplateName) as UIElement; 768_helpPaneHost = this.GetTemplateChild(Ribbon.HelpPaneTemplateName) as UIElement; 1306!((UIElement)(ribbon._itemsPresenterPopup.Parent)).IsArrangeValid)) 2407ContextMenuOriginalSource = e.OriginalSource as UIElement; 2411internal UIElement ContextMenuOriginalSource 2464UIElement originalSource = args.OriginalSource as UIElement; 2467originalSource = FindElementThatCanBeAddedToQAT(originalSource) as UIElement; 2565UIElement originalSource = args.OriginalSource as UIElement; 2658e.CloneInstance = (UIElement)RibbonHelper.CreateClone(e.InstanceToBeCloned, allowTransformations);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (9)
268internal UIElement FooterPaneHost 273internal UIElement AuxiliaryPaneHost 396UIElement auxiliaryPaneHost = AuxiliaryPaneHost; 412UIElement footerPaneHost = FooterPaneHost; 428UIElement subMenuScrollViewer = SubMenuScrollViewer; 448UIElement footerPaneHost = FooterPaneHost; 471UIElement popupChild = _popup.TryGetChild(); 489UIElement auxilaryPaneHost = AuxiliaryPaneHost; 519UIElement auxilaryPaneHost = AuxiliaryPaneHost;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (3)
545_clonedElement = logicalElement as UIElement; 951UIElement targetFocusOnFalse = null; 1687private UIElement _clonedElement;
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
185internal UIElement ContentChild
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (8)
73private static bool CanRaiseDismissPopups(UIElement dismissPopupSource) 100UIElement dismissPopupSource = contextMenu.GetDismissPopupSource(); 140UIElement uie = current as UIElement; 181private UIElement GetDismissPopupSource() 183UIElement placementTarget = PlacementTarget; 195UIElement returnValue = ribbon.ContextMenuOriginalSource; 210UIElement dismissPopupSource = GetDismissPopupSource();
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (5)
153UIElement element = e.OldValue as UIElement; 161UIElement element = e.NewValue as UIElement; 223internal UIElement ContentChild
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (1)
112UIElement contentChild = ribbonControl.ContentChild;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (1)
44UIElement popupRoot,
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
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)
622UIElement popupChild = group._collapsedGroupPopup.TryGetChild(); 864UIElement contentChild = ribbonControl.ContentChild; 1404UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1446UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1501UIElement popupChild = _collapsedGroupPopup.TryGetChild(); 1676UIElement placementTarget = e.PlacementTarget; 1721UIElement ribbonPopupChild = ribbon.ItemsPresenterPopup.TryGetChild(); 1763UIElement popupChild = _collapsedGroupPopup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (57)
477UIElement uie = Keyboard.FocusedElement as UIElement; 492UIElement uie; 496if ((uie = element as UIElement) != null) 514UIElement uie; 518if ((uie = element as UIElement) != null) 942UIElement uiElement = element as UIElement; 970UIElement uiElement = element as UIElement; 1014public static void HandleLostMouseCapture(UIElement element, 1018UIElement targetCapture, 1019UIElement targetFocus) 1098private static bool ReacquireCapture(UIElement targetCapture, UIElement targetFocus) 1108public static bool IsMousePhysicallyOver(UIElement element) 1128UIElement alternateCaptureHost) 1136UIElement element = sender as UIElement; 1140UIElement source = Mouse.Captured as UIElement; 1157UIElement mouseOverTarget, 1158UIElement alternateMouseOverTarget) 1182public static void AsyncSetFocusAndCapture(UIElement element, 1184UIElement targetCapture, 1185UIElement targetFocus) 1208public static void RestoreFocusAndCapture(UIElement targetCapture, 1209UIElement targetFocus) 1225public static void HandleIsDropDownChanged(UIElement element, 1227UIElement targetCapture, 1228UIElement targetFocus) 1251object sender, KeyEventArgs e, Func<bool> gettor, Action<bool> settor, UIElement targetFocusOnFalse, UIElement targetFocusContainerOnTrue) 1277UIElement uie = sender as UIElement; 1323public static UIElement TryGetChild(this Popup popup) 1328public static bool IsCaptureInSubtree(UIElement element) 1334public static bool IsCaptureInVisualSubtree(UIElement element) 1412UIElement managerElement = starLayoutManager as UIElement; 1541private static void TransferProperty(UIElement original, UIElement clone, DependencyProperty dp, TransferMode mode) 1546private static void TransferProperty(UIElement original, UIElement clone, DependencyProperty originalProperty, DependencyProperty cloneProperty, TransferMode mode) 1868if (original is UIElement || 2499UIElement container = parentItemsControl.ItemContainerGenerator.ContainerFromIndex(i) as UIElement; 2574public static UIElement GetContainingUIElement(DependencyObject element) 2576UIElement uie = element as UIElement; 2615UIElement mediumPlacementTarget) 2662UIElement nonLargePlacementTarget) 2695UIElement mediumPlacementTarget) 2746UIElement mediumPlacementTarget) 2848internal static AutomationPeer CreatePeer(UIElement element) 2960UIElement uie = element as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (10)
64EventManager.RegisterClassHandler(ownerType, UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCaptureThunk)); 66EventManager.RegisterClassHandler(ownerType, UIElement.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotKeyboardFocusThunk), true); 791UIElement popupChild = _popup.TryGetChild(); 1257UIElement popupChild = _popup.TryGetChild(); 1285_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1336private UIElement _popupRoot; 1430UIElement popupChild = _popup.TryGetChild(); 1446UIElement popupChild = _popup.TryGetChild(); 1538UIElement popupChild = _popup.TryGetChild(); 1685UIElement popupChild = _popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (12)
651_sideBarBorder = GetTemplateChild(SideBarBorderTemplatePartName) as UIElement; 782UIElement popupChild = _popup.TryGetChild(); 834UIElement popupChild = _popup.TryGetChild(); 991UIElement popupChild = _popup.TryGetChild(); 1313UIElement popupChild = _popup.TryGetChild(); 1335_popupRoot = TreeHelper.FindVisualRoot(_itemsPresenter) as UIElement; 1596private UIElement _popupRoot; 1597private UIElement _sideBarBorder = null; 1676UIElement popupChild = _popup.TryGetChild(); 1692UIElement popupChild = _popup.TryGetChild(); 1750internal UIElement SideBarBorder 1829UIElement popupChild = _popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (8)
176UIElement popupChild = qat._overflowPopup.TryGetChild(); 366UIElement popupChild = _overflowPopup.TryGetChild(); 378UIElement popupChild = _overflowPopup.TryGetChild(); 396UIElement popupChild = _overflowPopup.TryGetChild(); 457UIElement popupChild = _overflowPopup.TryGetChild(); 596UIElement contentChild = ribbonControl.ContentChild; 617UIElement contentChild = ribbonControl.ContentChild; 677UIElement popupChild = _overflowPopup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBarCloneEventArgs.cs (4)
22public RibbonQuickAccessToolBarCloneEventArgs(UIElement targetElement) 28public UIElement InstanceToBeCloned 36public UIElement CloneInstance 55private UIElement _instanceToBeCloned;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
406UIElement popupChild = Popup.TryGetChild();
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
78UIElement target = e.NewValue as UIElement; 284UIElement placementTarget = toolTip.PlacementTarget; 338UIElement placementTarget = this.PlacementTarget;
WindowsFormsIntegration (5)
System\Windows\Integration\ElementHost.cs (4)
53private SW.UIElement _child; 179public SW.UIElement Child 187UIElement oldValue = Child; 266private void OnChildChanged(UIElement oldChild)
System\Windows\Integration\WindowsFormsHost.cs (1)
566/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)