3 types derived from UIElement
PresentationFramework (2)
src\Framework\System\windows\Documents\CaretElement.cs (1)
1236private class CaretSubElement : UIElement
src\Framework\System\Windows\FrameworkElement.cs (1)
109public partial class FrameworkElement : UIElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (1)
11class ConnectionPoint : UIElement
2 instantiations of UIElement
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10691bamlType.DefaultConstructor = delegate() { return new System.Windows.UIElement(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1630case KnownElements.UIElement: o = new System.Windows.UIElement(); break;
2713 references to UIElement
PresentationCore (1083)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (6)
132internal static Rect GetLocalRect( UIElement element ) 147internal static Rect GetScreenRect( IntPtr hwnd, UIElement el ) 195UIElement el = visual as UIElement; 290if ( !(sibling is UIElement) || (((UIElement)sibling).Visibility == Visibility.Visible ) )
Core\CSharp\MS\Internal\Automation\SynchronizedInputAdaptor.cs (4)
55UIElement e = _owner as UIElement; 91UIElement e = _owner as UIElement;
Core\CSharp\MS\Internal\DeferredElementTreeState.cs (2)
91UIElement e = element as UIElement;
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (6)
18UIElement e = o as UIElement; 134UIElement e = logicalParent as UIElement; 298UIElement e = (UIElement)InputManager.ListeningElement;
Core\CSharp\MS\Internal\UIElementHelper.cs (15)
20UIElement oAsUIElement = o as UIElement; 36UIElement oAsUIElement = o as UIElement; 52UIElement uie; 56if ((uie = o as UIElement) != null) 73internal static UIElement GetContainingUIElement2D(DependencyObject reference) 75UIElement element = null; 79element = reference as UIElement; 119UIElement childAsUIElement = child as UIElement; 140return (o is UIElement || o is UIElement3D); 146UIElement e = null; 187out UIElement e, 197e = o as UIElement;
Core\CSharp\System\Windows\Automation\AutomationProperties.cs (5)
402typeof(UIElement), 404new UIPropertyMetadata((UIElement)null)); 409public static void SetLabeledBy(DependencyObject element, UIElement value) 422public static UIElement GetLabeledBy(DependencyObject element) 429return ((UIElement)element.GetValue(LabeledByProperty));
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (2)
420UIElement uie = focusedElement as UIElement;
Core\CSharp\System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
49/// <seealso cref="UIElement.OnCreateAutomationPeer"/> virtual callback. If FrameworkContentElement does not
Core\CSharp\System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (1)
25public GenericRootAutomationPeer(UIElement owner): base(owner)
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (7)
107&& child is UIElement 108&& (peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)child)) != null ) 236UIElement containingUIElement = GetContainingUIElement(_owner); 258private static UIElement GetContainingUIElement(DependencyObject reference) 260UIElement element = null; 264element = reference as UIElement; 346UIElement element = AutomationProperties.GetLabeledBy(_owner);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (12)
23public UIElementAutomationPeer(UIElement owner) 33public UIElement Owner 48/// <seealso cref="UIElement.OnCreateAutomationPeer"/> virtual callback. If UIElement does not 52public static AutomationPeer CreatePeerForElement(UIElement element) 63public static AutomationPeer FromElement(UIElement element) 131&& child is UIElement 132&& (peer = CreatePeerForElement((UIElement)child)) != null ) 291internal static Rect CalculateVisibleBoundingRect(UIElement owner) 405UIElement element = AutomationProperties.GetLabeledBy(_owner); 446UIElement element = _owner.PositionAndSizeOfSetController; 481UIElement element = _owner.PositionAndSizeOfSetController; 547private UIElement _owner;
Core\CSharp\System\Windows\ContentElement.cs (15)
45UIElement.RegisterEvents(typeof(ContentElement)); 48UIElement.IsFocusedPropertyKey.OverrideMetadata( 566UIElement.IsFocusedProperty.AddOwner( 613UIElement.IsEnabledProperty.AddOwner( 635add { EventHandlersStoreAdd(UIElement.IsEnabledChangedKey, value); } 636remove { EventHandlersStoreRemove(UIElement.IsEnabledChangedKey, value); } 701ce.RaiseDependencyPropertyChanged(UIElement.IsEnabledChangedKey, e); 721UIElement.FocusableProperty.AddOwner( 741add {EventHandlersStoreAdd(UIElement.FocusableChangedKey, value);} 742remove {EventHandlersStoreRemove(UIElement.FocusableChangedKey, value);} 750ce.RaiseDependencyPropertyChanged(UIElement.FocusableChangedKey, e); 805UIElement.AllowDropProperty.AddOwner( 970internal static readonly UncommonField<EventHandlersStore> EventHandlersStoreField = UIElement.EventHandlersStoreField; 971internal static readonly UncommonField<InputBindingCollection> InputBindingCollectionField = UIElement.InputBindingCollectionField; 972internal static readonly UncommonField<CommandBindingCollection> CommandBindingCollectionField = UIElement.CommandBindingCollectionField;
Core\CSharp\System\Windows\DataObject.cs (6)
997UIElement.AddHandler(element, CopyingEvent, handler); 1007UIElement.RemoveHandler(element, CopyingEvent, handler); 1046UIElement.AddHandler(element, PastingEvent, handler); 1056UIElement.RemoveHandler(element, PastingEvent, handler); 1085UIElement.AddHandler(element, SettingDataEvent, handler); 1095UIElement.RemoveHandler(element, SettingDataEvent, handler);
Core\CSharp\System\Windows\DragDrop.cs (42)
64UIElement.AddHandler(element, PreviewQueryContinueDragEvent, handler); 74UIElement.RemoveHandler(element, PreviewQueryContinueDragEvent, handler); 89UIElement.AddHandler(element, QueryContinueDragEvent, handler); 99UIElement.RemoveHandler(element, QueryContinueDragEvent, handler); 114UIElement.AddHandler(element, PreviewGiveFeedbackEvent, handler); 124UIElement.RemoveHandler(element, PreviewGiveFeedbackEvent, handler); 139UIElement.AddHandler(element, GiveFeedbackEvent, handler); 149UIElement.RemoveHandler(element, GiveFeedbackEvent, handler); 164UIElement.AddHandler(element, PreviewDragEnterEvent, handler); 174UIElement.RemoveHandler(element, PreviewDragEnterEvent, handler); 189UIElement.AddHandler(element, DragEnterEvent, handler); 199UIElement.RemoveHandler(element, DragEnterEvent, handler); 214UIElement.AddHandler(element, PreviewDragOverEvent, handler); 224UIElement.RemoveHandler(element, PreviewDragOverEvent, handler); 239UIElement.AddHandler(element, DragOverEvent, handler); 249UIElement.RemoveHandler(element, DragOverEvent, handler); 264UIElement.AddHandler(element, PreviewDragLeaveEvent, handler); 274UIElement.RemoveHandler(element, PreviewDragLeaveEvent, handler); 289UIElement.AddHandler(element, DragLeaveEvent, handler); 299UIElement.RemoveHandler(element, DragLeaveEvent, handler); 314UIElement.AddHandler(element, PreviewDropEvent, handler); 324UIElement.RemoveHandler(element, PreviewDropEvent, handler); 339UIElement.AddHandler(element, DropEvent, handler); 349UIElement.RemoveHandler(element, DropEvent, handler); 409if (dragSource is UIElement) 411((UIElement)dragSource).RaiseEvent(args); 440if (dragSource is UIElement) 442((UIElement)dragSource).RaiseEvent(args); 741if (_dragSource is UIElement) 743((UIElement)_dragSource).RaiseEvent(args); 764if (_dragSource is UIElement) 766((UIElement)_dragSource).RaiseEvent(args); 798if (_dragSource is UIElement) 800((UIElement)_dragSource).RaiseEvent(args); 821if (_dragSource is UIElement) 823((UIElement)_dragSource).RaiseEvent(args); 1200if (target is UIElement) 1202((UIElement)target).RaiseEvent(dragEventArgs); 1224if (target is UIElement) 1226((UIElement)target).RaiseEvent(dragEventArgs); 1350UIElement targetUIElement; 1357targetUIElement = target as UIElement;
Core\CSharp\System\Windows\EventManager.cs (2)
122/// <see cref="UIElement.AddHandler(RoutedEvent, Delegate)"/> <para/> 178if (!typeof(UIElement).IsAssignableFrom(classType) &&
Core\CSharp\System\Windows\FocusWithinProperty.cs (3)
14UIElement.IsKeyboardFocusWithinPropertyKey, 22internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 26UIElement.IsKeyboardFocusWithinProperty,
Core\CSharp\System\Windows\Generated\ContentElement.cs (80)
401UIElement.BuildRouteHelper(this, route, args); 431UIElement.RaiseEventImpl(this, e); 457UIElement.RaiseEventImpl(this, args); 478UIElement.RaiseEventImpl(this, args); 799UIElement.IsMouseDirectlyOverPropertyKey.OverrideMetadata( 805UIElement.IsMouseOverPropertyKey.OverrideMetadata( 810UIElement.IsStylusOverPropertyKey.OverrideMetadata( 815UIElement.IsKeyboardFocusWithinPropertyKey.OverrideMetadata( 820UIElement.IsMouseCapturedPropertyKey.OverrideMetadata( 826UIElement.IsMouseCaptureWithinPropertyKey.OverrideMetadata( 831UIElement.IsStylusDirectlyOverPropertyKey.OverrideMetadata( 837UIElement.IsStylusCapturedPropertyKey.OverrideMetadata( 843UIElement.IsStylusCaptureWithinPropertyKey.OverrideMetadata( 848UIElement.IsKeyboardFocusedPropertyKey.OverrideMetadata( 854UIElement.AreAnyTouchesDirectlyOverPropertyKey.OverrideMetadata( 859UIElement.AreAnyTouchesOverPropertyKey.OverrideMetadata( 864UIElement.AreAnyTouchesCapturedPropertyKey.OverrideMetadata( 869UIElement.AreAnyTouchesCapturedWithinPropertyKey.OverrideMetadata( 956public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 963add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 964remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 975public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 982add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 983remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 994public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 1001add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 1002remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 1013public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 1020add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 1021remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 1032public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 1039add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 1040remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 1051public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 1058add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 1059remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 1070public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 1077add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 1078remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 1089public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 1096add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 1097remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 2315public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 2327add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 2328remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 2344RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2350public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2355public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2360public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2367add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2368remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2384RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2390public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2402add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2403remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2419RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2425public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2432add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2433remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2449RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2455public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2467add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2468remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2484RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2490public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2502add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2503remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2519RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2525public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2532add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2533remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2549RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2555public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2567add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2568remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2584RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2590public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2595public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2600public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2605public static readonly DependencyProperty AreAnyTouchesCapturedWithinProperty = UIElement.AreAnyTouchesCapturedWithinProperty.AddOwner(_typeofThis);
Core\CSharp\System\Windows\Generated\UIElement.cs (293)
32static private readonly Type _typeofThis = typeof(UIElement); 401UIElement.BuildRouteHelper(this, route, args); 410/// <see cref="UIElement.BuildRoute"/> and 431UIElement.RaiseEventImpl(this, e); 457UIElement.RaiseEventImpl(this, args); 478UIElement.RaiseEventImpl(this, args); 805EventManager.RegisterClassHandler(type, Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseDownThunk), true); 806EventManager.RegisterClassHandler(type, Mouse.MouseDownEvent, new MouseButtonEventHandler(UIElement.OnMouseDownThunk), true); 807EventManager.RegisterClassHandler(type, Mouse.PreviewMouseUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseUpThunk), true); 808EventManager.RegisterClassHandler(type, Mouse.MouseUpEvent, new MouseButtonEventHandler(UIElement.OnMouseUpThunk), true); 809EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonDownThunk), false); 810EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonDownThunk), false); 811EventManager.RegisterClassHandler(type, UIElement.PreviewMouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseLeftButtonUpThunk), false); 812EventManager.RegisterClassHandler(type, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseLeftButtonUpThunk), false); 813EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonDownThunk), false); 814EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonDownThunk), false); 815EventManager.RegisterClassHandler(type, UIElement.PreviewMouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseRightButtonUpThunk), false); 816EventManager.RegisterClassHandler(type, UIElement.MouseRightButtonUpEvent, new MouseButtonEventHandler(UIElement.OnMouseRightButtonUpThunk), false); 817EventManager.RegisterClassHandler(type, Mouse.PreviewMouseMoveEvent, new MouseEventHandler(UIElement.OnPreviewMouseMoveThunk), false); 818EventManager.RegisterClassHandler(type, Mouse.MouseMoveEvent, new MouseEventHandler(UIElement.OnMouseMoveThunk), false); 819EventManager.RegisterClassHandler(type, Mouse.PreviewMouseWheelEvent, new MouseWheelEventHandler(UIElement.OnPreviewMouseWheelThunk), false); 820EventManager.RegisterClassHandler(type, Mouse.MouseWheelEvent, new MouseWheelEventHandler(UIElement.OnMouseWheelThunk), false); 821EventManager.RegisterClassHandler(type, Mouse.MouseEnterEvent, new MouseEventHandler(UIElement.OnMouseEnterThunk), false); 822EventManager.RegisterClassHandler(type, Mouse.MouseLeaveEvent, new MouseEventHandler(UIElement.OnMouseLeaveThunk), false); 823EventManager.RegisterClassHandler(type, Mouse.GotMouseCaptureEvent, new MouseEventHandler(UIElement.OnGotMouseCaptureThunk), false); 824EventManager.RegisterClassHandler(type, Mouse.LostMouseCaptureEvent, new MouseEventHandler(UIElement.OnLostMouseCaptureThunk), false); 825EventManager.RegisterClassHandler(type, Mouse.QueryCursorEvent, new QueryCursorEventHandler(UIElement.OnQueryCursorThunk), false); 826EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 827EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 828EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 829EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 830EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 831EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 832EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 833EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 834EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 835EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 836EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 837EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 838EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 839EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 840EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 841EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 842EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 843EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 844EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 845EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 846EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 847EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 848EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyDownEvent, new KeyEventHandler(UIElement.OnPreviewKeyDownThunk), false); 849EventManager.RegisterClassHandler(type, Keyboard.KeyDownEvent, new KeyEventHandler(UIElement.OnKeyDownThunk), false); 850EventManager.RegisterClassHandler(type, Keyboard.PreviewKeyUpEvent, new KeyEventHandler(UIElement.OnPreviewKeyUpThunk), false); 851EventManager.RegisterClassHandler(type, Keyboard.KeyUpEvent, new KeyEventHandler(UIElement.OnKeyUpThunk), false); 852EventManager.RegisterClassHandler(type, Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewGotKeyboardFocusThunk), false); 853EventManager.RegisterClassHandler(type, Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnGotKeyboardFocusThunk), false); 854EventManager.RegisterClassHandler(type, Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnPreviewLostKeyboardFocusThunk), false); 855EventManager.RegisterClassHandler(type, Keyboard.LostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(UIElement.OnLostKeyboardFocusThunk), false); 856EventManager.RegisterClassHandler(type, TextCompositionManager.PreviewTextInputEvent, new TextCompositionEventHandler(UIElement.OnPreviewTextInputThunk), false); 857EventManager.RegisterClassHandler(type, TextCompositionManager.TextInputEvent, new TextCompositionEventHandler(UIElement.OnTextInputThunk), false); 858EventManager.RegisterClassHandler(type, CommandManager.PreviewExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnPreviewExecutedThunk), false); 859EventManager.RegisterClassHandler(type, CommandManager.ExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnExecutedThunk), false); 860EventManager.RegisterClassHandler(type, CommandManager.PreviewCanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnPreviewCanExecuteThunk), false); 861EventManager.RegisterClassHandler(type, CommandManager.CanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnCanExecuteThunk), false); 862EventManager.RegisterClassHandler(type, CommandDevice.CommandDeviceEvent, new CommandDeviceEventHandler(UIElement.OnCommandDeviceThunk), false); 863EventManager.RegisterClassHandler(type, DragDrop.PreviewQueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnPreviewQueryContinueDragThunk), false); 864EventManager.RegisterClassHandler(type, DragDrop.QueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnQueryContinueDragThunk), false); 865EventManager.RegisterClassHandler(type, DragDrop.PreviewGiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnPreviewGiveFeedbackThunk), false); 866EventManager.RegisterClassHandler(type, DragDrop.GiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnGiveFeedbackThunk), false); 867EventManager.RegisterClassHandler(type, DragDrop.PreviewDragEnterEvent, new DragEventHandler(UIElement.OnPreviewDragEnterThunk), false); 868EventManager.RegisterClassHandler(type, DragDrop.DragEnterEvent, new DragEventHandler(UIElement.OnDragEnterThunk), false); 869EventManager.RegisterClassHandler(type, DragDrop.PreviewDragOverEvent, new DragEventHandler(UIElement.OnPreviewDragOverThunk), false); 870EventManager.RegisterClassHandler(type, DragDrop.DragOverEvent, new DragEventHandler(UIElement.OnDragOverThunk), false); 871EventManager.RegisterClassHandler(type, DragDrop.PreviewDragLeaveEvent, new DragEventHandler(UIElement.OnPreviewDragLeaveThunk), false); 872EventManager.RegisterClassHandler(type, DragDrop.DragLeaveEvent, new DragEventHandler(UIElement.OnDragLeaveThunk), false); 873EventManager.RegisterClassHandler(type, DragDrop.PreviewDropEvent, new DragEventHandler(UIElement.OnPreviewDropThunk), false); 874EventManager.RegisterClassHandler(type, DragDrop.DropEvent, new DragEventHandler(UIElement.OnDropThunk), false); 875EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 876EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 877EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 878EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 879EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 880EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 881EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 882EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 883EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 884EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 897UIElement uie = sender as UIElement; 919UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 935UIElement uie = sender as UIElement; 957UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 968UIElement uie = sender as UIElement; 990UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 1001UIElement uie = sender as UIElement; 1023UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e); 1034UIElement uie = sender as UIElement; 1063UIElement uie = sender as UIElement; 1092UIElement uie = sender as UIElement; 1121UIElement uie = sender as UIElement; 1150UIElement uie = sender as UIElement; 1179UIElement uie = sender as UIElement; 1208UIElement uie = sender as UIElement; 1237UIElement uie = sender as UIElement; 1266UIElement uie = sender as UIElement; 1295UIElement uie = sender as UIElement; 1324UIElement uie = sender as UIElement; 1357UIElement uie = sender as UIElement; 1387UIElement uie = sender as UIElement; 1416UIElement uie = sender as UIElement; 1445UIElement uie = sender as UIElement; 1474UIElement uie = sender as UIElement; 1503UIElement uie = sender as UIElement; 1532UIElement uie = sender as UIElement; 1561UIElement uie = sender as UIElement; 1590UIElement uie = sender as UIElement; 1619UIElement uie = sender as UIElement; 1648UIElement uie = sender as UIElement; 1677UIElement uie = sender as UIElement; 1706UIElement uie = sender as UIElement; 1735UIElement uie = sender as UIElement; 1764UIElement uie = sender as UIElement; 1793UIElement uie = sender as UIElement; 1822UIElement uie = sender as UIElement; 1851UIElement uie = sender as UIElement; 1880UIElement uie = sender as UIElement; 1909UIElement uie = sender as UIElement; 1938UIElement uie = sender as UIElement; 1967UIElement uie = sender as UIElement; 1996UIElement uie = sender as UIElement; 2025UIElement uie = sender as UIElement; 2054UIElement uie = sender as UIElement; 2083UIElement uie = sender as UIElement; 2112UIElement uie = sender as UIElement; 2141UIElement uie = sender as UIElement; 2170UIElement uie = sender as UIElement; 2203UIElement uie = sender as UIElement; 2233UIElement uie = sender as UIElement; 2262UIElement uie = sender as UIElement; 2291UIElement uie = sender as UIElement; 2320UIElement uie = sender as UIElement; 2349UIElement uie = sender as UIElement; 2378UIElement uie = sender as UIElement; 2407UIElement uie = sender as UIElement; 2436UIElement uie = sender as UIElement; 2525UIElement uie = sender as UIElement; 2554UIElement uie = sender as UIElement; 2583UIElement uie = sender as UIElement; 2612UIElement uie = sender as UIElement; 2641UIElement uie = sender as UIElement; 2670UIElement uie = sender as UIElement; 2699UIElement uie = sender as UIElement; 2728UIElement uie = sender as UIElement; 2757UIElement uie = sender as UIElement; 2786UIElement uie = sender as UIElement; 2815UIElement uie = sender as UIElement; 2844UIElement uie = sender as UIElement; 2873UIElement uie = sender as UIElement; 2902UIElement uie = sender as UIElement; 2931UIElement uie = sender as UIElement; 2960UIElement uie = sender as UIElement; 2989UIElement uie = sender as UIElement; 3018UIElement uie = sender as UIElement; 3047UIElement uie = sender as UIElement; 3076UIElement uie = sender as UIElement; 3105UIElement uie = sender as UIElement; 3134UIElement uie = sender as UIElement; 3241add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 3242remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 3260add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 3261remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 3279add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 3280remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 3298add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 3299remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 3317add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 3318remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 3336add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 3337remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 3355add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 3356remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 3374add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 3375remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 4610((UIElement) d).RaiseIsMouseDirectlyOverChanged(e); 4624add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 4625remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 4641RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 4706add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4707remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 4723RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 4746((UIElement) d).RaiseIsMouseCapturedChanged(e); 4760add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 4761remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 4777RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 4808add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 4809remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 4825RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 4848((UIElement) d).RaiseIsStylusDirectlyOverChanged(e); 4862add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 4863remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 4879RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 4902((UIElement) d).RaiseIsStylusCapturedChanged(e); 4916add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 4917remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 4933RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 4964add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 4965remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 4981RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 5004((UIElement) d).RaiseIsKeyboardFocusedChanged(e); 5018add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 5019remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 5035RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args);
Core\CSharp\System\Windows\Generated\UIElement3D.cs (66)
183UIElement.BuildRouteHelper(this, route, args); 213UIElement.RaiseEventImpl(this, e); 239UIElement.RaiseEventImpl(this, args); 260UIElement.RaiseEventImpl(this, args); 662public static readonly RoutedEvent PreviewMouseLeftButtonDownEvent = UIElement.PreviewMouseLeftButtonDownEvent.AddOwner(_typeofThis); 669add { AddHandler(UIElement.PreviewMouseLeftButtonDownEvent, value, false); } 670remove { RemoveHandler(UIElement.PreviewMouseLeftButtonDownEvent, value); } 681public static readonly RoutedEvent MouseLeftButtonDownEvent = UIElement.MouseLeftButtonDownEvent.AddOwner(_typeofThis); 688add { AddHandler(UIElement.MouseLeftButtonDownEvent, value, false); } 689remove { RemoveHandler(UIElement.MouseLeftButtonDownEvent, value); } 700public static readonly RoutedEvent PreviewMouseLeftButtonUpEvent = UIElement.PreviewMouseLeftButtonUpEvent.AddOwner(_typeofThis); 707add { AddHandler(UIElement.PreviewMouseLeftButtonUpEvent, value, false); } 708remove { RemoveHandler(UIElement.PreviewMouseLeftButtonUpEvent, value); } 719public static readonly RoutedEvent MouseLeftButtonUpEvent = UIElement.MouseLeftButtonUpEvent.AddOwner(_typeofThis); 726add { AddHandler(UIElement.MouseLeftButtonUpEvent, value, false); } 727remove { RemoveHandler(UIElement.MouseLeftButtonUpEvent, value); } 738public static readonly RoutedEvent PreviewMouseRightButtonDownEvent = UIElement.PreviewMouseRightButtonDownEvent.AddOwner(_typeofThis); 745add { AddHandler(UIElement.PreviewMouseRightButtonDownEvent, value, false); } 746remove { RemoveHandler(UIElement.PreviewMouseRightButtonDownEvent, value); } 757public static readonly RoutedEvent MouseRightButtonDownEvent = UIElement.MouseRightButtonDownEvent.AddOwner(_typeofThis); 764add { AddHandler(UIElement.MouseRightButtonDownEvent, value, false); } 765remove { RemoveHandler(UIElement.MouseRightButtonDownEvent, value); } 776public static readonly RoutedEvent PreviewMouseRightButtonUpEvent = UIElement.PreviewMouseRightButtonUpEvent.AddOwner(_typeofThis); 783add { AddHandler(UIElement.PreviewMouseRightButtonUpEvent, value, false); } 784remove { RemoveHandler(UIElement.PreviewMouseRightButtonUpEvent, value); } 795public static readonly RoutedEvent MouseRightButtonUpEvent = UIElement.MouseRightButtonUpEvent.AddOwner(_typeofThis); 802add { AddHandler(UIElement.MouseRightButtonUpEvent, value, false); } 803remove { RemoveHandler(UIElement.MouseRightButtonUpEvent, value); } 2021public static readonly DependencyProperty IsMouseDirectlyOverProperty = UIElement.IsMouseDirectlyOverProperty.AddOwner(_typeofThis); 2033add { EventHandlersStoreAdd(UIElement.IsMouseDirectlyOverChangedKey, value); } 2034remove { EventHandlersStoreRemove(UIElement.IsMouseDirectlyOverChangedKey, value); } 2050RaiseDependencyPropertyChanged(UIElement.IsMouseDirectlyOverChangedKey, args); 2056public static readonly DependencyProperty IsMouseOverProperty = UIElement.IsMouseOverProperty.AddOwner(_typeofThis); 2061public static readonly DependencyProperty IsStylusOverProperty = UIElement.IsStylusOverProperty.AddOwner(_typeofThis); 2066public static readonly DependencyProperty IsKeyboardFocusWithinProperty = UIElement.IsKeyboardFocusWithinProperty.AddOwner(_typeofThis); 2073add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2074remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusWithinChangedKey, value); } 2090RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusWithinChangedKey, args); 2096public static readonly DependencyProperty IsMouseCapturedProperty = UIElement.IsMouseCapturedProperty.AddOwner(_typeofThis); 2108add { EventHandlersStoreAdd(UIElement.IsMouseCapturedChangedKey, value); } 2109remove { EventHandlersStoreRemove(UIElement.IsMouseCapturedChangedKey, value); } 2125RaiseDependencyPropertyChanged(UIElement.IsMouseCapturedChangedKey, args); 2131public static readonly DependencyProperty IsMouseCaptureWithinProperty = UIElement.IsMouseCaptureWithinProperty.AddOwner(_typeofThis); 2138add { EventHandlersStoreAdd(UIElement.IsMouseCaptureWithinChangedKey, value); } 2139remove { EventHandlersStoreRemove(UIElement.IsMouseCaptureWithinChangedKey, value); } 2155RaiseDependencyPropertyChanged(UIElement.IsMouseCaptureWithinChangedKey, args); 2161public static readonly DependencyProperty IsStylusDirectlyOverProperty = UIElement.IsStylusDirectlyOverProperty.AddOwner(_typeofThis); 2173add { EventHandlersStoreAdd(UIElement.IsStylusDirectlyOverChangedKey, value); } 2174remove { EventHandlersStoreRemove(UIElement.IsStylusDirectlyOverChangedKey, value); } 2190RaiseDependencyPropertyChanged(UIElement.IsStylusDirectlyOverChangedKey, args); 2196public static readonly DependencyProperty IsStylusCapturedProperty = UIElement.IsStylusCapturedProperty.AddOwner(_typeofThis); 2208add { EventHandlersStoreAdd(UIElement.IsStylusCapturedChangedKey, value); } 2209remove { EventHandlersStoreRemove(UIElement.IsStylusCapturedChangedKey, value); } 2225RaiseDependencyPropertyChanged(UIElement.IsStylusCapturedChangedKey, args); 2231public static readonly DependencyProperty IsStylusCaptureWithinProperty = UIElement.IsStylusCaptureWithinProperty.AddOwner(_typeofThis); 2238add { EventHandlersStoreAdd(UIElement.IsStylusCaptureWithinChangedKey, value); } 2239remove { EventHandlersStoreRemove(UIElement.IsStylusCaptureWithinChangedKey, value); } 2255RaiseDependencyPropertyChanged(UIElement.IsStylusCaptureWithinChangedKey, args); 2261public static readonly DependencyProperty IsKeyboardFocusedProperty = UIElement.IsKeyboardFocusedProperty.AddOwner(_typeofThis); 2273add { EventHandlersStoreAdd(UIElement.IsKeyboardFocusedChangedKey, value); } 2274remove { EventHandlersStoreRemove(UIElement.IsKeyboardFocusedChangedKey, value); } 2290RaiseDependencyPropertyChanged(UIElement.IsKeyboardFocusedChangedKey, args); 2296public static readonly DependencyProperty AreAnyTouchesDirectlyOverProperty = UIElement.AreAnyTouchesDirectlyOverProperty.AddOwner(_typeofThis); 2301public static readonly DependencyProperty AreAnyTouchesOverProperty = UIElement.AreAnyTouchesOverProperty.AddOwner(_typeofThis); 2306public static readonly DependencyProperty AreAnyTouchesCapturedProperty = UIElement.AreAnyTouchesCapturedProperty.AddOwner(_typeofThis); 2311public static readonly DependencyProperty AreAnyTouchesCapturedWithinProperty = UIElement.AreAnyTouchesCapturedWithinProperty.AddOwner(_typeofThis);
Core\CSharp\System\Windows\GlobalEventManager.cs (2)
57typeof(UIElement).IsAssignableFrom(classType) || 405if (dType.SystemType == typeof(UIElement) || dType.SystemType == typeof(ContentElement))
Core\CSharp\System\Windows\IContentHost.cs (1)
70void OnChildDesiredSizeChanged(UIElement child);
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (11)
173UIElement.AddHandler(element, AccessKeyPressedEvent, handler); 183UIElement.RemoveHandler(element, AccessKeyPressedEvent, handler); 286UIElement invokeUIElement = null; 292UIElement target = targets[i] as UIElement; 595UIElement uiElem = element as UIElement; 622return ((bool)element.GetValue(UIElement.IsEnabledProperty)); 645public UIElement target; 884public UIElement Target 919private UIElement _target;
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (13)
59public static void AddPreviewExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 78public static void RemovePreviewExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 106public static void AddExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 125public static void RemoveExecutedHandler(UIElement element, ExecutedRoutedEventHandler handler) 153public static void AddPreviewCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 172public static void RemovePreviewCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 200public static void AddCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 219public static void RemoveCanExecuteHandler(UIElement element, CanExecuteRoutedEventHandler handler) 367localInputBindings = ((UIElement)targetElement).InputBindingsInternal; 420localCommandBindings = ((UIElement)targetElement).CommandBindingsInternal; 641commandBindings = ((UIElement)senderAsDO).CommandBindingsInternal; 813UIElement element = childScope as UIElement;
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (3)
410((UIElement)targetAsDO).RaiseEvent(args, trusted); 450UIElement targetUIElement = target as UIElement;
Core\CSharp\System\Windows\Input\FocusManager.cs (8)
45UIElement.AddHandler(element, GotFocusEvent, handler); 55UIElement.RemoveHandler(element, GotFocusEvent, handler); 70UIElement.AddHandler(element, LostFocusEvent, handler); 80UIElement.RemoveHandler(element, LostFocusEvent, handler); 243oldVisual.ClearValue(UIElement.IsFocusedPropertyKey); 252newVisual.SetValue(UIElement.IsFocusedPropertyKey, BooleanBoxes.TrueBox); 370UIElement uiElement = d as UIElement;
Core\CSharp\System\Windows\Input\InputElement.cs (2)
124container = (UIElement) o; 395private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
Core\CSharp\System\Windows\Input\InputManager.cs (2)
994UIElement e = (UIElement)eventSource;
Core\CSharp\System\Windows\Input\InputMethod.cs (4)
512public void ShowConfigureUI(UIElement element) 548public void ShowRegisterWordUI(UIElement element, string registeredText) 1623private bool _ShowConfigureUI(UIElement element, bool fShow) 1685private bool _ShowRegisterWordUI(UIElement element, bool fShow, string strRegister)
Core\CSharp\System\Windows\Input\Keyboard.cs (25)
33UIElement.AddHandler(element, PreviewKeyDownEvent, handler); 43UIElement.RemoveHandler(element, PreviewKeyDownEvent, handler); 58UIElement.AddHandler(element, KeyDownEvent, handler); 68UIElement.RemoveHandler(element, KeyDownEvent, handler); 83UIElement.AddHandler(element, PreviewKeyUpEvent, handler); 93UIElement.RemoveHandler(element, PreviewKeyUpEvent, handler); 108UIElement.AddHandler(element, KeyUpEvent, handler); 118UIElement.RemoveHandler(element, KeyUpEvent, handler); 133UIElement.AddHandler(element, PreviewGotKeyboardFocusEvent, handler); 143UIElement.RemoveHandler(element, PreviewGotKeyboardFocusEvent, handler); 158UIElement.AddHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler); 168UIElement.RemoveHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler); 183UIElement.AddHandler(element, KeyboardInputProviderAcquireFocusEvent, handler); 193UIElement.RemoveHandler(element, KeyboardInputProviderAcquireFocusEvent, handler); 208UIElement.AddHandler(element, GotKeyboardFocusEvent, handler); 218UIElement.RemoveHandler(element, GotKeyboardFocusEvent, handler); 233UIElement.AddHandler(element, PreviewLostKeyboardFocusEvent, handler); 243UIElement.RemoveHandler(element, PreviewLostKeyboardFocusEvent, handler); 258UIElement.AddHandler(element, LostKeyboardFocusEvent, handler); 268UIElement.RemoveHandler(element, LostKeyboardFocusEvent, handler); 400UIElement uie = element as UIElement; 409if((bool)element.GetValue(UIElement.IsEnabledProperty) == false) 422BaseValueSourceInternal valueSource = element.GetValueSource(UIElement.FocusableProperty, null, out hasModifiers); 423bool focusable = (bool) element.GetValue(UIElement.FocusableProperty);
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (10)
472((UIElement)o).IsEnabledChanged -= _isEnabledChangedEventHandler; 473((UIElement)o).IsVisibleChanged -= _isVisibleChangedEventHandler; 474((UIElement)o).FocusableChanged -= _focusableChangedEventHandler; 494((UIElement)o).IsEnabledChanged += _isEnabledChangedEventHandler; 495((UIElement)o).IsVisibleChanged += _isVisibleChangedEventHandler; 496((UIElement)o).FocusableChanged += _focusableChangedEventHandler; 516UIElement.FocusWithinProperty.OnOriginValueChanged(oldFocus, _focus, ref _focusTreeState); 522o.SetValue(UIElement.IsKeyboardFocusedPropertyKey, false); // Same property for ContentElements 528o.SetValue(UIElement.IsKeyboardFocusedPropertyKey, true); // Same property for ContentElements 734UIElement.FocusWithinProperty.OnOriginValueChanged(_focus, _focus, ref _focusTreeState);
Core\CSharp\System\Windows\Input\Manipulation.cs (18)
34public static bool IsManipulationActive(UIElement element) 44private static ManipulationDevice GetActiveManipulationDevice(UIElement element) 62public static void StartInertia(UIElement element) 80public static void CompleteManipulation(UIElement element) 92internal static bool TryCompleteManipulation(UIElement element) 109public static void SetManipulationMode(UIElement element, ManipulationModes mode) 132public static ManipulationModes GetManipulationMode(UIElement element) 156public static void SetManipulationContainer(UIElement element, IInputElement container) 180public static IInputElement GetManipulationContainer(UIElement element) 201public static void SetManipulationPivot(UIElement element, ManipulationPivot pivot) 224public static ManipulationPivot GetManipulationPivot(UIElement element) 246public static void AddManipulator(UIElement element, IManipulator manipulator) 271public static void RemoveManipulator(UIElement element, IManipulator manipulator) 288internal static bool TryRemoveManipulator(UIElement element, IManipulator manipulator) 306public static void SetManipulationParameter(UIElement element, ManipulationParameters2D parameter) 343internal static UIElement FindManipulationParent(Visual visual) 347UIElement element = visual as UIElement;
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (7)
39private ManipulationDevice(UIElement element) : base() 99internal static ManipulationDevice AddManipulationDevice(UIElement element) 110_manipulationDevices = new Dictionary<UIElement, ManipulationDevice>(2); 128internal static ManipulationDevice GetManipulationDevice(UIElement element) 294foreach (UIElement element in _manipulationDevices.Keys) 607private UIElement _target; 620private static Dictionary<UIElement, ManipulationDevice> _manipulationDevices;
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (10)
577UIElement uie = _currentContainer as UIElement; 633_root = presentationSource.RootVisual as UIElement; 672UIElement container = _currentContainer as UIElement; 681UIElement container = _currentContainer as UIElement; 718UIElement container = _currentContainer as UIElement; 795private UIElement _root;
Core\CSharp\System\Windows\Input\Mouse.cs (30)
34UIElement.AddHandler(element, PreviewMouseMoveEvent, handler); 44UIElement.RemoveHandler(element, PreviewMouseMoveEvent, handler); 59UIElement.AddHandler(element, MouseMoveEvent, handler); 69UIElement.RemoveHandler(element, MouseMoveEvent, handler); 84UIElement.AddHandler(element, PreviewMouseDownOutsideCapturedElementEvent, handler); 94UIElement.RemoveHandler(element, PreviewMouseDownOutsideCapturedElementEvent, handler); 109UIElement.AddHandler(element, PreviewMouseUpOutsideCapturedElementEvent, handler); 119UIElement.RemoveHandler(element, PreviewMouseUpOutsideCapturedElementEvent, handler); 134UIElement.AddHandler(element, PreviewMouseDownEvent, handler); 144UIElement.RemoveHandler(element, PreviewMouseDownEvent, handler); 159UIElement.AddHandler(element, MouseDownEvent, handler); 169UIElement.RemoveHandler(element, MouseDownEvent, handler); 184UIElement.AddHandler(element, PreviewMouseUpEvent, handler); 194UIElement.RemoveHandler(element, PreviewMouseUpEvent, handler); 209UIElement.AddHandler(element, MouseUpEvent, handler); 219UIElement.RemoveHandler(element, MouseUpEvent, handler); 234UIElement.AddHandler(element, PreviewMouseWheelEvent, handler); 244UIElement.RemoveHandler(element, PreviewMouseWheelEvent, handler); 259UIElement.AddHandler(element, MouseWheelEvent, handler); 269UIElement.RemoveHandler(element, MouseWheelEvent, handler); 284UIElement.AddHandler(element, MouseEnterEvent, handler); 294UIElement.RemoveHandler(element, MouseEnterEvent, handler); 309UIElement.AddHandler(element, MouseLeaveEvent, handler); 319UIElement.RemoveHandler(element, MouseLeaveEvent, handler); 334UIElement.AddHandler(element, GotMouseCaptureEvent, handler); 344UIElement.RemoveHandler(element, GotMouseCaptureEvent, handler); 359UIElement.AddHandler(element, LostMouseCaptureEvent, handler); 369UIElement.RemoveHandler(element, LostMouseCaptureEvent, handler); 384UIElement.AddHandler(element, QueryCursorEvent, handler); 394UIElement.RemoveHandler(element, QueryCursorEvent, handler);
Core\CSharp\System\Windows\Input\MouseDevice.cs (29)
372if (element is UIElement) 374UIElement e = element as UIElement; 739UIElement.MouseOverProperty.OnOriginValueChanged(_mouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState); 794killCapture = !ValidateUIElementForCapture((UIElement)_mouseCapture); 831UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(_mouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState); 837private bool ValidateUIElementForCapture(UIElement element) 1070((UIElement)o).IsEnabledChanged -= _overIsEnabledChangedEventHandler; 1071((UIElement)o).IsVisibleChanged -= _overIsVisibleChangedEventHandler; 1072((UIElement)o).IsHitTestVisibleChanged -= _overIsHitTestVisibleChangedEventHandler; 1095((UIElement)o).IsEnabledChanged += _overIsEnabledChangedEventHandler; 1096((UIElement)o).IsVisibleChanged += _overIsVisibleChangedEventHandler; 1097((UIElement)o).IsHitTestVisibleChanged += _overIsHitTestVisibleChangedEventHandler; 1120UIElement.MouseOverProperty.OnOriginValueChanged(oldMouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState); 1126o.SetValue(UIElement.IsMouseDirectlyOverPropertyKey, false); // Same property for ContentElements 1131o.SetValue(UIElement.IsMouseDirectlyOverPropertyKey, true); // Same property for ContentElements 1172((UIElement)o).IsEnabledChanged -= _captureIsEnabledChangedEventHandler; 1173((UIElement)o).IsVisibleChanged -= _captureIsVisibleChangedEventHandler; 1174((UIElement)o).IsHitTestVisibleChanged -= _captureIsHitTestVisibleChangedEventHandler; 1197((UIElement)o).IsEnabledChanged += _captureIsEnabledChangedEventHandler; 1198((UIElement)o).IsVisibleChanged += _captureIsVisibleChangedEventHandler; 1199((UIElement)o).IsHitTestVisibleChanged += _captureIsHitTestVisibleChangedEventHandler; 1222UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(oldMouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState); 1228o.SetValue(UIElement.IsMouseCapturedPropertyKey, false); // Same property for ContentElements 1233o.SetValue(UIElement.IsMouseCapturedPropertyKey, true); // Same property for ContentElements 1682UIElement eTest = null; 1688eTest = ieTest as UIElement; 2259UIElement root = inputSource.RootVisual as UIElement;
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (12)
74UIElement.AddHandler(element, PreviewTextInputStartEvent, handler); 89UIElement.RemoveHandler(element, PreviewTextInputStartEvent, handler); 109UIElement.AddHandler(element, TextInputStartEvent, handler); 124UIElement.RemoveHandler(element, TextInputStartEvent, handler); 144UIElement.AddHandler(element, PreviewTextInputUpdateEvent, handler); 159UIElement.RemoveHandler(element, PreviewTextInputUpdateEvent, handler); 179UIElement.AddHandler(element, TextInputUpdateEvent, handler); 194UIElement.RemoveHandler(element, TextInputUpdateEvent, handler); 214UIElement.AddHandler(element, PreviewTextInputEvent, handler); 229UIElement.RemoveHandler(element, PreviewTextInputEvent, handler); 249UIElement.AddHandler(element, TextInputEvent, handler); 264UIElement.RemoveHandler(element, TextInputEvent, handler);
Core\CSharp\System\Windows\Input\TouchDevice.cs (25)
261UIElement eTest = ieTest as UIElement; 376UIElement uiElement; 398UIElement oldUIElement; 441o.SetValue(UIElement.AreAnyTouchesCapturedPropertyKey, 447o.SetValue(UIElement.AreAnyTouchesCapturedPropertyKey, BooleanBoxes.TrueBox); 498ReverseInheritProperty property = capture ? (ReverseInheritProperty)UIElement.TouchesCapturedWithinProperty : (ReverseInheritProperty)UIElement.TouchesOverProperty; 568UIElement uiElement; 647private static void CastInputElement(IInputElement element, out UIElement uiElement, out ContentElement contentElement, out UIElement3D uiElement3D) 649uiElement = element as UIElement; 834UIElement manipulatableElement = GetManipulatableElement(); 931UIElement oldUIElement; 935UIElement newUIElement; 978o.SetValue(UIElement.AreAnyTouchesDirectlyOverPropertyKey, 984o.SetValue(UIElement.AreAnyTouchesDirectlyOverPropertyKey, BooleanBoxes.TrueBox); 1122UIElement manipulatableElement = GetManipulatableElement(); 1156private UIElement GetManipulatableElement() 1158UIElement element = InputElement.GetContainingUIElement(_directlyOver as DependencyObject) as UIElement; 1167private void PromoteMainToManipulation(UIElement manipulatableElement, TouchEventArgs touchEventArgs) 1184UIElement element = _captured as UIElement; 1198UIElement element = _manipulatingElement.Target as UIElement;
Core\CSharp\System\Windows\Input\TouchesCapturedWithinProperty.cs (2)
11base(UIElement.AreAnyTouchesCapturedWithinPropertyKey, 17internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
Core\CSharp\System\Windows\Input\TouchesOverProperty.cs (2)
11base(UIElement.AreAnyTouchesOverPropertyKey, 19internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
Core\CSharp\System\Windows\Interop\HwndSource.cs (20)
671if(_rootVisual.Value is UIElement) 673((UIElement)(_rootVisual.Value)).LayoutUpdated += new EventHandler(OnLayoutUpdated); 681UIElement.PropagateResumeLayout(null, value); 694if(oldRoot is UIElement) 696((UIElement)oldRoot).LayoutUpdated -= new EventHandler(OnLayoutUpdated); 699UIElement.PropagateSuspendLayout(oldRoot); 926UIElement root = _rootVisual.Value as UIElement; 1067UIElement root = _rootVisual.Value as UIElement; 1211if ((_rootVisual.Value is UIElement) && _hwndTarget!= null && _hwndTarget.IsDisposed == false) 1234UIElement rootUIElement = null; 1235rootUIElement = _rootVisual.Value as UIElement; 1417UIElement rootUIElement=null; 1418rootUIElement = _rootVisual.Value as UIElement; 1564private void Process_WM_WINDOWPOSCHANGING(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 1643private void Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 1737private void DisableSizeToContent(UIElement rootUIElement, IntPtr hwnd) 2270UIElement root =_rootVisual.Value as UIElement;
Core\CSharp\System\Windows\Interop\HwndSourceKeyboardInputSite.cs (3)
32if(!(sink is UIElement)) 42_sinkElement = sink as UIElement; 115private UIElement _sinkElement;
Core\CSharp\System\Windows\Interop\HwndTarget.cs (6)
1537UIElement uiroot = (UIElement)root; 1994UIElement element = d as UIElement; 2504DpiScale newDpiScale = new DpiScale(UIElement.DpiScaleXValues[dpiFlags.Index], UIElement.DpiScaleYValues[dpiFlags.Index]);
Core\CSharp\System\Windows\LayoutManager.cs (37)
75private void setForceLayout(UIElement e) 80private void markTreeDirty(UIElement e) 85UIElement p = e.GetUIParentNo3DTraversal() as UIElement; 102UIElement uie = ((UIElement)v); 224UIElement currentElement = null; 474private Rect getProperArrangeRect(UIElement element) 533internal override void setRequest(UIElement e, Request r) 538internal override Request getRequest(UIElement e) 543internal override bool canRelyOnParentRecalc(UIElement parent) 549internal override void invalidate(UIElement e) 559internal override void setRequest(UIElement e, Request r) 564internal override Request getRequest(UIElement e) 569internal override bool canRelyOnParentRecalc(UIElement parent) 575internal override void invalidate(UIElement e) 804internal UIElement GetLastExceptionElement() 809internal void SetLastExceptionElement(UIElement e) 816private UIElement _forceLayoutElement; //set in extreme situations, forces the update of the whole tree containing the element 817private UIElement _lastExceptionElement; //set on exception in Measure or Arrange. 826internal static int s_LayoutRecursionLimit = UIElement.MAX_ELEMENTS_IN_ROUTE; //to keep these two constants in sync 856internal abstract Request getRequest(UIElement e); 857internal abstract void setRequest(UIElement e, Request r); 858internal abstract bool canRelyOnParentRecalc(UIElement parent); 859internal abstract void invalidate(UIElement e); 863internal UIElement Target; 880private void _addRequest(UIElement e) 894internal void Add(UIElement e) 901UIElement parent = e.GetUIParentWithinLayoutIsland(); 924UIElement p = e.GetUIParentWithinLayoutIsland(); 947internal void Remove(UIElement e) 955internal void RemoveOrphans(UIElement parent) 960UIElement child = r.Target; 977internal UIElement GetTopMost() 979UIElement found = null; 984UIElement t = r.Target; 1007private Request _getNewRequest(UIElement e)
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (8)
215UIElement element = Target as UIElement; 270private void DoLayout(UIElement element) 281UIElement.PropagateResumeLayout(null, element); 295UIElement element = (UIElement)Target; 324UIElement element = arg as UIElement;
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (2)
171UIElement element = (UIElement)oldV;
Core\CSharp\System\Windows\Media\Generated\VisualBrush.cs (2)
109UIElement element = (UIElement)oldV;
Core\CSharp\System\Windows\Media\Visual.cs (14)
2653UIElement.PropagateResumeLayout(this, child); 2731UIElement.PropagateSuspendLayout(child); 4332UIElement.InvalidateForceInheritPropertyOnChildren(this, property); 4750lock (UIElement.DpiLock) 4752if (UIElement.DpiScaleXValues.Count == 0) 4755return UIElement.EnsureDpiScale(); 4759dpi = new DpiScale(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 4765if (index < 3 && UIElement.DpiScaleXValues[index] != 0 && UIElement.DpiScaleYValues[index] != 0) 4767dpi = new DpiScale(UIElement.DpiScaleXValues[index], UIElement.DpiScaleYValues[index]); 4773dpi = new DpiScale(UIElement.DpiScaleXValues[actualIndex], UIElement.DpiScaleYValues[actualIndex]);
Core\CSharp\System\Windows\Media\VisualBrush.cs (8)
198UIElement element = Visual as UIElement; 238private void DoLayout(UIElement element) 249UIElement.PropagateResumeLayout(null, element); 265UIElement element = (UIElement)Visual; 294UIElement element = arg as UIElement;
Core\CSharp\System\Windows\MouseCaptureWithinProperty.cs (3)
14UIElement.IsMouseCaptureWithinPropertyKey, 22internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 26UIElement.IsMouseCaptureWithinProperty,
Core\CSharp\System\Windows\MouseOverProperty.cs (2)
14UIElement.IsMouseOverPropertyKey, 22internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (2)
627UIElement uie = doCurrent as UIElement;
Core\CSharp\System\Windows\PresentationSource.cs (9)
182UIElement uie = o as UIElement; 249UIElement uie = o as UIElement; 524UIElement oldRootUIElement = oldRoot as UIElement; 525UIElement newRootUIElement = newRoot as UIElement; 861((UIElement)doTarget).RaiseEvent(args);
Core\CSharp\System\Windows\ReverseInheritProperty.cs (8)
34internal abstract void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue); 106UIElement uie; 164UIElement uie; 235private static bool BlockReverseInheritance(UIElement uie, ContentElement ce, UIElement3D uie3D) 255private static void SetFlag(UIElement uie, ContentElement ce, UIElement3D uie3D, CoreFlags flag, bool value) 273private static bool IsFlagSet(UIElement uie, ContentElement ce, UIElement3D uie3D, CoreFlags flag) 293private static void CastElement(DependencyObject o, out UIElement uie, out ContentElement ce, out UIElement3D uie3D) 295uie = o as UIElement;
Core\CSharp\System\Windows\SizeChangedInfo.cs (3)
36public SizeChangedInfo(UIElement element, Size previousSize, bool widthChanged, bool heightChanged) 97internal UIElement Element 103private UIElement _element;
Core\CSharp\System\Windows\StylusCaptureWithinProperty.cs (3)
14UIElement.IsStylusCaptureWithinPropertyKey, 22internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) 26UIElement.IsStylusCaptureWithinProperty,
Core\CSharp\System\Windows\StylusOverProperty.cs (2)
14UIElement.IsStylusOverPropertyKey, 22internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
Core\CSharp\System\Windows\UIElement.cs (143)
42/// <seealso cref="UIElement" /> 88UIElement.RegisterEvents(typeof(UIElement)); 91typeof(UIElement), 95typeof(UIElement), 99typeof(UIElement), 103typeof(UIElement), 106EventManager.RegisterClassHandler(typeof(UIElement), ManipulationStartingEvent, new EventHandler<ManipulationStartingEventArgs>(OnManipulationStartingThunk)); 107EventManager.RegisterClassHandler(typeof(UIElement), ManipulationStartedEvent, new EventHandler<ManipulationStartedEventArgs>(OnManipulationStartedThunk)); 108EventManager.RegisterClassHandler(typeof(UIElement), ManipulationDeltaEvent, new EventHandler<ManipulationDeltaEventArgs>(OnManipulationDeltaThunk)); 109EventManager.RegisterClassHandler(typeof(UIElement), ManipulationInertiaStartingEvent, new EventHandler<ManipulationInertiaStartingEventArgs>(OnManipulationInertiaStartingThunk)); 110EventManager.RegisterClassHandler(typeof(UIElement), ManipulationBoundaryFeedbackEvent, new EventHandler<ManipulationBoundaryFeedbackEventArgs>(OnManipulationBoundaryFeedbackThunk)); 111EventManager.RegisterClassHandler(typeof(UIElement), ManipulationCompletedEvent, new EventHandler<ManipulationCompletedEventArgs>(OnManipulationCompletedThunk)); 151typeof(UIElement), 321/// Causes <see cref="System.Windows.UIElement.OnRender"/> to be called at a later time. 340protected virtual void OnChildDesiredSizeChanged(UIElement child) 475UIElement e = (UIElement)v; 520UIElement e = (UIElement)v; 709UIElement p; 729internal void GetUIParentOrICH(out UIElement uiParent, out IContentHost ich) 741uiParent = (UIElement)v; 748internal UIElement GetUIParentWithinLayoutIsland() 750UIElement uiParent = null; 761uiParent = (UIElement)v; 815DependencyObject parent = GetUIParent() as UIElement; 1361/// <seealso cref="UIElement.RenderTransform" /> 1367typeof(UIElement), 1386UIElement uie = (UIElement)d; 1405/// <seealso cref="UIElement.RenderTransformOrigin" /> 1410typeof(UIElement), 1439UIElement uie = (UIElement)d; 1602UIElement uie = sender as UIElement; 1689UIElement uiElement = e as UIElement; 1723UIElement uiElement = e as UIElement; 1918UIElement uiElement = d as UIElement; 1958UIElement uiElement = d as UIElement; 2007public Point TranslatePoint(Point point, UIElement relativeTo) 2104UIElement element = candidate as UIElement; 2225newEvent = UIElement.PreviewMouseLeftButtonDownEvent; 2227newEvent = UIElement.MouseLeftButtonDownEvent; 2229newEvent = UIElement.PreviewMouseLeftButtonUpEvent; 2231newEvent = UIElement.MouseLeftButtonUpEvent; 2235newEvent = UIElement.PreviewMouseRightButtonDownEvent; 2237newEvent = UIElement.MouseRightButtonDownEvent; 2239newEvent = UIElement.PreviewMouseRightButtonUpEvent; 2241newEvent = UIElement.MouseRightButtonUpEvent; 2298UIElement.BuildRouteHelper(sender, route, args); 2352UIElement.BuildRouteHelper(sender, route, args); 2707typeof(UIElement), 2715UIElement uie = (UIElement) d; 2742= DependencyProperty.Register("OpacityMask", typeof(Brush), typeof(UIElement), 2747UIElement uie = (UIElement) d; 2774typeof(UIElement), 2779UIElement uie = (UIElement)d; 2808typeof(UIElement), 2813UIElement uie = (UIElement)d; 2838typeof(UIElement), 2843((UIElement) d).pushBitmapEffectInput((BitmapEffectInput) e.NewValue); 2866UIElement uie = (UIElement) d; 2877UIElement uie = (UIElement) d; 2888UIElement uie = (UIElement) d; 2899UIElement uie = (UIElement) d; 2915typeof(UIElement), 2920UIElement uie = (UIElement)d; 2963typeof(UIElement), 2985typeof(UIElement), 2993UIElement uie = (UIElement) d; 3088UIElement p; 3397typeof(UIElement), 3404UIElement uie = (UIElement) d; 3438typeof(UIElement), 3445UIElement uie = (UIElement) d; 3470typeof(UIElement), 3477UIElement uie = (UIElement) d; 3520public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement)); 3534public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement)); 3552typeof(UIElement), 3567UIElement uiElement = ((UIElement)d); 3617typeof(UIElement), 3667UIElement uie = (UIElement) d; 3708UIElement uie = (UIElement)d; 3744typeof(UIElement), 3771UIElement uie = (UIElement) d; 3811UIElement uie = (UIElement)d; 3844typeof(UIElement), 3862return ((UIElement)d).IsVisible ? BooleanBoxes.TrueBox : BooleanBoxes.FalseBox; 3948UIElement uie = (UIElement) d; 3978typeof(UIElement), 4004UIElement uie = (UIElement) d; 4221UIElement uiElement, 4298UIElement element = vChild as UIElement; 4365typeof(UIElement), 4393((UIElement)d).CoerceStylusProperties(); 4397Manipulation.TryCompleteManipulation((UIElement)d); 4425public static readonly RoutedEvent ManipulationStartingEvent = Manipulation.ManipulationStartingEvent.AddOwner(typeof(UIElement)); 4439((UIElement)sender).OnManipulationStarting(e); 4450public static readonly RoutedEvent ManipulationStartedEvent = Manipulation.ManipulationStartedEvent.AddOwner(typeof(UIElement)); 4464((UIElement)sender).OnManipulationStarted(e); 4475public static readonly RoutedEvent ManipulationDeltaEvent = Manipulation.ManipulationDeltaEvent.AddOwner(typeof(UIElement)); 4489((UIElement)sender).OnManipulationDelta(e); 4500public static readonly RoutedEvent ManipulationInertiaStartingEvent = Manipulation.ManipulationInertiaStartingEvent.AddOwner(typeof(UIElement)); 4514((UIElement)sender).OnManipulationInertiaStarting(e); 4525public static readonly RoutedEvent ManipulationBoundaryFeedbackEvent = Manipulation.ManipulationBoundaryFeedbackEvent.AddOwner(typeof(UIElement)); 4539((UIElement)sender).OnManipulationBoundaryFeedback(e); 4550public static readonly RoutedEvent ManipulationCompletedEvent = Manipulation.ManipulationCompletedEvent.AddOwner(typeof(UIElement)); 4564((UIElement)sender).OnManipulationCompleted(e); 4737private static readonly UncommonField<WeakReference<UIElement>> _positionAndSizeOfSetController = new UncommonField<WeakReference<UIElement>>(); 4745internal UIElement PositionAndSizeOfSetController 4749UIElement element = null; 4750WeakReference<UIElement> wRef = _positionAndSizeOfSetController.GetValue(this); 4760_positionAndSizeOfSetController.SetValue(this, new WeakReference<UIElement>(value));
Core\CSharp\System\Windows\UIElement3D.cs (24)
52UIElement.RegisterEvents(typeof(UIElement3D)); 55IsVisibleProperty = UIElement.IsVisibleProperty.AddOwner(typeof(UIElement3D)); 63UIElement.IsVisiblePropertyKey); 66IsFocusedProperty = UIElement.IsFocusedProperty.AddOwner(typeof(UIElement3D)); 71UIElement.IsFocusedPropertyKey); 102UIElement.AllowDropProperty.AddOwner( 190UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 223UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 291UIElement.SynchronizeForceInheritProperties(null, null, this, parent); 664UIElement.VisibilityProperty.AddOwner( 825UIElement.IsEnabledProperty.AddOwner( 847add { EventHandlersStoreAdd(UIElement.IsEnabledChangedKey, value); } 848remove { EventHandlersStoreRemove(UIElement.IsEnabledChangedKey, value); } 896if (parent == null || (bool)parent.GetValue(UIElement.IsEnabledProperty)) 916uie.RaiseDependencyPropertyChanged(UIElement.IsEnabledChangedKey, e); 946UIElement.IsHitTestVisibleProperty.AddOwner( 1064add { EventHandlersStoreAdd(UIElement.IsVisibleChangedKey, value); } 1065remove { EventHandlersStoreRemove(UIElement.IsVisibleChangedKey, value); } 1170UIElement.FocusableProperty.AddOwner( 1190add { EventHandlersStoreAdd(UIElement.FocusableChangedKey, value); } 1191remove { EventHandlersStoreRemove(UIElement.FocusableChangedKey, value); } 1199uie.RaiseDependencyPropertyChanged(UIElement.FocusableChangedKey, e); 1394UIElement element = vChild as UIElement;
PresentationFramework (1239)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
167public override UIElement GetParent(Object selection)
src\Framework\MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
98public abstract UIElement GetParent(Object selection);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
161public static UIElement GetParent(Object selection) 182public static UIElement GetParent(ITextPointer pointer) 193return (UIElement)scrollViewer.ScrollViewer.Content; 224return parent as UIElement;
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
111public override UIElement GetParent(Object selection)
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
99public override UIElement GetParent(Object selection) 104return (UIElement)selection;
src\Framework\MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (3)
105public override UIElement GetParent(Object selection) 110UIElement element = selection as UIElement;
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (3)
77internal static void HostComponent(AdornerLayer adornerLayer, IAnnotationComponent component, UIElement annotatedElement, bool reorder) 153public override UIElement Host { get { return _adornerLayer; } } 166AdornerLayer parentLayer = AdornerLayer.GetAdornerLayer((UIElement)parent);
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (10)
41public AnnotationAdorner(IAnnotationComponent component, UIElement annotatedElement): base(annotatedElement) 45if(component is UIElement) 49this.AddVisualChild((UIElement)_annotationComponent); 69if (!(_annotationComponent is UIElement)) 117return (UIElement)_annotationComponent; 145((UIElement)_annotationComponent).Measure(childConstraint); 158((UIElement)_annotationComponent).Arrange(new Rect(((UIElement)_annotationComponent).DesiredSize)); 173this.RemoveVisualChild((UIElement)_annotationComponent); 239private UIElement _annotatedElement;
src\Framework\MS\Internal\Annotations\Component\AnnotationComponentManager.cs (4)
152UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject 172UIElement annotatedElement = attachedAnnotation.Parent as UIElement; // casted from DependencyObject
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
1148UIElement uie = TopOwner as UIElement;
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (2)
185public UIElement AnnotatedElement 189return _attachedAnnotation != null ? (_attachedAnnotation.Parent as UIElement) : null;
src\Framework\MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
77UIElement AnnotatedElement { get;}
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (5)
158public UIElement AnnotatedElement 162return _attachedAnnotation != null ? (_attachedAnnotation.Parent as UIElement) : null; 518_uiParent = PathNode.GetParent(textContainer.Parent) as UIElement; 1041UIElement host = component.PresentationContext.Host; 1209private UIElement _uiParent = null; // the TextContainer parent. We need to handle GotFocus/LostFocus events
src\Framework\MS\Internal\Annotations\Component\PresentationContext.cs (1)
34public abstract UIElement Host { get; }
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
97/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (4)
130UIElement parent = ((UIElement)VisualTreeHelper.GetParent(this)) as UIElement; 134( (UIElement)VisualTreeHelper.GetParent(this) ).InvalidateArrange( );
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (8)
69UIElement removedElement = visualRemoved as UIElement; 93foreach ( UIElement child in InternalChildren ) 141foreach ( UIElement child in InternalChildren ) 193protected override void OnChildDesiredSizeChanged(UIElement child) 259internal UIElement HitTestOnElements(Point point) 261UIElement hitElement = null; 288hitElement = currentObject as UIElement;
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
41internal InkCanvasSelectionAdorner(UIElement adornedElement)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (4)
1110UIElement IAnnotationComponent.AnnotatedElement 1114return _attachedAnnotation != null ? _attachedAnnotation.Parent as UIElement : null; 1358SetValue(UIElement.VisibilityProperty, Visibility.Collapsed); 1618UIElement parent = component.AnnotatedElement;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
478public static StickyNoteContentControl CreateContentControl(StickyNoteType type, UIElement content)
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (1)
52public TemplatedAdorner(UIElement adornedElement, ControlTemplate adornerTemplate) : base(adornedElement)
src\Framework\MS\Internal\Data\DataBindEngine.cs (2)
230(_layoutElement = c.TargetElement as UIElement) != null) 755private UIElement _layoutElement;
src\Framework\MS\Internal\DataStreams.cs (6)
119private ArrayList SaveSubStreams(UIElement element) 196UIElement element = node as UIElement; 279private void LoadSubStreams(UIElement element, ArrayList subStreams) 318UIElement element = node as UIElement;
src\Framework\MS\Internal\Documents\DocumentGrid.cs (6)
1203UIElement background =_childrenCollection[_backgroundVisualIndex] as UIElement; 1241UIElement uiPage = _childrenCollection[visualChild] as UIElement; 2325UIElement page = _childrenCollection[i] as UIElement;
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (2)
478internal override UIElement RenderScope 705private readonly UIElement _owner;
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (3)
42internal MultiPageTextView(DocumentViewerBase viewer, UIElement renderScope, ITextContainer textContainer) 631internal override UIElement RenderScope 1555private readonly UIElement _renderScope;
src\Framework\MS\Internal\Documents\ScrollData.cs (16)
35internal void LineUp(UIElement owner) 43internal void LineDown(UIElement owner) 51internal void LineLeft(UIElement owner) 59internal void LineRight(UIElement owner) 67internal void PageUp(UIElement owner) 75internal void PageDown(UIElement owner) 83internal void PageLeft(UIElement owner) 91internal void PageRight(UIElement owner) 99internal void MouseWheelUp(UIElement owner) 107internal void MouseWheelDown(UIElement owner) 115internal void MouseWheelLeft(UIElement owner) 123internal void MouseWheelRight(UIElement owner) 131internal void SetHorizontalOffset(UIElement owner, double offset) 153internal void SetVerticalOffset(UIElement owner, double offset) 175internal Rect MakeVisible(UIElement owner, Visual visual, Rect rectangle) 236internal void SetScrollOwner(UIElement owner, ScrollViewer value)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1257UIElement ITextView.RenderScope
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (8)
354if (element is UIElement) 358peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 415if (element is UIElement) 417peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 486if (element is UIElement) 488peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)element); 707internal static int GetCPFromEmbeddedObject(UIElement embeddedObject, ElementEdge edge) 748&& (peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)child)) != null)
src\Framework\MS\Internal\Documents\TextDocumentView.cs (4)
556internal override UIElement RenderScope 560UIElement renderScope = null; 565while (visual != null && !(visual is UIElement)) 569renderScope = visual as UIElement;
src\Framework\MS\Internal\Documents\TextParagraphView.cs (1)
482internal override UIElement RenderScope
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
294internal abstract UIElement RenderScope { get; } 637UIElement ITextView.RenderScope
src\Framework\MS\Internal\Documents\UIElementIsland.cs (7)
35internal UIElementIsland(UIElement child) 117internal UIElement Root 150private UIElement _child; // Hosted UIElement root. 224void IContentHost.OnChildDesiredSizeChanged(UIElement child) 250internal DesiredSizeChangedEventArgs(UIElement child) 258internal UIElement Child 266private readonly UIElement _child;
src\Framework\MS\Internal\FrameworkObject.cs (2)
943UIElement uiElement; 946if ((uiElement = _do as UIElement) != null)
src\Framework\MS\Internal\Helper.cs (10)
541internal static Size MeasureElementWithSingleChild(UIElement element, Size constraint) 543UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 558internal static Size ArrangeElementWithSingleChild(UIElement element, Size arrangeSize) 560UIElement child = (VisualTreeHelper.GetChildrenCount(element) > 0) ? VisualTreeHelper.GetChild(element, 0) as UIElement : null; 1371UIElement uiElement = element as UIElement; 1401UIElement element = d as UIElement;
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (13)
155List<UIElement> elements = new List<UIElement>(inkCanvasSelection.SelectedElements); 200internal bool PasteData(IDataObject dataObject, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 219List<UIElement> elements = xamlData.Elements; 342private bool CopySelectionInXAML(IDataObject dataObject, StrokeCollection strokes, List<UIElement> elements, Matrix transform, Size size) 383UIElement newElement = XamlReader.Load(new XmlTextReader(new StringReader(xml))) as UIElement; 404ClipboardData data = new XamlClipboardData(new UIElement[] { inkCanvas }); 422private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 428List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count); 429foreach (UIElement uiElement in rootInkCanvas.Children) 435foreach ( UIElement child in children )
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (4)
1027_inkCanvas.AddHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 1058_inkCanvas.AddHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>)); 1081_inkCanvas.RemoveHandler(UIElement.LostStylusCaptureEvent, new StylusEventHandler(OnInkCanvasLostDeviceCapture<StylusEventArgs>)); 1096_inkCanvas.RemoveHandler(UIElement.LostMouseCaptureEvent, new MouseEventHandler(OnInkCanvasLostDeviceCapture<MouseEventArgs>));
src\Framework\MS\Internal\Ink\ElementsClipboardData.cs (6)
39internal ElementsClipboardData(UIElement[] elements) 43ElementList = new List<UIElement>(elements); 58internal List<UIElement> Elements 68return new List<UIElement>(); 84protected List<UIElement> ElementList 106private List<UIElement> _elementList;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (16)
97internal ReadOnlyCollection<UIElement> SelectedElements 103_selectedElements = new List<UIElement>(); 106return new ReadOnlyCollection<UIElement>(_selectedElements); 214internal void Select(StrokeCollection strokes, IList<UIElement> elements, bool raiseSelectionChanged) 250_selectedElements = new List<UIElement>(elements); 351internal void RemoveElement(UIElement removedElement) 377internal void UpdateElementBounds(UIElement element, Matrix transform) 390internal void UpdateElementBounds(UIElement originalElement, UIElement updatedElement, Matrix transform) 561IList<UIElement> elements, 747IList<UIElement> elements = SelectedElements; 1039private static bool FrameworkElementArraysAreEqual(IList<UIElement> elements1, IList<UIElement> elements2) 1058foreach ( UIElement e in elements1 ) 1089foreach ( UIElement element in SelectedElements ) 1134private List<UIElement> _selectedElements;
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (11)
249List<UIElement> elementsToSelect = new List<UIElement>(); 277UIElement tappedElement; 347private List<UIElement> HitTestForElements() 349List<UIElement> elementsToSelect = new List<UIElement>(); 358UIElement uiElement = this.InkCanvas.Children[x]; 369private void HitTestElement(InkCanvasInnerCanvas parent, UIElement uiElement, List<UIElement> elementsToSelect) 394private static ElementCornerPoints GetTransformedElementCornerPoints(InkCanvasInnerCanvas canvas, UIElement childElement) 645private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement)
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (2)
96InkCanvas.SelectionAdorner.AddHandler(UIElement.LostMouseCaptureEvent, 109InkCanvas.SelectionAdorner.RemoveHandler(UIElement.LostMouseCaptureEvent,
src\Framework\MS\Internal\Ink\TextClipboardData.cs (1)
82ElementList = new List<UIElement>();
src\Framework\MS\Internal\Ink\XamlClipboardData.cs (5)
45internal XamlClipboardData(UIElement[] elements) : base (elements) 104foreach ( UIElement element in Elements ) 130ElementList = new List<UIElement>(); 138UIElement element = XamlReader.Load(new System.Xml.XmlTextReader(new System.IO.StringReader(xml)), useRestrictiveXamlReader) as UIElement;
src\Framework\MS\Internal\LayoutDump.cs (16)
90internal static void DumpLayoutTreeToFile(string tagName, UIElement root, string fileName) 107internal static string DumpLayoutTreeToString(string tagName, UIElement root) 130internal static void DumpLayoutTree(XmlTextWriter writer, string tagName, UIElement root) 172internal delegate bool DumpCustomUIElement(XmlTextWriter writer, UIElement element, bool uiElementsOnly); 204if (visual is UIElement) 206DumpUIElement(writer, (UIElement)visual, parent, false); 245private static void DumpUIElement(XmlTextWriter writer, UIElement element, Visual parent, bool uiElementsOnly) 361List<UIElement> uiElements = new List<UIElement>(); 423internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements) 430if (child is UIElement) 432uiElements.Add((UIElement)(child)); 466private static bool DumpDocumentPageView(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 482private static bool DumpText(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 515private static bool DumpFlowDocumentScrollViewer(XmlTextWriter writer, UIElement element, bool uiElementsOnly) 541private static bool DumpFlowDocumentView(XmlTextWriter writer, UIElement element, bool uiElementsOnly)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (4)
410internal void OnChildDesiredSizeChangedCore(UIElement child) 989if (embeddedObject is ContentElement || embeddedObject is UIElement) 991if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 1253void IContentHost.OnChildDesiredSizeChanged(UIElement child)
src\Framework\MS\Internal\PtsHost\LineBase.cs (2)
319if (embeddedObject is UIElement) 326run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph);
src\Framework\MS\Internal\PtsHost\PageVisual.cs (1)
159void IContentHost.OnChildDesiredSizeChanged(UIElement child)
src\Framework\MS\Internal\PtsHost\PtsHost.cs (1)
2657UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.Element).Child;
src\Framework\MS\Internal\PtsHost\RunClient.cs (1)
41internal InlineObjectRun(int cch, UIElement element, TextRunProperties textProps, TextParagraph host)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (4)
1451UIElement uiElement = (UIElement)inlineObjects[i].Element; 1485UIElement uiElement = (UIElement)inlineObjects[i].Element;
src\Framework\MS\Internal\Text\ComplexLine.cs (4)
208proxyVisual.Offset = new Vector(UIElement.RoundLayoutValue(lineOffset.X + rect.Left, dpi.DpiScaleX), 209UIElement.RoundLayoutValue(lineOffset.Y + rect.Top, dpi.DpiScaleY)); 537if (element is UIElement) 545run = new InlineObject(dcp, TextContainerHelper.EmbeddedObjectLength, (UIElement)element, textProps, _owner);
src\Framework\MS\Internal\Text\InlineObject.cs (3)
37internal InlineObject(int dcp, int cch, UIElement element, TextRunProperties textProps, System.Windows.Controls.TextBlock host) 167internal UIElement Element { get { return _element; } } 182private readonly UIElement _element;
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
505public void OnChildDesiredSizeChanged(UIElement child)
src\Framework\System\Windows\Annotations\AnnotationService.cs (9)
990UIElement root = _root as UIElement; 1045IList<UIElement> processedElements = new List<UIElement>(); 1048UIElement parent = annotation.Parent as UIElement; 1072private static void InvalidateAdorners(UIElement element) 1765UIElement root = _root as UIElement;
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
141foreach (UIElement child in this.OwningGrid.Children) 392foreach (UIElement child in this.OwningGrid.Children) 636foreach (UIElement child in this.OwningGrid.Children)
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
233UIElement owningRow = GetWrapper();
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (5)
133UIElement uiElement = textView?.RenderScope; 148UIElement uiScope; 175UIElement uiScope; 208UIElement uiScope; 229private Rect CalculateBoundingRect(bool clipToVisible, out UIElement uiScope)
src\Framework\System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
118if (document is UIElement) 120documentPeer = UIElementAutomationPeer.CreatePeerForElement((UIElement)document);
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
146foreach (UIElement e in _owner.HeaderRowPresenter.ActualColumnHeaders)
src\Framework\System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (2)
179&& (includeInvisibleItems || ((UIElement)child).IsVisible) 180&& (peer = CreatePeerForElement((UIElement)child)) != null)
src\Framework\System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
64foreach (UIElement ele in rowPresenter.ActualCells)
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
152foreach (UIElement child in childItems)
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (5)
89internal UIElement GetWrapper() 91UIElement wrapper = null; 102wrapper = item as UIElement; 104wrapper = owner.ItemContainerGenerator.ContainerFromItem(item) as UIElement; 114UIElement wrapper = GetWrapper();
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
88foreach (UIElement child in childItems) 803return UIElementAutomationPeer.CreatePeerForElement((UIElement)_container);
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
163UIElement uiElement = owner.ItemContainerGenerator.ContainerFromIndex(i) as UIElement;
src\Framework\System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
124&& (peer = CreatePeerForElement((UIElement)child)) != null)
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
241UIElement uiElement = textView?.RenderScope;
src\Framework\System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (4)
97&& child is UIElement) 101object dataItem = (child as UIElement) != null ? (logicalParentAp.Owner as ItemsControl).GetItemOrContainerFromContainer(child as UIElement) : child; 138peer = CreatePeerForElement((UIElement)child);
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (9)
72if (!(value is UIElement)) 73throw new ArgumentException (SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 78this.Child = (UIElement)value; 98public UIElement AdornedElement 112public virtual UIElement Child 121UIElement old = _child; 203UIElement child = Child; 218UIElement child = Child; 250private UIElement _child;
src\Framework\System\Windows\Controls\Border.cs (20)
221UIElement child = Child; 227borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 228UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 274borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 275UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 281UIElement child = Child; 422pen.Thickness = UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX); 486pen.Thickness = UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX); 518pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY); 549pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY); 581ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX), 582UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY)); 586ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 587UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 591ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX), 592RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY));
src\Framework\System\Windows\Controls\Button.cs (1)
244/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Calendar.cs (1)
89EventManager.RegisterClassHandler(typeof(Calendar), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
src\Framework\System\Windows\Controls\Canvas.cs (13)
88public static double GetLeft(UIElement element) 100public static void SetLeft(UIElement element, double length) 114public static double GetTop(UIElement element) 126public static void SetTop(UIElement element, double length) 140public static double GetRight(UIElement element) 152public static void SetRight(UIElement element, double length) 166public static double GetBottom(UIElement element) 178public static void SetBottom(UIElement element, double length) 202UIElement uie = d as UIElement; 276foreach (UIElement child in InternalChildren) 299foreach (UIElement child in InternalChildren) 347/// Override of <seealso cref="UIElement.GetLayoutClip"/>.
src\Framework\System\Windows\Controls\CheckBox.cs (1)
64/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\CleanUpVirtualizedItemEventArgs.cs (3)
17public CleanUpVirtualizedItemEventArgs(object value, UIElement element) 40public UIElement UIElement 66private UIElement _element;
src\Framework\System\Windows\Controls\ComboBox.cs (4)
64EventManager.RegisterClassHandler(typeof(ComboBox), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus)); // call us even if textbox in the style get focus 906_clonedElement = logicalElement as UIElement; 1904/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2044private UIElement _clonedElement;
src\Framework\System\Windows\Controls\ComboBoxItem.cs (1)
187SetFlags(newContent is UIElement, VisualFlags.IsLayoutIslandRoot);
src\Framework\System\Windows\Controls\ContentPresenter.cs (10)
1012UIElement e = content as UIElement; 1016Debug.Assert(tc.CanConvertTo(typeof(UIElement))); 1017e = (UIElement) tc.ConvertTo(content, typeof(UIElement)); 1064private UIElement DefaultExpansion(object content, ContentPresenter container) 1087Debug.Assert(!(content is String) && !(content is UIElement)); // these are handled by different templates 1126Debug.Assert(!(tc != null && tc.CanConvertTo(typeof(UIElement)))); // this is handled by a different template 1180else if (item is UIElement) 1188tc.CanConvertTo(typeof(UIElement)))
src\Framework\System\Windows\Controls\ContextMenu.cs (3)
196public UIElement PlacementTarget 198get { return (UIElement) GetValue(PlacementTargetProperty); } 389/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\ContextMenuService.cs (10)
198typeof(UIElement), // Type 200new FrameworkPropertyMetadata((UIElement)null)); // Default Value 208public static UIElement GetPlacementTarget(DependencyObject element) 214return (UIElement)element.GetValue(PlacementTargetProperty); 222public static void SetPlacementTarget(DependencyObject element, UIElement value) 407UIElement.AddHandler(element, ContextMenuOpeningEvent, handler); 417UIElement.RemoveHandler(element, ContextMenuOpeningEvent, handler); 436UIElement.AddHandler(element, ContextMenuClosingEvent, handler); 446UIElement.RemoveHandler(element, ContextMenuClosingEvent, handler); 451EventManager.RegisterClassHandler(typeof(UIElement), ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening));
src\Framework\System\Windows\Controls\Control.cs (10)
39EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 40EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 41EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 42EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true); 573if ((e.RoutedEvent == UIElement.PreviewMouseLeftButtonDownEvent) || 574(e.RoutedEvent == UIElement.PreviewMouseRightButtonDownEvent)) 708UIElement child = (UIElement)(this.GetVisualChild(0)); 730UIElement child = (UIElement)(this.GetVisualChild(0));
src\Framework\System\Windows\Controls\DataGrid.cs (15)
2303UIElement source = e.OriginalSource as UIElement; 5593UIElement startElement = Keyboard.FocusedElement as UIElement; 5927UIElement startElement = Keyboard.FocusedElement as UIElement; 6379UIElement sourceElement = e.OriginalSource as UIElement; 6394sourceElement = VisualTreeHelper.GetParent(sourceElement) as UIElement; 6617UIElement element = Mouse.DirectlyOver as UIElement; 6626element = VisualTreeHelper.GetParent(row) as UIElement; 6638UIElement element = Mouse.DirectlyOver as UIElement; 6647element = VisualTreeHelper.GetParent(cell) as UIElement;
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
553DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement); 566DataGridCell cell = DataGridHelper.FindVisualParent<DataGridCell>(e.OriginalSource as UIElement);
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (29)
89UIElement parent = VisualTreeHelper.GetParent(this) as UIElement; 104private static void MeasureChild(UIElement child, Size constraint) 538private UIElement GenerateChild( 558private UIElement GenerateChild( 566UIElement child = generator.GenerateNext(out newlyRealized) as UIElement; 629private void AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized) 668private void InsertRecycledContainer(int childIndex, UIElement container) 676private void InsertNewContainer(int childIndex, UIElement container) 684private void InsertContainer(int childIndex, UIElement container, bool isRecycled) 772UIElement child = _realizedChildren[realizedChildIndex]; 847UIElement child = GenerateChild(generator, constraint, column, ref childIndex, out childSize); 972UIElement child = generator.ContainerFromIndex(columnIndex) as UIElement; 1064UIElement child = children[i] as UIElement; 1176UIElement visualChild; 1177UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 1276public UIElement OldClippedChild 1281public UIElement NewClippedChild 1416ArrangeChild(children[childIndex] as UIElement, i, arrangeState); 1438UIElement child = children[additionalChildIndices[i]] as UIElement; 1458UIElement child, 1966_realizedChildren = new List<UIElement>(children.Count); 2375internal Geometry GetFrozenClipForChild(UIElement child) 2461private UIElement _clippedChildForFrozenBehaviour; 2463private List<UIElement> _realizedChildren;
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
41style.Setters.Add(new Setter(UIElement.IsHitTestVisibleProperty, false)); 42style.Setters.Add(new Setter(UIElement.FocusableProperty, false));
src\Framework\System\Windows\Controls\DataGridHelper.cs (11)
175public static T FindVisualParent<T>(UIElement element) where T : UIElement 177UIElement parent = element; 186parent = VisualTreeHelper.GetParent(parent) as UIElement; 203UIElement uielement = element as UIElement; 246UIElement element = (UIElement)cell; 295return panel.GetFrozenClipForChild((UIElement)cell); 310UIElement element = (UIElement)cell;
src\Framework\System\Windows\Controls\DatePicker.cs (1)
91EventManager.RegisterClassHandler(typeof(DatePicker), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus));
src\Framework\System\Windows\Controls\Decorator.cs (8)
74if (!(value is UIElement)) 76throw new ArgumentException (SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 84this.Child = (UIElement)value; 113public virtual UIElement Child 200UIElement child = Child; 216UIElement child = Child; 227internal UIElement IntChild 236UIElement _child;
src\Framework\System\Windows\Controls\DefinitionBase.cs (2)
807internal void EnsureDeferredValidation(UIElement layoutUpdatedHost) 931private UIElement _layoutUpdatedHost; // UIElement for which layout updated event handler is registered
src\Framework\System\Windows\Controls\DockPanel.cs (6)
111public static Dock GetDock(UIElement element) 124public static void SetDock(UIElement element, Dock dock) 133UIElement uie = d as UIElement; //it may be anyting, like FlowDocument... bug 1237275 225UIElement child = children[i]; 290UIElement child = children[i];
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
880/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Expander.cs (1)
296/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (5)
770/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 967if (focusedElement is UIElement) 969((UIElement)focusedElement).Focus(); 1587if (CurrentViewer != null && CurrentViewer is UIElement) 1589((UIElement)CurrentViewer).Focus();
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
757/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1108UIElement targetUIElement; 1127else if (args.TargetObject is UIElement) 1129targetUIElement = (UIElement)args.TargetObject;
src\Framework\System\Windows\Controls\Frame.cs (1)
561/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Grid.cs (24)
113UIElement cell = value as UIElement; 120throw (new ArgumentException(SR.Get(SRID.Grid_UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value")); 165public static void SetColumn(UIElement element, int value) 181public static int GetColumn(UIElement element) 196public static void SetRow(UIElement element, int value) 212public static int GetRow(UIElement element) 227public static void SetColumnSpan(UIElement element, int value) 243public static int GetColumnSpan(UIElement element) 258public static void SetRowSpan(UIElement element, int value) 274public static int GetRowSpan(UIElement element) 289public static void SetIsSharedSizeScope(UIElement element, bool value) 304public static bool GetIsSharedSizeScope(UIElement element) 438UIElement child = children[i]; 737UIElement child = children[i]; 759UIElement cell = children[currentCell]; 965UIElement child = children[i]; 1427UIElement child = InternalChildren[cell]; 2186definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2225definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi); 2276definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi); 2301final = UIElement.RoundLayoutValue(finalOld, dpi); 2328double dpiIncrement = UIElement.RoundLayoutValue(1.0, dpi); 2728double roundedSize = UIElement.RoundLayoutValue(def.SizeCache, dpi);
src\Framework\System\Windows\Controls\GridSplitter.cs (4)
299/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 377/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 887delta = UIElement.RoundLayoutValue(delta, dpi.DpiScaleX); 895delta = UIElement.RoundLayoutValue(delta, dpi.DpiScaleY);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
249/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 532/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
261UIElement child = children[GetVisualIndex(i)]; 351UIElement child = children[GetVisualIndex(i)]; 789/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (6)
147UIElement child = children[column.ActualIndex]; 223UIElement child = children[column.ActualIndex]; 408internal List<UIElement> ActualCells 412List<UIElement> list = new List<UIElement>(); 423UIElement cell = children[indexList[i]];
src\Framework\System\Windows\Controls\GroupBox.cs (1)
39/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\GroupItem.cs (1)
44/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Image.cs (1)
191/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\InkCanvas.cs (37)
290if (e.Property == UIElement.RenderTransformProperty || 448public static double GetTop(UIElement element) 460public static void SetTop(UIElement element, double length) 482public static double GetBottom(UIElement element) 494public static void SetBottom(UIElement element, double length) 516public static double GetLeft(UIElement element) 528public static void SetLeft(UIElement element, double length) 550public static double GetRight(UIElement element) 562public static void SetRight(UIElement element, double length) 575UIElement uie = d as UIElement; 665_selectionAdorner.SetBinding(UIElement.VisibilityProperty, activeEditingModeBinding); 1780public ReadOnlyCollection<UIElement> GetSelectedElements() 1812public void Select(IEnumerable<UIElement> selectedElements) 1823public void Select(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 1834UIElement[] validElements = ValidateSelectedElements(selectedElements); 2196List<UIElement> newElements = new List<UIElement>(); 2212foreach ( UIElement element in newElements ) 2433ChangeInkCanvasSelection(new StrokeCollection(), new UIElement[]{}); 2449CoreChangeSelection(new StrokeCollection(), new UIElement[] { }, raiseSelectionChangedEvent); 2458internal void ChangeInkCanvasSelection(StrokeCollection strokes, UIElement[] elements) 2473UIElement[] validElements = elements; 2542private void CoreChangeSelection(StrokeCollection validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged) 2645private UIElement[] ValidateSelectedElements(IEnumerable<UIElement> selectedElements) 2649return new UIElement[]{}; 2652List<UIElement> elements = new List<UIElement>(); 2653foreach (UIElement element in selectedElements) 2676private bool InkCanvasIsAncestorOf(UIElement element) 2807IList<UIElement> elements = GetSelectedElements(); 2812removeSelectedElements ? new List<UIElement>() : elements, 2825foreach ( UIElement element in elements ) 2862IEnumerable<UIElement> children = null; 2868UIElement[] uiElementArray = new UIElement[uiElementCollection.Count];
src\Framework\System\Windows\Controls\InkPresenter.cs (1)
225UIElement child = Child;
src\Framework\System\Windows\Controls\ItemsControl.cs (15)
1171UIElement ui = container as UIElement; 1188ui = VisualTreeHelper.GetParent(ui) as UIElement; 1349if (p != null && (visual is UIElement)) 1351p.Children.RemoveNoVerify((UIElement)visual); 1578return (item is UIElement); 2959UIElement element, 2968UIElement element, 2995UIElement element, 3137UIElement focusedElement = e.OriginalSource as UIElement; 3147UIElement itemContainer = itemsControl._focusedInfo.Container as UIElement; 3208UIElement container = info.Container as UIElement;
src\Framework\System\Windows\Controls\Label.cs (9)
90typeof(UIElement), 93(UIElement) null, 102public UIElement Target 104get { return (UIElement) GetValue(TargetProperty); } 112UIElement oldElement = (UIElement) e.OldValue; 113UIElement newElement = (UIElement) e.NewValue; 173/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\ListBox.cs (1)
221/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
240/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\ListView.cs (1)
223/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\MediaElement.cs (1)
701/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Menu.cs (1)
128/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\MenuItem.cs (6)
1276/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1644UIElement uiElement = source as UIElement; 2311internal static void SetInsideContextMenuProperty(UIElement element, bool value) 2722private static bool GetBoolField(UIElement element, BoolField field) 2727private static void SetBoolField(UIElement element, BoolField field, bool value)
src\Framework\System\Windows\Controls\Page.cs (4)
605UIElement child = this.GetVisualChild(0) as UIElement; 630UIElement child = this.GetVisualChild(0) as UIElement;
src\Framework\System\Windows\Controls\Panel.cs (15)
99UIElement uie = value as UIElement; 103throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 670UIElement child; 671while ((child = generator.GenerateNext() as UIElement) != null) 730UIElement e = generator.GenerateNext() as UIElement; 761UIElement e = generator.GenerateNext(out isNewlyRealized) as UIElement; 787UIElement[] elements = new UIElement[containerCount]; 926public static void SetZIndex(UIElement element, int value) 941public static int GetZIndex(UIElement element) 962UIElement child = d as UIElement;
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
463/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\PopupControlService.cs (11)
86UIElement rootAsUIElement = source != null ? source.RootVisual as UIElement : null; 853((UIElement)sourceDO).RaiseEvent(args, userInitiated); 929UIElement uie = GetTarget(o); 1037UIElement uie = o as UIElement; 1089private static UIElement GetTarget(DependencyObject o) 1091UIElement uie = o as UIElement; 1100uie = ceParent as UIElement; 1184UIElement uie = GetTarget(owner);
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (9)
82public UIElement Bullet 108UIElement child = Child; 244UIElement bullet = Bullet; 245UIElement content = Child; 276UIElement bullet = Bullet; 277UIElement content = Child; 331private double GetFirstLineHeight(UIElement element) 335UIElement text = FindText(element); 449UIElement _bullet = null;
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (2)
114/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 151e.Target = (UIElement)sender;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (2)
438foreach (UIElement element in this.YearView.Children) 1007monthCell.AddHandler(UIElement.PreviewKeyDownEvent, new RoutedEventHandler(CellOrMonth_PreviewKeyDown), true);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
145UIElement child = (VisualTreeHelper.GetChildrenCount(this) > 0) ? VisualTreeHelper.GetChild(this, 0) as UIElement : null;
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
301var parent = this.Parent as UIElement;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
549/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
391/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1182if (args.TargetObject is UIElement) 1184UIElement targetObject = (UIElement)args.TargetObject;
src\Framework\System\Windows\Controls\Primitives\LayoutInformation.cs (2)
60public static UIElement GetLayoutExceptionElement(Dispatcher dispatcher) 65UIElement e = null;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (33)
119typeof(UIElement), 129public UIElement Child 131get { return (UIElement) GetValue(ChildProperty); } 139UIElement oldChild = (UIElement) e.OldValue; 140UIElement newChild = (UIElement) e.NewValue; 187private static void RegisterPopupWithPlacementTarget(Popup popup, UIElement placementTarget) 214private static void UnregisterPopupFromPlacementTarget(Popup popup, UIElement placementTarget) 239private void UpdatePlacementTargetRegistration(UIElement oldValue, UIElement newValue) 643typeof(UIElement), 655public UIElement PlacementTarget 657get { return (UIElement) GetValue(PlacementTargetProperty); } 671ctrl.UpdatePlacementTargetRegistration((UIElement)e.OldValue, (UIElement)e.NewValue); 675UnregisterPopupFromPlacementTarget(ctrl, (UIElement)e.OldValue); 877public static void CreateRootPopup(Popup popup, UIElement child) 889internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty) 976internal static bool IsRootedInPopup(Popup parentPopup, UIElement element) 1296UIElement element = value as UIElement; 1299throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 1356UIElement placementTarget = PlacementTarget; 1534UIElement child = Child; 2303UIElement target = GetTarget() as UIElement; 2381UIElement child = Child; 2391UIElement target = GetTarget() as UIElement; 3390UIElement target = popup.PlacementTarget; 3747var target = popup?.GetTarget() as UIElement;
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (3)
85/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 96internal UIElement Child 298UIElement child = Child;
src\Framework\System\Windows\Controls\Primitives\RepeatButton.cs (1)
195/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
141/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (5)
379override internal UIElement TemplateChild 387UIElement oldTemplate = base.TemplateChild; 488UIElement child = this.GetVisualChild(0) as UIElement; 518/// Override of <seealso cref="UIElement.GetLayoutClip"/>.
src\Framework\System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (2)
58UIElement element = d as UIElement;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
1347UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement;
src\Framework\System\Windows\Controls\Primitives\StatusBar.cs (1)
175/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Primitives\StatusBarItem.cs (1)
37/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (8)
104foreach (UIElement child in InternalChildren) 148foreach (UIElement child in InternalChildren) 191/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 209private Size GetDesiredSizeWithoutMargin(UIElement element) 222foreach (UIElement child in InternalChildren) 260foreach (UIElement child in InternalChildren) 309foreach (UIElement child in InternalChildren) 329foreach (UIElement child in InternalChildren)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1710if (visual is UIElement) 1712((UIElement)visual).AddToEventRoute(route, args);
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (1)
215/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (1)
253/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (7)
80List<UIElement> generatedItemsCollection = toolBarPanel.GeneratedItemsCollection; 85UIElement child = generatedItemsCollection[i]; 111UIElement child = children[i] as UIElement; 127UIElement child = children[i] as UIElement; 213UIElement child = children[i];
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (15)
70UIElement child = _generatedItemsCollection[i]; 307UIElement child = (UIElement)children[i]; 360_generatedItemsCollection = new List<UIElement>(children.Count); 377UIElement child = children[i]; 420UIElement e = generator.GenerateNext() as UIElement; 438private void RemoveChild(UIElement child) 476UIElement e = generator.GenerateNext(out isNewlyRealized) as UIElement; 505UIElement[] elements = new UIElement[containerCount]; 509UIElement child = _generatedItemsCollection[fromPos.Index + i]; 541internal List<UIElement> GeneratedItemsCollection 550private List<UIElement> _generatedItemsCollection;
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (3)
189UIElement child = InternalChildren[i]; 225foreach (UIElement child in InternalChildren) 281UIElement child = InternalChildren[i];
src\Framework\System\Windows\Controls\ProgressBar.cs (3)
188_glow.InvalidateProperty(UIElement.OpacityMaskProperty); 219_glow.SetCurrentValue(UIElement.OpacityMaskProperty, mask); 295/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\RadioButton.cs (1)
228/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\RichTextBox.cs (2)
297/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 423UIElement renderScope = this.RenderScope;
src\Framework\System\Windows\Controls\ScrollViewer.cs (9)
987UIElement currentFocusUIElement = focusedElement as UIElement; 1177UIElement child = (count > 0) ? this.GetVisualChild(0) as UIElement : null; 2298UIElement uie = child as UIElement; 2487/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 2764hsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedHorizontalScrollBarVisibilityProperty)); 2774vsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedVerticalScrollBarVisibilityProperty));
src\Framework\System\Windows\Controls\Separator.cs (1)
41/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
369/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Slider.cs (1)
1223/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Stack.cs (6)
598UIElement child = children[i]; 758UIElement child = (UIElement)children[i]; 850? ((UIElement)children[i]).DesiredSize.Width 851: ((UIElement)children[i]).DesiredSize.Height; 876return (children.IndexOf((UIElement)dependencyObjectChild));
src\Framework\System\Windows\Controls\StickyNote.cs (6)
612UIElement innerControl = this.Content.InnerControl as UIElement; 643UIElement contentContainer = GetContentContainer(); 746private UIElement GetContentContainer() 748return GetTemplateChild(SNBConstants.c_ContentControlId) as UIElement; 1508stickyNoteIsKeyboardFocusWithin.Path = new PropertyPath(UIElement.IsKeyboardFocusWithinProperty);
src\Framework\System\Windows\Controls\TabControl.cs (1)
314/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\TabItem.cs (1)
264/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
249UIElement renderScope = textView.RenderScope;
src\Framework\System\Windows\Controls\TextBlock.cs (9)
116void IContentHost.OnChildDesiredSizeChanged(UIElement child) 161if (value is UIElement) 163value = new InlineUIContainer((UIElement)value); 1979protected virtual void OnChildDesiredSizeChangedCore(UIElement child) 1985/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 3662if (embeddedObject is ContentElement || embeddedObject is UIElement) 3664if (embeddedObject == e as ContentElement || embeddedObject == e as UIElement) 3721if (fd != null && d is UIElement) 3723fd.OnChildDesiredSizeChanged((UIElement)d);
src\Framework\System\Windows\Controls\TextBox.cs (1)
999/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\ToolBar.cs (6)
466/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 655UIElement newFocusElement = null; 656UIElement currentFocusElement = e.Source as UIElement; 667newFocusElement = VisualTreeHelper.GetChild(itemsHost, 0) as UIElement; 670newFocusElement = VisualTreeHelper.GetChild(itemsHost, VisualTreeHelper.GetChildrenCount(itemsHost)-1) as UIElement;
src\Framework\System\Windows\Controls\ToolTip.cs (3)
262public UIElement PlacementTarget 264get { return (UIElement) GetValue(PlacementTargetProperty); } 445/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\ToolTipService.cs (10)
191typeof(UIElement), // Type 193new FrameworkPropertyMetadata((UIElement)null)); // Default Value 201public static UIElement GetPlacementTarget(DependencyObject element) 207return (UIElement)element.GetValue(PlacementTargetProperty); 215public static void SetPlacementTarget(DependencyObject element, UIElement value) 567UIElement.AddHandler(element, ToolTipOpeningEvent, handler); 577UIElement.RemoveHandler(element, ToolTipOpeningEvent, handler); 598UIElement.AddHandler(element, ToolTipClosingEvent, handler); 608UIElement.RemoveHandler(element, ToolTipClosingEvent, handler); 623EventManager.RegisterClassHandler(typeof(UIElement), FindToolTipEvent, new FindToolTipEventHandler(OnFindToolTip));
src\Framework\System\Windows\Controls\TreeView.cs (3)
765UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement; 847/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
1069/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\UIElementCollection.cs (33)
42public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 95public virtual void CopyTo(UIElement[] array, int index) 117public virtual UIElement this[int index] 119get { return _visualChildren[index] as UIElement; } 131UIElement e = vc[index] as UIElement; 148internal void SetInternal(int index, UIElement item) 168public virtual int Add(UIElement element) 179internal int AddInternal(UIElement element) 196public virtual int IndexOf(UIElement element) 205public virtual void Remove(UIElement element) 212internal void RemoveInternal(UIElement element) 224internal virtual void RemoveNoVerify(UIElement element) 233public virtual bool Contains(UIElement element) 274UIElement e = visuals[i] as UIElement; 289public virtual void Insert(int index, UIElement element) 300internal void InsertInternal(int index, UIElement element) 320UIElement e = vc[index] as UIElement; 371UIElement e = visuals[i] as UIElement; 394private UIElement Cast(object value) 399UIElement element = value as UIElement; 422return Contains(value as UIElement); 430return IndexOf(value as UIElement); 460Remove(value as UIElement); 499protected void SetLogicalParent(UIElement element) 511protected void ClearLogicalParent(UIElement element) 522internal UIElement VisualParent 528private void ValidateElement(UIElement element) 551private readonly UIElement _visualParent;
src\Framework\System\Windows\Controls\UserControl.cs (1)
53/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\Validation.cs (4)
433UIElement siteUIElement = adornerSite as UIElement; 590else if (source is UIElement) 591((UIElement)source).RaiseEvent(args);
src\Framework\System\Windows\Controls\ViewBox.cs (6)
175private UIElement InternalChild 180if (vc.Count != 0) return vc[0] as UIElement; 206public override UIElement Child 217UIElement old = InternalChild; 319UIElement child = InternalChild; 352UIElement child = InternalChild;
src\Framework\System\Windows\Controls\ViewPort3D.cs (1)
159/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (6)
42public double GetItemOffset(UIElement child) 52protected virtual double GetItemOffsetCore(UIElement child) 465protected void AddInternalChild(UIElement child) 478protected void InsertInternalChild(int index, UIElement child) 497internal static void AddInternalChild(UIElementCollection children, UIElement child) 503internal static void InsertInternalChild(UIElementCollection children, int index, UIElement child)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (48)
537_scrollData._offset.X = UIElement.RoundLayoutValue(_scrollData._offset.X, dpi.DpiScaleX); 538_scrollData._computedOffset.X = UIElement.RoundLayoutValue(_scrollData._computedOffset.X, dpi.DpiScaleX); 663_scrollData._offset.Y = UIElement.RoundLayoutValue(_scrollData._offset.Y, dpi.DpiScaleY); 664_scrollData._computedOffset.Y = UIElement.RoundLayoutValue(_scrollData._computedOffset.Y, dpi.DpiScaleY); 1650UIElement child; 1658child = generator.GenerateNext(out newlyRealized) as UIElement; 2174UIElement firstContainerInViewport = null; 2559firstContainerInViewport = children[firstItemInViewportChildIndex] as UIElement; 3336UIElement child = null; 3348child = (UIElement)children[i]; 3377UIElement containerBeforeViewport = null; 3386containerBeforeViewport = (UIElement)children[j]; 5743Size childDesiredSize = ((UIElement)children[i]).DesiredSize; 6313private void SetItemsHostInsetForChild(int index, UIElement child, IContainItemStorage itemStorageProvider, bool isHorizontal) 6424private ItemsControl GetScrollingItemsControl(UIElement container) 6557UIElement child, 7343UIElement child = children[i] as UIElement; 7495UIElement child = children[i] as UIElement; 7947object item = ((ItemContainerGenerator)generator).ItemFromContainer((UIElement)children[childIndex]); 8044UIElement child = null; 8057child = generator.GenerateNext(out newlyRealized) as UIElement; 8069child = (UIElement)children[childIndex]; 8250UIElement child, 8397UIElement child, 8432UIElement child, 8575private void InsertNewContainer(int childIndex, UIElement container) 8586private bool InsertRecycledContainer(int childIndex, UIElement container) 8598private bool InsertContainer(int childIndex, UIElement container, bool isRecycled) 8750private bool AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized, bool isBeforeViewport) 8822UIElement child = Generator.GenerateNext(out newlyRealized) as UIElement; 8926UIElement child; 8962child = (UIElement)children[childIndex]; 9045_realizedChildren = new List<UIElement>(children.Count); 9067foreach (UIElement child in InternalChildren) 9117UIElement child = _realizedChildren[realizedChildIndex]; 9142UIElement visualChild; 9143UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null; 9297private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 9446UIElement firstContainerInViewport, 10851protected override double GetItemOffsetCore(UIElement child) 10920double distance = vp.GetItemOffset((UIElement)child); 11138UIElement container = null; 11142container = (UIElement)children[i]; 11585private List<UIElement> _realizedChildren; 12867foreach (UIElement child in RealizedChildren)
src\Framework\System\Windows\Controls\WrapPanel.cs (6)
241UIElement child = children[i] as UIElement; 301UIElement child = children[i] as UIElement; 350UIElement child = children[i] as UIElement;
src\Framework\System\Windows\Data\BindingGroup.cs (4)
604UIElement layoutElement = Helper.FindMentor(this) as UIElement; 924UIElement layoutElement = mentor as UIElement;
src\Framework\System\Windows\Documents\Adorner.cs (6)
51protected Adorner(UIElement adornedElement) 86UIElement ch = this.GetVisualChild(i) as UIElement; 97/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 184public UIElement AdornedElement 250private readonly UIElement _adornedElement;
src\Framework\System\Windows\Documents\AdornerDecorator.cs (2)
32public override UIElement Child 161public override UIElement Child
src\Framework\System\Windows\Documents\AdornerLayer.cs (12)
222foreach (UIElement key in ElementMap.Keys) 243public void Update(UIElement element) 269public Adorner[] GetAdorners(UIElement element) 452/// Override for <seealso cref="UIElement.ArrangeCore" /> 692private void Clear(UIElement element) 716private void UpdateElementAdorners(UIElement element) 781private void UpdateAdorner(UIElement element) 808UIElement[] keys = new UIElement[keyCollection.Count]; 813UIElement elTemp = (UIElement)keys[i]; 829Clear((UIElement)removeList[i]);
src\Framework\System\Windows\Documents\BlockUIContainer.cs (4)
49public BlockUIContainer(UIElement uiElement) 72public UIElement Child 76return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 88UIElement child = Child;
src\Framework\System\windows\Documents\CaretElement.cs (2)
930_caretElement.ApplyAnimationClock(UIElement.OpacityProperty, _blinkAnimationClock); 936_caretElement.ApplyAnimationClock(UIElement.OpacityProperty, null);
src\Framework\System\Windows\Documents\ColumnResizeAdorner.cs (2)
44internal ColumnResizeAdorner(UIElement scope) : base(scope) 144internal void Initialize(UIElement renderScope, double xPos, double yPos, double height)
src\Framework\System\Windows\Documents\DocumentSequence.cs (4)
174UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 176UIElement uiElementRet = null; 1170UIElement e; 1171if ((e = ((object)base.Visual) as UIElement) != null)
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (3)
512internal override UIElement RenderScope 518while (visual != null && !(visual is UIElement)) 523return visual as UIElement;
src\Framework\System\Windows\Documents\DPTypeDescriptorContext.cs (1)
59if (property == UIElement.BitmapEffectProperty)
src\Framework\System\Windows\Documents\FixedDocument.cs (6)
220UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 222UIElement uiElementRet = null; 528fixedPosition = new FixedPosition(fixedPage.CreateFixedNode(pageIndex, (UIElement)element), 0); 1356private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement)); 1462UIElement e; 1463if ((e = ((object)base.Visual) as UIElement)!=null)
src\Framework\System\Windows\Documents\FixedDSBuilder.cs (5)
41internal NameHashFixedNode(UIElement e, int i) 45internal UIElement uiElement; 57public void BuildNameHashTable(String Name, UIElement e, int indexToFixedNodes) 116private void AddFixedNodeInFlow(int index, UIElement e) 128e = _fixedPage.GetElement(fn) as UIElement;
src\Framework\System\Windows\Documents\FixedHighlight.cs (3)
43internal FixedHighlight(UIElement element, int beginOffset, int endOffset, FixedHighlightType t, 207internal UIElement Element 237private readonly UIElement _element; // the Glyphs element, or possibly an image
src\Framework\System\Windows\Documents\FixedHyperlink.cs (1)
39UIElement FindElementByID(string elementID, out FixedPage rootFixedPage);
src\Framework\System\Windows\Documents\FixedPage.cs (24)
92/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 197UIElement uie = value as UIElement; 201throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 230public static double GetLeft(UIElement element) 243public static void SetLeft(UIElement element, double length) 258public static double GetTop(UIElement element) 271public static void SetTop(UIElement element, double length) 286public static double GetRight(UIElement element) 299public static void SetRight(UIElement element, double length) 314public static double GetBottom(UIElement element) 327public static void SetBottom(UIElement element, double length) 339public static Uri GetNavigateUri(UIElement element) 350public static void SetNavigateUri(UIElement element, Uri uri) 780foreach (UIElement child in Children) 803foreach (UIElement child in Children) 865UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage) 867UIElement uiElementRet = null; 872UIElement uiElement; 882uiElementRet = node as UIElement; 891internal FixedNode CreateFixedNode(int pageIndex, UIElement e) 1052childIndex = ((FixedPage)parent).Children.IndexOf((UIElement)e); 1056childIndex = ((Canvas)parent).Children.IndexOf((UIElement)e); 1085private FixedNode _CreateFixedNode(int pageIndex, UIElement e)
src\Framework\System\Windows\Documents\FixedSOMElement.cs (1)
76public static FixedSOMElement CreateFixedSOMElement(FixedPage page, UIElement uiElement, FixedNode fixedNode, int startIndex, int endIndex)
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (14)
980elements.Current as UIElement, 1215public LogicalHyperlink(Uri uri, Geometry geom, UIElement uiElement) 1248public UIElement UIElement 1269private UIElement _uiElement; 1294public void AddLogicalHyperlink(Uri uri, Geometry geometry, UIElement uiElement) 1303public Uri GetUri(FixedSOMElement element, FixedPage p, out UIElement shadowElement) 1306UIElement e = p.GetElement(element.FixedNode) as UIElement; 1353public void MarkAsUsed(UIElement uiElement) 1433foreach (UIElement child in children) 1499UIElement shadowHyperlink; 1759private void _SetHyperlink(Uri navUri, FixedNode node, UIElement shadowHyperlink) 1772UIElement uiElement = _fixedPage.GetElement(node) as UIElement;
src\Framework\System\Windows\Documents\FixedTextContainer.cs (3)
452UIElement e; 455e = (UIElement)o; 465e = (UIElement)o;
src\Framework\System\Windows\Documents\FixedTextView.cs (7)
101UIElement e; 694internal override UIElement RenderScope 700while (visual != null && !(visual is UIElement)) 705return visual as UIElement; 787private bool _HitTest(Point pt, out UIElement e) 799e = (UIElement) v; 1310private static DependencyObjectType UIElementType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
948internal void OnChildDesiredSizeChanged(UIElement child) 1217OnChildDesiredSizeChanged(arg as UIElement);
src\Framework\System\Windows\Documents\Glyphs.cs (1)
723((UIElement)d).InvalidateVisual();
src\Framework\System\Windows\Documents\Hyperlink.cs (5)
996SetUpEventHandler(element, UIElement.KeyDownEvent, new KeyEventHandler(OnKeyDown)); //initiates navigation 997SetUpEventHandler(element, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnMouseLeftButtonDown)); //capture hyperlink pressed state 998SetUpEventHandler(element, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(OnMouseLeftButtonUp)); //can initiate navigation 1001SetUpEventHandler(element, UIElement.MouseEnterEvent, new MouseEventHandler(OnMouseEnter)); //set status bar 1002SetUpEventHandler(element, UIElement.MouseLeaveEvent, new MouseEventHandler(OnMouseLeave)); //clear status bar
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
2058private UIElement RenderScope
src\Framework\System\Windows\Documents\InlineCollection.cs (4)
69UIElement uiElement = value as UIElement; 106public void Add(UIElement uiElement) 240private int AddUIElement(UIElement uiElement, bool returnIndex)
src\Framework\System\Windows\Documents\InlineUIContainer.cs (6)
51public InlineUIContainer(UIElement childUIElement) : this(childUIElement, null) 65public InlineUIContainer(UIElement childUIElement, TextPointer insertionPosition) 103public UIElement Child 107return this.ContentStart.GetAdjacentElement(LogicalDirection.Forward) as UIElement; 119UIElement child = Child; 167UIElement childElement = this.Child;
src\Framework\System\Windows\Documents\ITextRange.cs (1)
117UIElement GetUIElementSelected();
src\Framework\System\Windows\Documents\ITextView.cs (1)
505UIElement RenderScope { get; }
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
320foreach (UIElement child in vc) 717private UIElement _scope; // element to which we are attached
src\Framework\System\windows\Documents\TextEditor.cs (2)
314internal static ITextView GetTextView(UIElement scope) 415EventManager.RegisterClassHandler(controlType, UIElement.LostFocusEvent, new RoutedEventHandler(OnLostFocus));
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (2)
125if (contextMenu == null || !(e.TargetElement is UIElement)) 251UIElement placementTarget = ((ContextMenu)sender).PlacementTarget;
src\Framework\System\windows\Documents\TextEditorMouse.cs (4)
706UIElement uiElement = GetUIElementWhenMouseOver(This, mouseMovePoint); 729private static UIElement GetUIElementWhenMouseOver(TextEditor This, Point mouseMovePoint) 766return mouseMovePosition.GetAdjacentElement(mouseMovePosition.LogicalDirection) as UIElement; 776UIElement renderScope = textEditor.TextView.RenderScope;
src\Framework\System\Windows\Documents\TextElement.cs (2)
857UIElement uie = value as UIElement;
src\Framework\System\Windows\Documents\TextPointer.cs (7)
524/// element and has <see cref="UIElement"/> as atomic symbol in a requested direction.</para> 649/// the <see cref="UIElement"/> class.</para> 812/// and a <see cref="UIElement"/>.</para> 816/// <para><see cref="UIElement"/> object can be returned only when 848/// <para>- the whole <see cref="UIElement"/> as atomic embedded object.</para> 910/// <para>- the whole <see cref="UIElement"/> as atomic embedded object.</para> 2159internal void InsertUIElement(UIElement uiElement)
src\Framework\System\Windows\Documents\TextRange.cs (2)
177UIElement ITextRange.GetUIElementSelected() 875internal UIElement GetUIElementSelected()
src\Framework\System\Windows\Documents\TextRangeBase.cs (2)
1645internal static UIElement GetUIElementSelected(ITextRange range) 1665return start.GetAdjacentElement(LogicalDirection.Forward) as UIElement;
src\Framework\System\Windows\Documents\TextRangeEdit.cs (1)
882UIElement embeddedElement = ((BlockUIContainer)block).Child;
src\Framework\System\Windows\Documents\TextSchema.cs (14)
274elementType.Module == typeof(System.Windows.UIElement).Module; // presentationcore 844return typeof(UIElement).IsAssignableFrom(childType); 879return typeof(UIElement).IsAssignableFrom(childType); 1192UIElement.RenderTransformProperty, 1193UIElement.RenderTransformOriginProperty, 1194UIElement.OpacityProperty, 1195UIElement.OpacityMaskProperty, 1196UIElement.BitmapEffectProperty, 1197UIElement.BitmapEffectInputProperty, 1198UIElement.VisibilityProperty, 1199UIElement.ClipToBoundsProperty, 1200UIElement.ClipProperty, 1201UIElement.SnapsToDevicePixelsProperty, 1210UIElement.AllowDropProperty,
src\Framework\System\windows\Documents\TextSelection.cs (2)
2574if (element is UIElement && ((UIElement)element).IsKeyboardFocusWithin)
src\Framework\System\Windows\Documents\TextStore.cs (1)
1953internal UIElement RenderScope
src\Framework\System\windows\Documents\UIElementPropertyUndoUnit.cs (5)
54private UIElementPropertyUndoUnit(UIElement uiElement, DependencyProperty property, object oldValue) 107internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, HorizontalAlignment newValue) 113internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, FlowDirection newValue) 129private static void AddPrivate(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, object newValue) 170private readonly UIElement _uiElement;
src\Framework\System\Windows\Documents\ValidationHelper.cs (1)
131Invariant.Assert(child is UIElement);
src\Framework\System\Windows\FrameworkElement.cs (46)
339protected internal virtual void ParentLayoutInvalidated(UIElement child) 600virtual internal UIElement TemplateChild 1428if (item == null || (item is UIElement)) 2215UIElement layoutParent = null; 2228layoutParent = v as UIElement; 3164UIElement e = null; 4302/// Override for <seealso cref="UIElement.MeasureCore" />. 4350mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4351mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4352mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4353mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4398frameworkAvailableSize = UIElement.RoundLayoutSize(frameworkAvailableSize, dpi.DpiScaleX, dpi.DpiScaleY); 4479clippedDesiredWidth = UIElement.RoundLayoutValue(clippedDesiredWidth, dpi.DpiScaleX); 4480clippedDesiredHeight = UIElement.RoundLayoutValue(clippedDesiredHeight, dpi.DpiScaleY); 4525/// Override for <seealso cref="UIElement.ArrangeCore" />. 4579marginWidth = UIElement.RoundLayoutValue(marginWidth, dpi.DpiScaleX); 4580marginHeight = UIElement.RoundLayoutValue(marginHeight, dpi.DpiScaleY); 4686mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4687mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4688mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4689mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4712arrangeSize = UIElement.RoundLayoutSize(arrangeSize, dpi.DpiScaleX, dpi.DpiScaleY); 4725RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY); 4738clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4755clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4771clientSize = UIElement.RoundLayoutSize(clientSize, dpi.DpiScaleX, dpi.DpiScaleY); 4787offset.X = UIElement.RoundLayoutValue(offset.X, dpi.DpiScaleX); 4788offset.Y = UIElement.RoundLayoutValue(offset.Y, dpi.DpiScaleY); 4796/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/> 4876/// Override of <seealso cref="UIElement.GetLayoutClip"/>. 4897mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY); 4898mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4899mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY); 4900mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4950clipRect = UIElement.RoundLayoutRect(clipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4971slotClipRect = UIElement.RoundLayoutRect(slotClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4988localClipRect = UIElement.RoundLayoutRect(localClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 5017slotRect = UIElement.RoundLayoutRect(slotRect, dpi.DpiScaleX, dpi.DpiScaleY); 5026localRect = UIElement.RoundLayoutRect(localRect, dpi.DpiScaleX, dpi.DpiScaleY); 5147internal static void InternalSetLayoutTransform(UIElement element, Transform layoutTransform) 5808UIElement uiElement = this._templatedParent as UIElement; 6093UIElement uiElement = modelTreeNode as UIElement; 6403private UIElement _templateChild; // Non-null if this FE has a child that was created as part of a template. 6409internal static DependencyObjectType UIElementDType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
src\Framework\System\Windows\FrameworkTemplate.cs (3)
772else if (dependencyProperty == UIElement.UidProperty) 1162UIElement rootElement = rootObject as UIElement;
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (2)
375UIElement.SynchronizeForceInheritProperties(null, this, null, _parent); 379UIElement.SynchronizeForceInheritProperties(null, this, null, oldParent);
src\Framework\System\Windows\Generated\FrameworkElement.cs (2)
373UIElement.SynchronizeForceInheritProperties(this, null, null, _parent); 377UIElement.SynchronizeForceInheritProperties(this, null, null, oldParent);
src\Framework\System\Windows\Ink\Events.cs (9)
138private List<UIElement> _elements; 145internal InkCanvasSelectionChangingEventArgs(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements) 156List<UIElement> elements = 157new List<UIElement>(selectedElements); 190public void SetSelectedElements(IEnumerable<UIElement> selectedElements) 197List<UIElement> elements = 198new List<UIElement>(selectedElements); 207public ReadOnlyCollection<UIElement> GetSelectedElements() 209return new ReadOnlyCollection<UIElement>(_elements);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (37)
551public FocusVisualAdorner(UIElement adornedElement, Style focusVisualStyle) : base(adornedElement) 565public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent, IContentHost contentHostParent, Style focusVisualStyle) 604((UIElement)GetVisualChild(0)).Measure(constraint); 679((UIElement)GetVisualChild(0)).Arrange(new Rect(new Point(), finalSize)); 806private UIElement _adorderChild; 811internal static UIElement GetParentUIElementFromContentElement(ContentElement ce) 817private static UIElement GetParentUIElementFromContentElement(ContentElement ce, ref IContentHost ichParent) 831UIElement eParent = parent as UIElement; 841UIElement uielement = visualParent as UIElement; 939UIElement parentUIElement = GetParentUIElementFromContentElement(fce, ref parentICH); 1527UIElement uiElement = visual as UIElement; 1557if (current is UIElement || current is UIElement3D) 1571DependencyObject parentAsUIElement = parent as UIElement; 1614if (current is UIElement || current is UIElement3D) 1632DependencyObject parentAsUIElement = parent as UIElement; 1726if (current is UIElement || current is UIElement3D) 1741DependencyObject uiElement = e as UIElement; 1794if (current is UIElement || current is UIElement3D) 1807DependencyObject uiElement = e as UIElement; 2019UIElement uie = element as UIElement; 2461UIElement uiElement = element as UIElement; 2499UIElement parentUIElement = GetParentUIElementFromContentElement(ce, ref parentICH); 2822UIElement sourceUIElement = sourceElement as UIElement; 2832UIElement targetUIElement = targetElement as UIElement; 2865UIElement uiElement = sender as UIElement; 2881if (sender is UIElement) 2882((UIElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus)); 3094ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3126currentRectElement as UIElement,
src\Framework\System\Windows\Interop\ActiveXHost.cs (2)
85invalidatorMap[UIElement.VisibilityProperty] = new PropertyInvalidator(OnVisibilityInvalidated); 1065args.Target = (UIElement)sender;
src\Framework\System\Windows\Interop\HwndHost.cs (1)
761/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (7)
55return typeof(System.Windows.UIElement); 57return typeof(System.Windows.UIElement); 59return typeof(System.Windows.UIElement); 61return typeof(System.Windows.UIElement); 63return typeof(System.Windows.UIElement); 78case 3: assembly = typeof(System.Windows.UIElement).Assembly; break; 786case 694: t = () => typeof(UIElement); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (53)
3899Type type = typeof(System.Windows.UIElement); 3900DependencyProperty dp = System.Windows.UIElement.ClipToBoundsProperty; 3902this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 3916Type type = typeof(System.Windows.UIElement); 3917DependencyProperty dp = System.Windows.UIElement.FocusableProperty; 3919this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 3933Type type = typeof(System.Windows.UIElement); 3934DependencyProperty dp = System.Windows.UIElement.IsEnabledProperty; 3936this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 3950Type type = typeof(System.Windows.UIElement); 3951DependencyProperty dp = System.Windows.UIElement.RenderTransformProperty; 3953this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 3967Type type = typeof(System.Windows.UIElement); 3968DependencyProperty dp = System.Windows.UIElement.VisibilityProperty; 3970this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 4005typeof(System.Windows.UIElement), // type 4009bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.AdornedElementPlaceholder)target).Child = (System.Windows.UIElement)value; }; 4022typeof(System.Windows.UIElement), // type 4026bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.AdornerDecorator)target).Child = (System.Windows.UIElement)value; }; 4073typeof(System.Windows.UIElement), // type 4077bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.BlockUIContainer)target).Child = (System.Windows.UIElement)value; }; 4124typeof(System.Windows.UIElement), // type 4128bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Border)target).Child = (System.Windows.UIElement)value; }; 4141typeof(System.Windows.UIElement), // type 4145bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Child = (System.Windows.UIElement)value; }; 4400typeof(System.Windows.UIElement), // type 4404bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Decorator)target).Child = (System.Windows.UIElement)value; }; 4811typeof(System.Windows.UIElement), // type 4815bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.InkPresenter)target).Child = (System.Windows.UIElement)value; }; 4828typeof(System.Windows.UIElement), // type 4832bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.InlineUIContainer)target).Child = (System.Windows.UIElement)value; }; 6129typeof(System.Windows.UIElement), // type 6133bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Viewbox)target).Child = (System.Windows.UIElement)value; }; 6768Type type = typeof(System.Windows.UIElement); 6769DependencyProperty dp = System.Windows.UIElement.UidProperty; 6771this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7727Type type = typeof(System.Windows.UIElement); 7728DependencyProperty dp = System.Windows.UIElement.RenderTransformOriginProperty; 7730this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7765typeof(System.Windows.UIElement), // type 7769bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Bullet = (System.Windows.UIElement)value; }; 7778Type type = typeof(System.Windows.UIElement); 7779DependencyProperty dp = System.Windows.UIElement.SnapsToDevicePixelsProperty; 7781this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7795Type type = typeof(System.Windows.UIElement); 7797this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7803bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.UIElement)target).CommandBindings; }; 7812Type type = typeof(System.Windows.UIElement); 7814this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType 7820bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.UIElement)target).InputBindings; }; 8054Type type = typeof(System.Windows.UIElement); 8055DependencyProperty dp = System.Windows.UIElement.AllowDropProperty; 8057this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10689typeof(System.Windows.UIElement),
src\Framework\System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (1)
35UIElement.AddHandler(dObject, _member.RoutedEvent, handler);
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
112case 3: assembly = new Baml6Assembly(typeof(System.Windows.UIElement).Assembly); break;
src\Framework\System\Windows\Markup\BamlRecordReader.cs (8)
1135((element is UIElement) || 2881UIElement uiel = element as UIElement; 3355UIElement element = CurrentContext.ObjectData as UIElement; 3358SetDependencyValue(element, UIElement.UidProperty, bamlDefAttributeRecord.Value); 4484UIElement uiElement = element as UIElement;
src\Framework\System\Windows\Markup\KnownTypes.cs (6)
1945return System.Windows.UIElement.ClipToBoundsProperty; 1947return System.Windows.UIElement.FocusableProperty; 1949return System.Windows.UIElement.IsEnabledProperty; 1951return System.Windows.UIElement.RenderTransformProperty; 1953return System.Windows.UIElement.VisibilityProperty; 6238case KnownElements.UIElement: t = typeof(System.Windows.UIElement); break;
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (1)
569if (dependencyProperty == UIElement.UidProperty)
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (2)
97UIElement uiElement = args.Instance as UIElement;
src\Framework\System\Windows\Markup\XamlReader.cs (2)
281UIElement uiElement = args.Instance as UIElement;
src\Framework\System\Windows\Navigation\NavigationService.cs (2)
2555UIElement navigatorHost = INavigatorHost as UIElement;
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
873/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
src\Framework\System\Windows\SizeChangedEventArgs.cs (3)
20/// The SizeChangeInfo that is used by <seealso cref="UIElement.OnRenderSizeChanged"/>. 22internal SizeChangedEventArgs(UIElement element, SizeChangedInfo info) 83private UIElement _element;
src\Framework\System\Windows\StyleHelper.cs (2)
1940internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1949UIElement child,
src\Framework\System\Windows\SystemResources.cs (1)
527_presentationCore = typeof(UIElement).Assembly;
src\Framework\System\Windows\Window.cs (7)
110UIElement.ManipulationCompletedEvent, 114UIElement.ManipulationInertiaStartingEvent, 1805/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>) 1924UIElement child = this.GetVisualChild(0) as UIElement; 3476UIElement child = this.GetVisualChild(0) as UIElement;
src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
131internal static Point ClientToScreen(UIElement relativeTo, Point point)
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
409UIElement child = Child; 463UIElement child = Child;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
230UIElement child = Child;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
179UIElement child = Child; 224UIElement child = Child;
PresentationFramework.Classic (4)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
664UIElement child = Child; 713UIElement child = Child;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
179UIElement child = Child; 224UIElement child = Child;
PresentationFramework.Luna (4)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
326UIElement child = Child; 380UIElement child = Child;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
179UIElement child = Child; 224UIElement child = Child;
PresentationFramework.Royale (4)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
284UIElement child = Child; 338UIElement child = Child;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
179UIElement child = Child; 224UIElement child = Child;
System.Activities.Core.Presentation (186)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (2)
269UIElement box = (UIElement)sender;
System\Activities\Core\Presentation\FlowchartConnectionPointsAdorner.cs (1)
22public FlowchartConnectionPointsAdorner(UIElement adornedElement, List<ConnectionPoint> connectionPointsToShow, bool isParentShapeSelected, bool isTextRightToLeft)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (2)
517UIElement deleteElement = (UIElement)(this.modelElement[shapeModelItem]);
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (11)
25bool IsVisualHit(UIElement visual, UIElement reference, Point point) 119ConnectionPoint FindBestMatchDestConnectionPoint(ConnectionPoint sourceConnectionPoint, UIElement dest, out string errorMessage) 164void RemoveAdorner(UIElement adornedElement, Type adornerType) 202ConnectionPoint ConnectionPointHitTest(UIElement element, Point hitPoint) 212internal int NumberOfIncomingLinks(UIElement designer) 217List<Connector> GetAttachedConnectors(UIElement shape) 234List<Connector> GetOutGoingConnectors(UIElement shape) 248List<Connector> GetInComingConnectors(UIElement shape) 262static List<ConnectionPoint> GetAllConnectionPoints(UIElement shape) 283Point SnapVisualToGrid(UIElement element, Point location, Point shapeAnchorPoint, bool isAnchorPointValid)
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (17)
358UIElement oldShape = this.flowNodeToUIElement[propertyChange.Owner]; 381List<UIElement> viewsAdded = new List<UIElement>(); 398List<Tuple<UIElement, UIElement, ModelItem>> elem2elemConnections = new List<Tuple<UIElement, UIElement, ModelItem>>(); 399List<Tuple<ConnectionPoint, UIElement, ModelItem>> point2elemConnections = new List<Tuple<ConnectionPoint, UIElement, ModelItem>>(); 501foreach (UIElement view in viewsAdded) 525List<Tuple<UIElement, UIElement, ModelItem>> elem2elemConnections, 526List<Tuple<ConnectionPoint, UIElement, ModelItem>> point2elemConnections) 563void DeleteShapeVisual(UIElement deleteShape) 761Connector CreateLink(ConnectionPoint sourceConnectionPoint, UIElement dest, ModelItem linkModelItem) 789Connector CreateLink(UIElement source, UIElement dest, ModelItem linkModelItem)
System\Activities\Core\Presentation\FlowchartDesigner.ModelChanges.cs (5)
308internal bool CreateLinkGesture(ConnectionPoint sourceConnectionPoint, UIElement dest, Point mouseLocation, out string errorMessage, bool isLinkValidDueToLinkMove, IFlowSwitchLink caseKey) 330internal bool CreateLinkGesture(ConnectionPoint sourceConnectionPoint, UIElement dest, out string errorMessage, bool isLinkValidDueToLinkMove, IFlowSwitchLink caseKey) 341internal bool CreateLinkGesture(UIElement source, ConnectionPoint destConnectionPoint, Point mouseLocation, out string errorMessage, bool isLinkValidDueToLinkMove, IFlowSwitchLink caseKey) 364internal bool CreateLinkGesture(UIElement source, UIElement dest, out string errorMessage, IFlowSwitchLink caseKey)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (59)
58internal Dictionary<ModelItem, UIElement> modelElement; 63Dictionary<ModelItem, UIElement> flowNodeToUIElement; 74UIElement lastConnectionPointMouseUpElement = null; 103this.modelElement = new Dictionary<ModelItem, UIElement>(); 104this.flowNodeToUIElement = new Dictionary<ModelItem, UIElement>(); 284foreach (UIElement element in this.modelElement.Values) 360public UIElement StartSymbol { get; set; } 408UIElement element = this.modelElement[shapeModelItem]; 450bool endLinkCreation = !IsVisualHit(sender as UIElement, sender as UIElement, e.GetPosition(sender as IInputElement)); 529adorner = new FlowchartConnectionPointsAdorner((UIElement)sender, ConnectionPointsToShow((UIElement)sender, this.ModelItem), false, this.IsRightToLeft); 545List<ConnectionPoint> ConnectionPointsToShow(UIElement element, ModelItem model) 638RemoveAdorner(sender as UIElement, typeof(ConnectionPointsAdorner)); 656this.ViewStateService.StoreViewState(storageModelItem, shapeSize, ((UIElement)sender).DesiredSize); 663UIElement srcElement = ((Adorner)sender).AdornedElement as UIElement; 671UIElement adornedElement = ((Adorner)sender).AdornedElement as UIElement; 679UIElement dest = ((Adorner)sender).AdornedElement as UIElement; 733Fx.Assert(sender is UIElement, "Sender should be of type UIElement"); 774UIElement newViewElement = null; 976Connector GetConnectorViewState(UIElement source, UIElement dest, ModelItem linkModelItem, ConnectionPoint sourceConnectionPoint) 1107ConnectionPoint CreateConnectionPoint(UIElement element, double widthFraction, double heightFraction, EdgeLocation location) 1117void PopulateConnectionPoints(UIElement element, ModelItem model) 1188void SetFlowElementModelItem(UIElement view, ModelItem model) 1212UIElement ProcessAndGetModelView(ModelItem model) 1215UIElement container; 1261void GetSrcDestConnectionPoints(UIElement source, UIElement dest, out ConnectionPoint srcConnPoint, out ConnectionPoint destConnPoint, out string errorMessage) 1293ConnectionPoint ClosestDestConnectionPoint(ConnectionPoint sourceConnectionPoint, UIElement dest, out string errorMessage) 1310ConnectionPoint ClosestSrcConnectionPoint(UIElement src, ConnectionPoint destConnectionPoint, out string errorMessage) 1334ConnectionPoint FindFlowDecisionSrcConnectionPoint(UIElement decisionDesigner, out string errorMessage) 1442void StoreShapeViewState(UIElement movedElement, Point newLocation) 1469void PerformInternalMove(UIElement movedElement, Point newPoint, Point? shapeAnchorPoint, 1501void RerouteAttachedConnectors(UIElement movedElement) 1724UIElement view = (UIElement)(modelItemDroppedFromToolBox.View); 2008UIElement shapeToMove = this.modelElement[selectedModelItem]; 2042UIElement destElement = VisualTreeUtils.FindVisualAncestor<VirtualizedContainerService.VirtualizingContainer>(e.OriginalSource as DependencyObject); 2201private ConnectionPoint GetSourceConnectionPointForAutoConnect(UIElement designer, EdgeLocation edgeLocation) 2212internal static ConnectionPoint GetDestinationConnectionPointForAutoConnect(UIElement dest, ConnectionPoint srcConnPoint) 2241private ModelItem GetSourceModelItemForAutoConnect(UIElement sourceElement) 2275public void DoAutoConnect(DragEventArgs e, UIElement targetElement, AutoConnectDirections direction) 2277UIElement sourceElement = targetElement; 2331public AutoConnectDirections GetDirectionsAllowed(DragEventArgs e, UIElement targetElement) 2403internal static int GetConnectionPointIndex(UIElement element, ConnectionPoint pnt) 2409internal static ConnectionPoint GetConnectionPointFromIndex(UIElement element, int index) 2419internal UIElement GetView(ModelItem item) 2445UIElement srcDesigner = FreeFormPanel.GetSourceConnectionPoint(connector).ParentDesigner; 2446UIElement destDesigner = FreeFormPanel.GetDestinationConnectionPoint(connector).ParentDesigner; 2534private ConnectionPoint GetEmptyEdgeMidConnectionPointNotOfType(UIElement designer, EdgeLocation edgeLocation, ConnectionPointKind invalidType) 2550private ConnectionPoint GetDestinationConnectionPointForAutoSplit(ConnectionPoint srcConnPoint, UIElement destDesigner) 2565private ConnectionPoint GetSourceConnectionPointForAutoSplit(ConnectionPoint destConnPoint, UIElement srcDesigner) 2580private void MeasureView(UIElement view) 2747UIElement srcElem = designer.GetView(this.SrcModelItem); 2748UIElement desElem = designer.GetView(this.DestModelItem);
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (2)
22public FlowchartExpressionAdorner(UIElement adornedElement) 66public static string GetExpressionString(UIElement adornedElement)
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (2)
213if (GetEmptyConnectionPoints(sourceStateItem.View as UIElement).Count < 1) 241if (GetEmptyConnectionPoints(destinationStateItem.View as UIElement).Count < emptyConnectionPointsCountNeeded)
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (3)
202internal ConnectorCreationResult CreateConnectorGesture(ConnectionPoint sourceConnectionPoint, UIElement dest, Connector referenceConnector, bool isConnectorStartMoved) 221internal ConnectorCreationResult CreateConnectorGesture(UIElement source, ConnectionPoint destConnectionPoint, Connector referenceConnector, bool isConnectorStartMoved) 240void StoreShapeLocationViewState(UIElement view, Point newLocation)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (17)
102static bool IsVisualHit(UIElement visual, UIElement reference, Point point) 124static Point SnapVisualToGrid(UIElement element, Point location, Point shapeAnchorPoint, bool isAnchorPointValid) 168static IEnumerable<Adorner> RemoveAdorner(UIElement adornedElement, Type adornerType) 192internal static List<Connector> GetAttachedConnectors(UIElement shape) 212static List<Connector> GetOutgoingConnectors(UIElement shape) 226static List<Connector> GetIncomingConnectors(UIElement shape) 240static ConnectionPoint ConnectionPointHitTest(UIElement element, Point hitPoint) 247static ConnectionPoint GetConnectionPoint(UIElement element, Point location) 285internal static UIElement GetStateView(ModelItem stateModelItem) 295static ModelItem GetModelItemFromView(UIElement element) 366static void GetEmptySrcDestConnectionPoints(UIElement source, UIElement dest, out ConnectionPoint srcConnPoint, out ConnectionPoint destConnPoint) 378internal static List<ConnectionPoint> GetEmptyConnectionPoints(UIElement designer) 390static ConnectionPoint GetClosestSrcConnectionPoint(UIElement src, ConnectionPoint destConnectionPoint) 401static ConnectionPoint GetClosestDestConnectionPoint(ConnectionPoint sourceConnectionPoint, UIElement dest) 411static ConnectionPoint GetSrcConnectionPointForSharedTrigger(UIElement sourceDesigner, ModelItem connectorModelItem)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (63)
45Dictionary<ModelItem, UIElement> modelItemToUIElement; 73UIElement lastConnectionPointMouseUpElement = null; 87UIElement initialNode = null; 189this.modelItemToUIElement = new Dictionary<ModelItem, UIElement>(); 422foreach (UIElement element in this.modelItemToUIElement.Values) 503void AddInitialNodeConnector(UIElement initialStateView) 551UIElement ProcessAndGetModelView(ModelItem model) 553UIElement element; 604List<UIElement> viewsAdded = new List<UIElement>(); 616foreach (UIElement view in viewsAdded) 627foreach (UIElement view in viewsAdded) 645void RemoveStateVisual(UIElement removedStateDesigner) 649List<UIElement> removedStateDesigners = new List<UIElement>(); 653foreach (UIElement designer in removedStateDesigners) 712UIElement sourceDesigner = this.modelItemToUIElement[sourceState]; 713UIElement destinationDesigner = this.modelItemToUIElement[destinationState]; 790if (item != null && (item.View == null || DragDropHelper.GetCompositeView((WorkflowViewElement)item.View) != (UIElement)this)) 792UIElement element; 821UIElement source, 822UIElement dest, 914PointCollection CreatePointCollectionForAutoConnectOrAutoSplit(UIElement sourceDesigner, 915UIElement destinationDesigner, 970UIElement sourceDesigner, 971UIElement destinationDesigner, 1052ConnectionPoint CreateConnectionPoint(UIElement element, double widthFraction, double heightFraction, EdgeLocation location, ConnectionPointKind type) 1063void PopulateConnectionPoints(UIElement view) 1090List<ConnectionPoint> ConnectionPointsToShow(UIElement element) 1138private void RemoveConnectionPointsAdorner(UIElement adornedElement) 1158private List<ConnectionPoint> GetAvailableConnectionPoint(UIElement designer) 1230UIElement senderElement = sender as UIElement; 1256void AddConnectionPointsAdorner(UIElement element) 1294this.RemoveConnectionPointsAdorner(sender as UIElement); 1316this.ViewStateService.StoreViewState(storageModelItem, ShapeSizeViewStateKey, ((UIElement)sender).DesiredSize); 1463UIElement srcElement = ((Adorner)sender).AdornedElement as UIElement; 1480UIElement adornedElement = ((Adorner)sender).AdornedElement as UIElement; 1486UIElement dest = ((Adorner)sender).AdornedElement as UIElement; 1516Fx.Assert(sender is UIElement, "Sender should be of type UIElement"); 1535UIElement view = sender as UIElement; 1552UIElement newViewElement = null; 1688bool endLinkCreation = !IsVisualHit(sender as UIElement, sender as UIElement, e.GetPosition(sender as IInputElement)); 1782void OffsetConnectorViewState(UIElement view, Point oldLocation, Point newLocation, bool offsetNonContainedConnectors) 1951UIElement view = null; 2103UIElement shapeToMove = this.modelItemToUIElement[selectedModelItem]; 2197foreach (UIElement element in stateMachineContainer.panel.Children) 2247void PerformInternalMove(UIElement movedElement, Point newPoint, Point? shapeAnchorPoint, AutoConnectDirections autoConnectDirection, Connector connectorToSplit) 2297public void StoreAttachedConnectorViewStates(UIElement element) 2325public void DoAutoConnect(DragEventArgs e, UIElement targetElement, AutoConnectDirections direction) 2327UIElement sourceElement = targetElement; 2363private ModelItem DoAutoConnect(UIElement sourceElement, ModelItem droppedModelItem, Transition transitionToCopy, int insertIndex = InvalidIndex) 2405public AutoConnectDirections GetDirectionsAllowed(DragEventArgs e, UIElement targetElement) 2447private ConnectionPoint GetSourceConnectionPointForAutoConnect(UIElement designer, EdgeLocation edgeLocation) 2453static ConnectionPoint GetConnectionPointClosestToEdgeMidPoint(UIElement designer, List<ConnectionPoint> connectionPoints, EdgeLocation edgeLocation) 2481private static ModelItem TryGetModelItemFromView(UIElement sourceElement) 2534UIElement srcElement = editor.modelItemToUIElement[this.SrcModelItem]; 2535UIElement desElement = editor.modelItemToUIElement[this.DstModelItem];
System\Activities\Core\Presentation\StateMachineConnetionPointsAdorner.cs (2)
21public StateMachineConnectionPointsAdorner(UIElement adornedElement, List<ConnectionPoint> connectionPointsToShow, bool isParentShapeSelected) 71UIElement target = this.AdornedElement;
System.Activities.Presentation (188)
System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (2)
167UIElement defaultAnnotationIndicator = this.Template.FindName("AnnotationIndicator_570C5205_7195_4d4e_953A_8E4B57EF7E7F", this) as UIElement;
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (3)
19private UIElement content; 21public AnnotationAdorner(UIElement adornedElement) 32internal UIElement Content
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (1)
171this.annotationAdorner.Content = this.FloatingAnnotation as UIElement;
System.Activities.Presentation\System\Activities\Presentation\Annotations\FloatingAnnotationView.xaml.cs (4)
36DependencyPropertyDescriptor descriptor = DependencyPropertyDescriptor.FromProperty(UIElement.IsMouseOverProperty, typeof(UIElement)); 42DependencyPropertyDescriptor descriptor = DependencyPropertyDescriptor.FromProperty(UIElement.IsMouseOverProperty, typeof(UIElement));
System.Activities.Presentation\System\Activities\Presentation\Annotations\UIElementToAnnotationIndicatorAdapter.cs (6)
15private UIElement element; 17public UIElementToAnnotationIndicatorAdapter(UIElement element) 31DependencyPropertyDescriptor descriptor = DependencyPropertyDescriptor.FromProperty(UIElement.IsMouseOverProperty, typeof(UIElement)); 37DependencyPropertyDescriptor descriptor = DependencyPropertyDescriptor.FromProperty(UIElement.IsMouseOverProperty, typeof(UIElement));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\HiddenUIElementAutomationPeer.cs (1)
12public HiddenUIElementAutomationPeer(UIElement owner)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (5)
63UIElement.FocusableProperty.OverrideMetadata(typeof(CategoryList), new FrameworkPropertyMetadata(false)); 651UIElement element = null; 667element = PropertySelection.FindNeighborSelectionStop<UIElement>(this, SearchDirection.Next); 911internal UIElement FindCategoryEditorVisual(CategoryEditor editor, ModelCategoryEntry category, out bool pendingGeneration) 920UIElement editorVisual = null;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CiderCategoryContainer.cs (5)
268public UIElement ContainerFromEditor(CategoryEditor editor, out bool pendingGeneration) 278UIElement categoryEditor = this.BasicCategoryEditorsContainer.ItemContainerGenerator.ContainerFromItem(editor) as UIElement; 287UIElement categoryEditor = this.AdvancedCategoryEditorsContainer.ItemContainerGenerator.ContainerFromItem(editor) as UIElement;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (2)
112UIElement item = VisualTreeHelper.GetChild(panel, 0) as UIElement;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\IPropertyInspector.cs (4)
29public static readonly DependencyProperty OwningPropertyInspectorElementProperty = DependencyProperty.RegisterAttached("OwningPropertyInspectorElement", typeof(UIElement), typeof(PropertyInspectorHelper), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.Inherits)); 66public static void SetOwningPropertyInspectorElement(DependencyObject dependencyObject, UIElement value) 80public static UIElement GetOwningPropertyInspectorElement(DependencyObject dependencyObject) 86return (UIElement)dependencyObject.GetValue(PropertyInspectorHelper.OwningPropertyInspectorElementProperty);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (21)
99private UIElement ActiveManagedFocusScope 105return this.activeManagedFocusScope.Target as UIElement; 156UIElement newElementFocus = newFocus as UIElement; 159UIElement focusScope = FocusManager.GetFocusScope(newElementFocus) as UIElement; 257FocusScopeManager.Instance.UpdateFocusScopePriorityForElement(d as UIElement, (int)e.OldValue, (int)e.NewValue); 262UIElement scope = d as UIElement; 280private void UpdateFocusScopePriorityForElement(UIElement element, int oldValue, int newValue) 299UIElement newFocusElement = newFocus as UIElement; 326private void OnScopeKeyboardFocusChanged(UIElement focusScope, int priority) 343UIElement curScope = (UIElement)curRef.Target; 361private bool IsFocusScopeManaged(UIElement focusScope, int priority, int priorityStartIndex) 368UIElement curTarget = (UIElement)curRef.Target; 405if (FocusScopeManager.GetFocusScopePriority((UIElement)curRef.Target) >= priority) 419private void InsertScope(int index, UIElement scope) 424private void RemoveScope(UIElement scope)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (2)
187UIElement child = InternalChildren[i]; 221UIElement child = InternalChildren[i];
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogHost.cs (1)
45public static void AttachOpenDialogHandlers(UIElement dialogRoot)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueEditorCommandHandler.cs (2)
28private UIElement _commandHost; 32public PropertyValueEditorCommandHandler(UIElement commandHost)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (7)
279target.AddHandler(UIElement.MouseDownEvent, new MouseButtonEventHandler(OnSelectionStopDoubleClickTargetMouseDown), false); 286target.RemoveHandler(UIElement.MouseDownEvent, new MouseButtonEventHandler(OnSelectionStopDoubleClickTargetMouseDown)); 438target.AddHandler(UIElement.KeyDownEvent, new KeyEventHandler(OnKeyDownTargetKeyDown), false); 445target.RemoveHandler(UIElement.KeyDownEvent, new KeyEventHandler(OnKeyDownTargetKeyDown)); 600isVisible = VisualTreeUtils.IsVisible(element as UIElement); 645if (!VisualTreeUtils.IsVisible(child as UIElement)) 687return (GetSelectionStop(element) != null) && typeof(T).IsAssignableFrom(element.GetType()) && VisualTreeUtils.IsVisible(element as UIElement);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (9)
158public static T FindFocusableElement<T>(T reference) where T : UIElement 201public static T FindFocusableParent<T>(UIElement reference) where T : UIElement 205UIElement parent = VisualTreeHelper.GetParent(reference) as UIElement; 213parent = VisualTreeHelper.GetParent(parent) as UIElement; 256public static bool IsVisible(UIElement element) 258UIElement parent = element; 266parent = VisualTreeHelper.GetParent(parent) as UIElement;
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (2)
277UIElement breadCrumbRootView = ((DesignerView)context.Services.GetService<DesignerView>()).RootDesigner; 394UIElement breadcrumbRoot = childElement.Context.Services.GetService<DesignerView>().RootDesigner;
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (6)
34DependencyProperty.RegisterAttached("DragSource", typeof(UIElement), typeof(DragDropHelper), new UIPropertyMetadata(null)); 57public static void SetCompositeView(WorkflowViewElement workflowViewElement, UIElement dragSource) 71public static UIElement GetCompositeView(WorkflowViewElement workflowViewElement) 77return (UIElement)workflowViewElement.GetValue(DragDropHelper.DragSourceProperty); 825public ViewElementDragShadow(UIElement owner, WorkflowViewElement viewElement, Point offset, double scaleFactor) 844public ViewElementDragShadow(UIElement owner, IEnumerable<WorkflowViewElement> viewElements, Point offset, double scaleFactor)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (1)
42public AutoConnectAdorner(UIElement adornedElement, FreeFormPanel panel, AutoConnectDirections directions)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (7)
23private UIElement currentTarget = null; 30internal UIElement CurrentTarget 34UIElement target = this.currentTarget; 235UIElement target = this.FindTarget(e.GetPosition(this.panel), draggedView, out direction) as UIElement; 245UIElement adornedElement = this.CurrentTarget; 313private void AddDropTargets(DragEventArgs e, UIElement adornedElement, AutoConnectDirections directions)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitAdorner.cs (1)
19public AutoSplitAdorner(UIElement adornedElement)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitHelper.cs (4)
18UIElement srcShape = FreeFormPanel.GetSourceConnectionPoint(connector).ParentDesigner; 19UIElement destShape = FreeFormPanel.GetDestinationConnectionPoint(connector).ParentDesigner; 56UIElement srcShape = FreeFormPanel.GetSourceConnectionPoint(connector).ParentDesigner; 57UIElement destShape = FreeFormPanel.GetDestinationConnectionPoint(connector).ParentDesigner;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (2)
16private UIElement parentDesigner; 84public UIElement ParentDesigner
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointsAdorner.cs (1)
28public ConnectionPointsAdorner(UIElement adornedElement, List<ConnectionPoint> connectionPointsToShow, bool isParentShapeSelected)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (6)
120public UIElement SourceShape 134public UIElement DestinationShape 251private void AddAutoSplitAdorner(UIElement shape) 258private void RemoveAutoSplitAdorner(UIElement shape) 303UIElement sourceDesigner = VirtualizedContainerService.TryGetVirtualizedElement(FreeFormPanel.GetSourceConnectionPoint(this.Owner).ParentDesigner); 305UIElement destinationDesigner = VirtualizedContainerService.TryGetVirtualizedElement(FreeFormPanel.GetDestinationConnectionPoint(this.Owner).ParentDesigner);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorCreationAdorner.cs (1)
17public ConnectorCreationAdorner(UIElement adornedElement, List<Point> linkPoints)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (1)
587public EditPointAdorner(ConnectorEditor cEditor, UIElement adornedElement, bool shouldDrawLines)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (11)
58UIElement destElement = destConnPoint.ParentDesigner; 66UIElement srcElement = srcConnPoint.ParentDesigner; 102UIElement srcElement = srcConnPoint.ParentDesigner; 103UIElement destElement = destConnPoint.ParentDesigner; 120static void AddExcludedAndSrcDestRects(FreeFormPanel outmostPanel, FreeFormPanel panel, Point srcPoint, Point destPoint, UIElement srcElement, UIElement destElement, List<Rect> excludedRects, List<Rect> srcDestRects) 122foreach (UIElement child in panel.Children) 150UIElement element = VirtualizedContainerService.TryGetVirtualizedElement(child); 163internal static Point[] Route(FreeFormPanel panel, Point srcPoint, Point destPoint, List<Point> srcEdge, List<Point> destEdge, UIElement srcElement, UIElement destElement) 172foreach (UIElement child in panel.Children)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (5)
132internal UIElement CurrentAutoConnectTarget 215foreach (UIElement element in this.Children) 334((UIElement)Children[i]).Arrange(new Rect(pt, size)); 339((UIElement)Children[i]).Arrange(new Rect(pt, size)); 404foreach (UIElement child in Children)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\IAutoConnectContainer.cs (2)
16void DoAutoConnect(DragEventArgs e, UIElement targetElement, AutoConnectDirections direction); 18AutoConnectDirections GetDirectionsAllowed(DragEventArgs e, UIElement targetElement);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (3)
746if (null != this.itemToFocus.View && ((UIElement)this.itemToFocus.View).IsVisible) 793var firstVisibleItem = visualItems.FirstOrDefault(p => null != p.View && ((UIElement)p.View).IsVisible); 1001if (null == ModelItemFocusHelper.focusTicket && (null == this.itemToFocus.View || !((UIElement)this.itemToFocus.View).IsVisible))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
198designerView.AddHandler(UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(this.OnDesignerSurfaceMouseLeftButtonDown), true);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (2)
1540var currentFocus = (UIElement)Keyboard.FocusedElement;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (8)
422this.LoadContextMenu((UIElement)target, (e.CursorLeft < 0 && e.CursorTop < 0)); 426void LoadContextMenu(UIElement sender, bool openedByKeyboard) 1175UIElement focusedElement = Keyboard.FocusedElement as UIElement; 1262void FocusShellBarDesigner(UIElement designer) 1339UIElement GetDesignerToFocus() 1344return (UIElement)selection.PrimarySelection.View; 1354UIElement toFocus = this.breadCrumbListBox;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (15)
52DependencyProperty.Register("RootDesigner", typeof(UIElement), typeof(DesignerView), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DesignerView.OnRootDesignerChanged))); 106foreach (UIElement element in this.designerExtensionSurface.Children) 266this.AddHandler(UIElement.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(this.OnWorkflowElementGotKeyboardFocus), true); 267this.AddHandler(UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(this.OnDesignerSurfaceMouseLeftButtonDown), true); 268this.scrollViewer.AddHandler(UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(this.OnScrollViewerMouseLeftButtonDown), true); 297public UIElement RootDesigner 299get { return (UIElement)GetValue(RootDesignerProperty); } 343internal UIElement ScrollableContent 941UIElement first = (UIElement)breadcrumbItems.ItemContainerGenerator.ContainerFromIndex(0); 943UIElement last = (UIElement)breadcrumbItems.ItemContainerGenerator.ContainerFromIndex(breadcrumbItems.Items.Count - 1); 1014UIElement uiElement = button.Tag as UIElement; 1309private void UpdateStatusBarItemVisibility(StatusBarItem item, bool visible, UIElement element)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (3)
321foreach (UIElement item in this.Children) 374foreach (UIElement child in this.Children) 404foreach (UIElement item in this.Children)
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (1)
18public SearchToolTipAdorner(UIElement adornedElement, DesignerView designerView, string text)
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (6)
219public UIElement GetContainer(ModelItem modelItem, ICompositeView sourceContainer) 271DragDropHelper.SetCompositeView(itemView, (UIElement)sourceContainer); 287UIElement designerRoot; 458UIElement DesignerRoot 504internal static UIElement TryGetVirtualizedElement(UIElement element)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (7)
270public UIElement View 278public UIElement PropertyInspectorView 298public UIElement OutlineView 544view.Children.Add((UIElement)viewManager.View); 637UIElement oldFocus = null; 641oldFocus = FocusManager.GetFocusedElement(this.propertyInspector) as UIElement; 646oldFocus = FocusManager.GetFocusedElement(this.view) as UIElement;
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.Helpers.cs (2)
105if (!this.view.Children.Contains((UIElement)this.viewManager.View)) 108this.view.Children.Add((UIElement)this.viewManager.View);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (4)
442Keyboard.Focus((UIElement)this.Item.View); 454UIElement view = (UIElement)(this.Item.View); 484UIElement itemView = containerService.GetContainer(this.Item, this);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (8)
249UIElement itemView = containerService.GetContainer((ModelItem)e.NewItems[0], this); 250this.panel.Items.Insert(itemViewIndex, itemView as UIElement); 259UIElement view = (UIElement)insertedItem.View; 399UIElement itemView = containerService.GetContainer(item, this); 400this.panel.Items.Add(itemView as UIElement); 637UIElement container = DragDropHelper.GetCompositeView(view); 764dropTarget = VisualTreeUtils.FindFocusableParent<WorkflowViewElement>((UIElement)e.OriginalSource);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (3)
129UIElement lastActivationElement; 553this.lastActivationElement = e.OriginalSource as UIElement; 709this.lastActivationElement = e.OriginalSource as UIElement;