I just want to see visual elements of controls, and to do it I created a really basic window which contains two labels and button. The problem is that ...
I just want to see visual elements of controls, and to do it I created a really basic window which contains two labels and button. The problem is that ...
Basically WPF elements are rectangular in shape. And it is very easy to get their outline through their Width and Height. But in the general case, the ...
From time to time I'm running into an ArgumentOutOfRangeException when calling VisualTreeHelper.GetChild(). The exception mentions not to call that m ...
I want to modify the content in a TabItem of a TabView. And that TabItem uses DataTemplate. When I am trying to access the children of that item like ...
I have a UserControl 'child' within another UserControl (that's acting as a TabItem in a TabControl). Between the child UserControl and the TabItem an ...
I have tried this Navigation Service approach (View First) for MVVM-Light WPF https://stackoverflow.com/a/28968560/5272185 I realized that the Visual ...
I have some few cases in my WPF application that requires me to find a specific type of user control in a given user control. For example I'm having t ...
I'm trying to correctly remove a UIElement from an InlineUIContainer in order to use it in another Panel but the program keeps crashing with this mess ...
I have a ListBox including an ItemTemplate with a StackPanel. I want to access that stackpanel and change its visibility. (Change it's visibility to ...
I have a Button for which I need to detect if it goes into the ToolBarOverflowPanel. Current Code: (Logic: Monitor Children.Count for AncestorType T ...
I am traversing a WPF application through its VisualTree, using the VisualTreeHelper, which is returning DependencyObjects. However, once i find t ...
In my WPF app I dynamically load a XAML drawing from XML at runtime. This drawing is a complex series of nested canvas and geometry 'Path's (for examp ...
I am doing some experiments and I am trying to collect all elements which are placed under mouse pointer. XAML test code To get coordinates of mou ...
I am trying to loop through child elements of a Tab Control to know what Check Boxes are set to checked or not checked. I have found various answers o ...
Sometimes right-clicking treeviewitem results unhandled InvalidOperationException. In code behind I select the right clicked row: According to stac ...
I a beginner in C# and WPF. I'm programming plugin for a node based software called vvvv. I have implemented sliders, buttons and other simple ui elem ...
I have a video to play in 8.1 windows store app and wanna to keep audio playing after navigating to other page .. i did it using visualTreeHelper so i ...
What is the easiest way, to search vertically and horizontally in the visual tree? For example I want to find a control which is not in the list of p ...
Is it possible in WPF to find a visual parent of an object (UIElement) before the loaded event was triggered? If i search for a specific parent in the ...
I customed my TreeViewItem to be a StackPanel with image and textblock inside; I'd like to get a reference to the TextBlock inside. For the codes belo ...