Top "Visual-tree" questions

WPF Get Element(s) under mouse

Is there a way with WPF to get an array of elements under the mouse on a MouseMove event?

wpf element visualtreehelper visual-tree
Find control in the visual tree

I am trying to get my SelectedRadioButton from a DataTemplate. Wpf Inspector showed the Visual Tree: and in code: void …

wpf visual-tree
Binding ElementName. Does it use Visual Tree or Logical Tree

Having {Binding ElementName=foo}, will it lookup visual or logical tree? Of logical and visual trees in WPF | Data See, …

wpf binding elementname visual-tree logical-tree
WPF - How to detect when new Visual child elements are added?

Based on some custom security settings, I alter window child controls to readonly and disabled. To accomplish this, I loop …

wpf events visual-tree
Removing an item from the visual tree in a generic way

I would like to remove a FrameworkElement from the visual tree. Since the FrameworkElement has a Parent property, it would …

wpf silverlight visual-tree
WPF container to turn all child controls to read-only

I would like to have a WPF container (panel, user control, etc.) that exposes a property to turn all children …

c# wpf children visual-tree
ListBoxItem.Parent returns nothing, unable to get it thru VisualTreeHelper.GetParent either

How do I extract the parent container of a ListBoxItem? In the following example I can go till the ListBoxItem, …

wpf xaml listbox listboxitem visual-tree
wpf force to build visual tree

I have ItemsControl with Grid as ItemsPanelTemplate <ItemsControl ItemsSource="{Binding CellCollection}" Name="CellGrid"> <ItemsControl.ItemsPanel> <…

c# wpf user-controls itemscontrol visual-tree