I'm trying to get the Window instance which is hosting a UIElement instance in WinUI 3. There's a helper method in the Window class in .NET (see this ...
I'm trying to get the Window instance which is hosting a UIElement instance in WinUI 3. There's a helper method in the Window class in .NET (see this ...
Before reporting to Microsoft I want to ask here. I have a problem that I cannot see Live Visual Tree of my WinUI 3 application. I cannot even see the ...
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 have a window with different items and different views for each type. I would like to access the button in the window (parent) from my code behind f ...
This seems like it should be simple as pie but I can't figure it out. I am trying to change a working Style Setter for a "Fill" property on an elemen ...
I want to calculate enter image description here automation id of text block inside the content presenter. My visual tree looks like this- ...
I use this code to add a TextBox to a DataGrid cell: (no, I can't use XAML here) I there a way to get the underlying TextBox control without XAML? ...
I have a class which extends Canvas in WPF. This class is placed in a ScrollViewer. Without passing a specific reference to the ScrollViewer into th ...
I can't enable Live Visual Tree in Visual Studio 2017 for UWP app (C#). This tool was working on VS2015, but never worked for me in VS2017. It works w ...
As the columns of a data grid aren't in the visual tree of datagrid I'm m using this approach of Binding Proxy to bind Visibility of a DataGridTextCol ...
I am traversing a WPF application through its VisualTree, using the VisualTreeHelper, which is returning DependencyObjects. However, once i find t ...
Sometimes right-clicking treeviewitem results unhandled InvalidOperationException. In code behind I select the right clicked row: According to stac ...
I'm adding a validation module to my application which will guide the user to the inputs that need attention. I would like to go through these control ...
I have a pair of controls, let's call them BigDaddy and Flea. One or more Flea elements may appear anywhere in the visual tree of BigDaddy. Is there a ...
I want to take a snapshot of my UserControl, which has not been shown yet. That's my code: This code runs for each 'MyViewModel' when I start my Ap ...
I have an Attached Property in a WPF app. The code below is inside the OnLoad event, but it doesn't work unless I add a hacky 500 millisecond delay i ...
I am cooking up DataGridTemplateColumns programmatically via DataTemplate dtStringTemplate = (DataTemplate)XamlReader.Load(sr, pc); dataGridTemplateCo ...
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'm attempting to implement Excel-like column filtering and sorting. To do this, I used a DataTemplate to define the Column Header. And it comes ou ...
I have the following implementation to get all the children in a VisualTree of a type T: I call this method using the following: However, this i ...