visualtreehelper Questions

2

Solved

Sometimes right-clicking treeviewitem results unhandled InvalidOperationException. In code behind I select the right clicked row: static TreeViewItem VisualUpwardSearch(DependencyObject source) ...
Highams asked 12/7, 2016 at 9:39

1

I have a UserControl 'child' within another UserControl (that's acting as a TabItem in a TabControl). Between the child UserControl and the TabItem ancestor are a number of other controls (eg: Grid...
Jewelfish asked 8/11, 2018 at 5:17

2

Solved

This one has me stumped. We have a custom ItemsControl which uses both custom containers as well as a custom panel as its ItemsHost. Now the panel has some metrics that the containers need for rend...
Quizzical asked 2/1, 2013 at 7:35

2

Solved

I would like to perform a rectangual hit test on WPF Canvas component in order to get Controls that are overlapped by a Rectangle framework element. I found a Silverlight's VisualTreeHelper.FindEle...
Siriasis asked 13/1, 2010 at 19:11

1

I have the following C# code to find children of a DepedendencyObject: public static IEnumerable<T> FindVisualChildren<T>(DependencyObject parent) where T : DependencyObject { int ch...
Shelley asked 24/8, 2012 at 20:40

3

Solved

I have this static helper function: public static DependencyObject GetParentObject(DependencyObject child) { if (child == null) return null; ContentElement contentElement = child as ContentEle...
Yellowish asked 23/11, 2010 at 11:14

2

Solved

In a WP7 app, I used FrameworkElement.Parent recursively to determine whether a specific element is inside of another element. But it does not always work correctly. Then I changed my code to use V...

3

Solved

Is there a way with WPF to get an array of elements under the mouse on a MouseMove event?
Hobby asked 5/9, 2008 at 13:28
1

© 2022 - 2024 — McMap. All rights reserved.