MS\Internal\LayoutDump.cs (16)
85internal static void DumpLayoutTreeToFile(string tagName, UIElement root, string fileName)
102internal static string DumpLayoutTreeToString(string tagName, UIElement root)
126internal static void DumpLayoutTree(XmlTextWriter writer, string tagName, UIElement root)
168internal delegate bool DumpCustomUIElement(XmlTextWriter writer, UIElement element, bool uiElementsOnly);
200if (visual is UIElement)
202DumpUIElement(writer, (UIElement)visual, parent, false);
241private static void DumpUIElement(XmlTextWriter writer, UIElement element, Visual parent, bool uiElementsOnly)
356List<UIElement> uiElements = new List<UIElement>();
418internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements)
425if (child is UIElement)
427uiElements.Add((UIElement)(child));
461private static bool DumpDocumentPageView(XmlTextWriter writer, UIElement element, bool uiElementsOnly)
477private static bool DumpText(XmlTextWriter writer, UIElement element, bool uiElementsOnly)
510private static bool DumpFlowDocumentScrollViewer(XmlTextWriter writer, UIElement element, bool uiElementsOnly)
536private static bool DumpFlowDocumentView(XmlTextWriter writer, UIElement element, bool uiElementsOnly)
System\Windows\Controls\Border.cs (20)
209UIElement child = Child;
215borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
216UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY));
262borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
263UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY));
269UIElement child = Child;
412pen.Thickness = UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX);
477pen.Thickness = UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX);
510pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY);
543pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY);
575ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX),
576UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY));
580ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX),
581UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY));
585ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX),
586RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY));
System\Windows\Controls\ContextMenuService.cs (10)
168typeof(UIElement), // Type
170new FrameworkPropertyMetadata((UIElement)null)); // Default Value
178public static UIElement GetPlacementTarget(DependencyObject element)
181return (UIElement)element.GetValue(PlacementTargetProperty);
189public static void SetPlacementTarget(DependencyObject element, UIElement value)
347UIElement.AddHandler(element, ContextMenuOpeningEvent, handler);
357UIElement.RemoveHandler(element, ContextMenuOpeningEvent, handler);
376UIElement.AddHandler(element, ContextMenuClosingEvent, handler);
386UIElement.RemoveHandler(element, ContextMenuClosingEvent, handler);
391EventManager.RegisterClassHandler(typeof(UIElement), ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening));
System\Windows\Controls\Control.cs (10)
28EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true);
29EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true);
30EventManager.RegisterClassHandler(typeof(Control), UIElement.PreviewMouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true);
31EventManager.RegisterClassHandler(typeof(Control), UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(HandleDoubleClick), true);
562if ((e.RoutedEvent == UIElement.PreviewMouseLeftButtonDownEvent) ||
563(e.RoutedEvent == UIElement.PreviewMouseRightButtonDownEvent))
694UIElement child = (UIElement)(this.GetVisualChild(0));
716UIElement child = (UIElement)(this.GetVisualChild(0));
System\Windows\Controls\DataGridCellsPanel.cs (29)
82UIElement parent = VisualTreeHelper.GetParent(this) as UIElement;
96private static void MeasureChild(UIElement child, Size constraint)
530private UIElement GenerateChild(
550private UIElement GenerateChild(
558UIElement child = generator.GenerateNext(out newlyRealized) as UIElement;
621private void AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized)
660private void InsertRecycledContainer(int childIndex, UIElement container)
668private void InsertNewContainer(int childIndex, UIElement container)
676private void InsertContainer(int childIndex, UIElement container, bool isRecycled)
764UIElement child = _realizedChildren[realizedChildIndex];
839UIElement child = GenerateChild(generator, constraint, column, ref childIndex, out childSize);
964UIElement child = generator.ContainerFromIndex(columnIndex) as UIElement;
1056UIElement child = children[i] as UIElement;
1168UIElement visualChild;
1169UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null;
1268public UIElement OldClippedChild
1273public UIElement NewClippedChild
1404ArrangeChild(children[childIndex] as UIElement, i, arrangeState);
1426UIElement child = children[additionalChildIndices[i]] as UIElement;
1446UIElement child,
1954_realizedChildren = new List<UIElement>(children.Count);
2361internal Geometry GetFrozenClipForChild(UIElement child)
2447private UIElement _clippedChildForFrozenBehaviour;
2449private List<UIElement> _realizedChildren;
System\Windows\Controls\Grid.cs (24)
70UIElement cell = value as UIElement;
77throw (new ArgumentException(SR.Format(SR.Grid_UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value)));
122public static void SetColumn(UIElement element, int value)
135public static int GetColumn(UIElement element)
147public static void SetRow(UIElement element, int value)
160public static int GetRow(UIElement element)
172public static void SetColumnSpan(UIElement element, int value)
185public static int GetColumnSpan(UIElement element)
197public static void SetRowSpan(UIElement element, int value)
210public static int GetRowSpan(UIElement element)
222public static void SetIsSharedSizeScope(UIElement element, bool value)
234public static bool GetIsSharedSizeScope(UIElement element)
364UIElement child = children[i];
662UIElement child = children[i];
681UIElement cell = children[currentCell];
884UIElement child = children[i];
1346UIElement child = InternalChildren[cell];
2105definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2144definitions[i].SizeCache = UIElement.RoundLayoutValue(definitions[i].SizeCache, dpi);
2194definitions[definitionIndices[i]].SizeCache = UIElement.RoundLayoutValue(definitions[definitionIndices[i]].SizeCache, dpi);
2218final = UIElement.RoundLayoutValue(finalOld, dpi);
2244double dpiIncrement = UIElement.RoundLayoutValue(1.0, dpi);
2654double roundedSize = UIElement.RoundLayoutValue(def.SizeCache, dpi);
System\Windows\Controls\InkCanvas.cs (37)
275if (e.Property == UIElement.RenderTransformProperty ||
433public static double GetTop(UIElement element)
445public static void SetTop(UIElement element, double length)
467public static double GetBottom(UIElement element)
479public static void SetBottom(UIElement element, double length)
501public static double GetLeft(UIElement element)
513public static void SetLeft(UIElement element, double length)
535public static double GetRight(UIElement element)
547public static void SetRight(UIElement element, double length)
560UIElement uie = d as UIElement;
651_selectionAdorner.SetBinding(UIElement.VisibilityProperty, activeEditingModeBinding);
1703public ReadOnlyCollection<UIElement> GetSelectedElements()
1735public void Select(IEnumerable<UIElement> selectedElements)
1746public void Select(StrokeCollection selectedStrokes, IEnumerable<UIElement> selectedElements)
1757UIElement[] validElements = ValidateSelectedElements(selectedElements);
2098List<UIElement> newElements = new List<UIElement>();
2114foreach ( UIElement element in newElements )
2311ChangeInkCanvasSelection(new StrokeCollection(), Array.Empty<UIElement>());
2327CoreChangeSelection(new StrokeCollection(), Array.Empty<UIElement>(), raiseSelectionChangedEvent);
2336internal void ChangeInkCanvasSelection(StrokeCollection strokes, UIElement[] elements)
2351UIElement[] validElements = elements;
2419private void CoreChangeSelection(StrokeCollection validStrokes, IList<UIElement> validElements, bool raiseSelectionChanged)
2508private UIElement[] ValidateSelectedElements(IEnumerable<UIElement> selectedElements)
2512return Array.Empty<UIElement>();
2515List<UIElement> elements = new List<UIElement>();
2516foreach (UIElement element in selectedElements)
2539private bool InkCanvasIsAncestorOf(UIElement element)
2670IList<UIElement> elements = GetSelectedElements();
2675removeSelectedElements ? new List<UIElement>() : elements,
2688foreach ( UIElement element in elements )
2725IEnumerable<UIElement> children = null;
2731UIElement[] uiElementArray = new UIElement[uiElementCollection.Count];
System\Windows\Controls\Primitives\Popup.cs (33)
106typeof(UIElement),
116public UIElement Child
118get { return (UIElement) GetValue(ChildProperty); }
126UIElement oldChild = (UIElement) e.OldValue;
127UIElement newChild = (UIElement) e.NewValue;
174private static void RegisterPopupWithPlacementTarget(Popup popup, UIElement placementTarget)
205private static void UnregisterPopupFromPlacementTarget(Popup popup, UIElement placementTarget)
230private void UpdatePlacementTargetRegistration(UIElement oldValue, UIElement newValue)
633typeof(UIElement),
645public UIElement PlacementTarget
647get { return (UIElement) GetValue(PlacementTargetProperty); }
661ctrl.UpdatePlacementTargetRegistration((UIElement)e.OldValue, (UIElement)e.NewValue);
665UnregisterPopupFromPlacementTarget(ctrl, (UIElement)e.OldValue);
867public static void CreateRootPopup(Popup popup, UIElement child)
879internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool bindTreatMousePlacementAsBottomProperty)
978internal static bool IsRootedInPopup(Popup parentPopup, UIElement element)
1294UIElement element = value as UIElement;
1297throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value));
1356UIElement placementTarget = PlacementTarget;
1534UIElement child = Child;
2302UIElement target = GetTarget() as UIElement;
2380UIElement child = Child;
2390UIElement target = GetTarget() as UIElement;
3277UIElement target = popup.PlacementTarget;
3534var target = popup?.GetTarget() as UIElement;
System\Windows\Controls\ToolTipService.cs (10)
160typeof(UIElement), // Type
162new FrameworkPropertyMetadata((UIElement)null)); // Default Value
170public static UIElement GetPlacementTarget(DependencyObject element)
173return (UIElement)element.GetValue(PlacementTargetProperty);
181public static void SetPlacementTarget(DependencyObject element, UIElement value)
515UIElement.AddHandler(element, ToolTipOpeningEvent, handler);
525UIElement.RemoveHandler(element, ToolTipOpeningEvent, handler);
546UIElement.AddHandler(element, ToolTipClosingEvent, handler);
556UIElement.RemoveHandler(element, ToolTipClosingEvent, handler);
571EventManager.RegisterClassHandler(typeof(UIElement), FindToolTipEvent, new FindToolTipEventHandler(OnFindToolTip));
System\Windows\Controls\VirtualizingStackPanel.cs (48)
532_scrollData._offset.X = UIElement.RoundLayoutValue(_scrollData._offset.X, dpi.DpiScaleX);
533_scrollData._computedOffset.X = UIElement.RoundLayoutValue(_scrollData._computedOffset.X, dpi.DpiScaleX);
660_scrollData._offset.Y = UIElement.RoundLayoutValue(_scrollData._offset.Y, dpi.DpiScaleY);
661_scrollData._computedOffset.Y = UIElement.RoundLayoutValue(_scrollData._computedOffset.Y, dpi.DpiScaleY);
1683UIElement child;
1691child = generator.GenerateNext(out newlyRealized) as UIElement;
2207UIElement firstContainerInViewport = null;
2594firstContainerInViewport = children[firstItemInViewportChildIndex] as UIElement;
3377UIElement child = null;
3389child = (UIElement)children[i];
3418UIElement containerBeforeViewport = null;
3427containerBeforeViewport = (UIElement)children[j];
5852Size childDesiredSize = ((UIElement)children[i]).DesiredSize;
6422private void SetItemsHostInsetForChild(int index, UIElement child, IContainItemStorage itemStorageProvider, bool isHorizontal)
6533private ItemsControl GetScrollingItemsControl(UIElement container)
6665UIElement child,
7456UIElement child = children[i] as UIElement;
7608UIElement child = children[i] as UIElement;
8075object item = ((ItemContainerGenerator)generator).ItemFromContainer((UIElement)children[childIndex]);
8174UIElement child = null;
8187child = generator.GenerateNext(out newlyRealized) as UIElement;
8199child = (UIElement)children[childIndex];
8381UIElement child,
8528UIElement child,
8563UIElement child,
8706private void InsertNewContainer(int childIndex, UIElement container)
8717private bool InsertRecycledContainer(int childIndex, UIElement container)
8729private bool InsertContainer(int childIndex, UIElement container, bool isRecycled)
8881private bool AddContainerFromGenerator(int childIndex, UIElement child, bool newlyRealized, bool isBeforeViewport)
8953UIElement child = Generator.GenerateNext(out newlyRealized) as UIElement;
9057UIElement child;
9093child = (UIElement)children[childIndex];
9176_realizedChildren = new List<UIElement>(children.Count);
9197foreach (UIElement child in InternalChildren)
9245UIElement child = _realizedChildren[realizedChildIndex];
9270UIElement visualChild;
9271UIElement realizedChild = _realizedChildren.Count > 0 ? _realizedChildren[0] : null;
9424private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl)
9571UIElement firstContainerInViewport,
10973protected override double GetItemOffsetCore(UIElement child)
11039double distance = vp.GetItemOffset((UIElement)child);
11248UIElement container = null;
11252container = (UIElement)children[i];
11695private List<UIElement> _realizedChildren;
13000foreach (UIElement child in RealizedChildren)
System\Windows\Documents\FixedPage.cs (24)
81/// Creates AutomationPeer (<see cref="UIElement.OnCreateAutomationPeer"/>)
183UIElement uie = value as UIElement;
187throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), nameof(value));
216public static double GetLeft(UIElement element)
229public static void SetLeft(UIElement element, double length)
244public static double GetTop(UIElement element)
257public static void SetTop(UIElement element, double length)
272public static double GetRight(UIElement element)
285public static void SetRight(UIElement element, double length)
300public static double GetBottom(UIElement element)
313public static void SetBottom(UIElement element, double length)
325public static Uri GetNavigateUri(UIElement element)
336public static void SetNavigateUri(UIElement element, Uri uri)
742foreach (UIElement child in Children)
765foreach (UIElement child in Children)
827UIElement IFixedNavigate.FindElementByID(string elementID, out FixedPage rootFixedPage)
829UIElement uiElementRet = null;
834UIElement uiElement;
844uiElementRet = node as UIElement;
853internal FixedNode CreateFixedNode(int pageIndex, UIElement e)
1014childIndex = parentFP.Children.IndexOf((UIElement)e);
1018childIndex = parentC.Children.IndexOf((UIElement)e);
1047private FixedNode _CreateFixedNode(int pageIndex, UIElement e)
System\Windows\Documents\Hyperlink.cs (5)
925SetUpEventHandler(element, UIElement.KeyDownEvent, new KeyEventHandler(OnKeyDown)); //initiates navigation
926SetUpEventHandler(element, UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnMouseLeftButtonDown)); //capture hyperlink pressed state
927SetUpEventHandler(element, UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(OnMouseLeftButtonUp)); //can initiate navigation
930SetUpEventHandler(element, UIElement.MouseEnterEvent, new MouseEventHandler(OnMouseEnter)); //set status bar
931SetUpEventHandler(element, UIElement.MouseLeaveEvent, new MouseEventHandler(OnMouseLeave)); //clear status bar
System\Windows\Documents\TextSchema.cs (14)
270elementType.Module == typeof(System.Windows.UIElement).Module; // presentationcore
835return typeof(UIElement).IsAssignableFrom(childType);
870return typeof(UIElement).IsAssignableFrom(childType);
1183UIElement.RenderTransformProperty,
1184UIElement.RenderTransformOriginProperty,
1185UIElement.OpacityProperty,
1186UIElement.OpacityMaskProperty,
1187UIElement.BitmapEffectProperty,
1188UIElement.BitmapEffectInputProperty,
1189UIElement.VisibilityProperty,
1190UIElement.ClipToBoundsProperty,
1191UIElement.ClipProperty,
1192UIElement.SnapsToDevicePixelsProperty,
1201UIElement.AllowDropProperty,
System\windows\Documents\UIElementPropertyUndoUnit.cs (5)
48private UIElementPropertyUndoUnit(UIElement uiElement, DependencyProperty property, object oldValue)
101internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, HorizontalAlignment newValue)
107internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, FlowDirection newValue)
123private static void AddPrivate(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, object newValue)
164private readonly UIElement _uiElement;
System\Windows\FrameworkElement.cs (46)
323protected internal virtual void ParentLayoutInvalidated(UIElement child)
581internal virtual UIElement TemplateChild
1407if (item == null || (item is UIElement))
2196UIElement layoutParent = null;
2209layoutParent = v as UIElement;
3142UIElement e = null;
4282/// Override for <seealso cref="UIElement.MeasureCore" />.
4333mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY);
4334mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX);
4335mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY);
4336mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX);
4381frameworkAvailableSize = UIElement.RoundLayoutSize(frameworkAvailableSize, dpi.DpiScaleX, dpi.DpiScaleY);
4462clippedDesiredWidth = UIElement.RoundLayoutValue(clippedDesiredWidth, dpi.DpiScaleX);
4463clippedDesiredHeight = UIElement.RoundLayoutValue(clippedDesiredHeight, dpi.DpiScaleY);
4508/// Override for <seealso cref="UIElement.ArrangeCore" />.
4562marginWidth = UIElement.RoundLayoutValue(marginWidth, dpi.DpiScaleX);
4563marginHeight = UIElement.RoundLayoutValue(marginHeight, dpi.DpiScaleY);
4670mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY);
4671mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX);
4672mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY);
4673mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX);
4696arrangeSize = UIElement.RoundLayoutSize(arrangeSize, dpi.DpiScaleX, dpi.DpiScaleY);
4709RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY);
4722clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY);
4739clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY);
4755clientSize = UIElement.RoundLayoutSize(clientSize, dpi.DpiScaleX, dpi.DpiScaleY);
4771offset.X = UIElement.RoundLayoutValue(offset.X, dpi.DpiScaleX);
4772offset.Y = UIElement.RoundLayoutValue(offset.Y, dpi.DpiScaleY);
4780/// Override for <seealso cref="UIElement.OnRenderSizeChanged"/>
4862/// Override of <seealso cref="UIElement.GetLayoutClip"/>.
4883mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.DpiScaleY);
4884mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX);
4885mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.DpiScaleY);
4886mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX);
4936clipRect = UIElement.RoundLayoutRect(clipRect, dpi.DpiScaleX, dpi.DpiScaleY);
4957slotClipRect = UIElement.RoundLayoutRect(slotClipRect, dpi.DpiScaleX, dpi.DpiScaleY);
4974localClipRect = UIElement.RoundLayoutRect(localClipRect, dpi.DpiScaleX, dpi.DpiScaleY);
5003slotRect = UIElement.RoundLayoutRect(slotRect, dpi.DpiScaleX, dpi.DpiScaleY);
5012localRect = UIElement.RoundLayoutRect(localRect, dpi.DpiScaleX, dpi.DpiScaleY);
5133internal static void InternalSetLayoutTransform(UIElement element, Transform layoutTransform)
5797UIElement uiElement = this._templatedParent as UIElement;
6071UIElement uiElement = modelTreeNode as UIElement;
6378private UIElement _templateChild; // Non-null if this FE has a child that was created as part of a template.
6384internal static DependencyObjectType UIElementDType = DependencyObjectType.FromSystemTypeInternal(typeof(UIElement));
System\Windows\Input\KeyboardNavigation.cs (37)
492public FocusVisualAdorner(UIElement adornedElement, Style focusVisualStyle) : base(adornedElement)
508public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent, IContentHost contentHostParent, Style focusVisualStyle)
547((UIElement)GetVisualChild(0)).Measure(constraint);
624((UIElement)GetVisualChild(0)).Arrange(new Rect(new Point(), finalSize));
750private UIElement _adorderChild;
755internal static UIElement GetParentUIElementFromContentElement(ContentElement ce)
761internal static UIElement GetParentUIElementFromContentElement(ContentElement ce, ref IContentHost ichParent)
775UIElement eParent = parent as UIElement;
785UIElement uielement = visualParent as UIElement;
874UIElement parentUIElement = GetParentUIElementFromContentElement(fce, ref parentICH);
1429UIElement uiElement = visual as UIElement;
1459if (current is UIElement || current is UIElement3D)
1473DependencyObject parentAsUIElement = parent as UIElement;
1516if (current is UIElement || current is UIElement3D)
1534DependencyObject parentAsUIElement = parent as UIElement;
1628if (current is UIElement || current is UIElement3D)
1643DependencyObject uiElement = e as UIElement;
1696if (current is UIElement || current is UIElement3D)
1709DependencyObject uiElement = e as UIElement;
1921UIElement uie = element as UIElement;
2362UIElement uiElement = element as UIElement;
2400UIElement parentUIElement = GetParentUIElementFromContentElement(ce, ref parentICH);
2722UIElement sourceUIElement = sourceElement as UIElement;
2731UIElement targetUIElement = targetElement as UIElement;
2760UIElement uiElement = sender as UIElement;
2776if (sender is UIElement)
2777((UIElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus));
2989ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement,
3021currentRectElement as UIElement,
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (53)
4115Type type = typeof(System.Windows.UIElement);
4116DependencyProperty dp = System.Windows.UIElement.ClipToBoundsProperty;
4118this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
4134Type type = typeof(System.Windows.UIElement);
4135DependencyProperty dp = System.Windows.UIElement.FocusableProperty;
4137this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
4153Type type = typeof(System.Windows.UIElement);
4154DependencyProperty dp = System.Windows.UIElement.IsEnabledProperty;
4156this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
4172Type type = typeof(System.Windows.UIElement);
4173DependencyProperty dp = System.Windows.UIElement.RenderTransformProperty;
4175this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
4191Type type = typeof(System.Windows.UIElement);
4192DependencyProperty dp = System.Windows.UIElement.VisibilityProperty;
4194this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
4233typeof(System.Windows.UIElement), // type
4238SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.AdornedElementPlaceholder)target).Child = (System.Windows.UIElement)value; },
4252typeof(System.Windows.UIElement), // type
4257SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.AdornerDecorator)target).Child = (System.Windows.UIElement)value; },
4309typeof(System.Windows.UIElement), // type
4314SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.BlockUIContainer)target).Child = (System.Windows.UIElement)value; },
4366typeof(System.Windows.UIElement), // type
4371SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Border)target).Child = (System.Windows.UIElement)value; },
4385typeof(System.Windows.UIElement), // type
4390SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Child = (System.Windows.UIElement)value; },
4674typeof(System.Windows.UIElement), // type
4679SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Decorator)target).Child = (System.Windows.UIElement)value; },
5129typeof(System.Windows.UIElement), // type
5134SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.InkPresenter)target).Child = (System.Windows.UIElement)value; },
5148typeof(System.Windows.UIElement), // type
5153SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.InlineUIContainer)target).Child = (System.Windows.UIElement)value; },
6612typeof(System.Windows.UIElement), // type
6617SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Viewbox)target).Child = (System.Windows.UIElement)value; },
7321Type type = typeof(System.Windows.UIElement);
7322DependencyProperty dp = System.Windows.UIElement.UidProperty;
7324this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
8388Type type = typeof(System.Windows.UIElement);
8389DependencyProperty dp = System.Windows.UIElement.RenderTransformOriginProperty;
8391this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
8430typeof(System.Windows.UIElement), // type
8435SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Bullet = (System.Windows.UIElement)value; },
8445Type type = typeof(System.Windows.UIElement);
8446DependencyProperty dp = System.Windows.UIElement.SnapsToDevicePixelsProperty;
8448this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
8464Type type = typeof(System.Windows.UIElement);
8466this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
8473GetDelegate = delegate (object target) { return ((System.Windows.UIElement)target).CommandBindings; },
8483Type type = typeof(System.Windows.UIElement);
8485this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
8492GetDelegate = delegate (object target) { return ((System.Windows.UIElement)target).InputBindings; },
8753Type type = typeof(System.Windows.UIElement);
8754DependencyProperty dp = System.Windows.UIElement.AllowDropProperty;
8756this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType