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\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\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\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\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\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\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\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\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\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\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\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\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\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\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\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
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\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\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)