Finding corresponding code segment from UI-Element Winforms - winforms

I recently started working on a rather large project with a lot of UI elements in the code. Is there a quick way to go from the UI Element, when I run the application, to the corresponding element in the Code?
I feel like there must be a way, because the application has incredibly many files and ressources and I can't figure out how to find the Element.

Related

How to add personal icons in Glade without polluting hierarchy

I've been looking for solutions for several weeks now, but I'm having a bit of trouble finding and understanding (in cases where I find documentation).
I'm currently developing an application for a school project. But I used a GtkToolPalette (https://developer.gnome.org/gtk3/stable/GtkToolPalette.html) so that the user can have icons to drag and drop into a drawing area. The problem is that first of all, these icons are very specific to what I want, so I can't find them in the icons that Glade/GTK3 already offers. Second, if I add all the icons one by one in Glade via the buttons on my GtkToolPalette it creates images each time (i.e. a lot) in the hierarchy of my objects, widgets and it completely pollutes my Glade workspace.
Is there a way to make all these additions cleanly. At the moment, I haven't found any method via glade. However, I finally found this https://developer.gnome.org/ThemedIcons/ but I don't really understand the method.
Does anyone know of an effective method?
Thank you in advance for your attention and your answers :)

WPF AutomationID vs. Name for identifying UI elements on Ranorex

for the application I'm running automation on - I noticed that there was a problem that some of the elements cannot be found via view spy. These elements do not have names nor Automation ID. I suggested adding one of these to all elements, which would you recommend for my purpose and what are the differences between the two? I just want to be able to locate elements as quickly and as efficiently as possible. I am fairly new to WPF automation testing as I traditionally come from a web automation background.
Thanks
In my opinion it doesn't matter which attribute is used as long as it is unique.

How to display WPF overlay on top of DirectX?

I learned how to hook into the game EndScene function, but how to host WPF content is something I am trying a very long time to understand.
I am trying to do something like Overwolf, for a specific game (starcraft), I asked their team how they do it, but they didn't give any information.
So I tried to examine what exactly OverwolfLauncher.exe does, and I found it injects 3 dlls:
OWExplorer-2006.dll, OWLog.dll, OWClient.dll.
The first two seem not really important. The third hooks into the game directx or opengl dll, and their overlay manager does some "magic". And that's only what I was able to understand.
I would be happy if someone could explain me how exactly Overwolf managed to host WPF content as overlay.
There are many questions like this on stackoverflow.
This one was marked as solved, but the solution seems to be about hosting DirectX inside WPF.

Is there a way to find out what winform/wpf components a program uses?

I'm a complete novice in gui-programming and I'm looking for an easy way to visualize a data structure I have. I own another program that does a similar job and the component it uses seems like it would fulfill my purposes as well. So instead of testing out different components myself (Which would undoubtedly force me to learn a lot), I'm wondering if there's a fast way out of it.
Is there anyway to find out what specific wpf/winform component a program is using without asking author/having source code access?
Edit:
Looks like this, the area it's in is scrollable horizontally/vertically. The objects on it are selectable, moveable and have actions associated with their right-click menu. I want to visualize an undirected graph and have the possibility to interact with the nodes graphically.
Here's the control I'm talking about:
First step, I'd look at the assemblies the app references. If it references a dll from a component vendor (a simple search can figure this out), you can visit the vendor's website and check out their offerings.
If it is a custom control embedded within the application, and its a WPF app, I'd use Snoop.
(Image ganked from http://snoopwpf.codeplex.com/). Snoop can sniff out the visual tree of a WPF application at runtime and show you all the controls that make it up.
This is no standard control but some propritary one. You can have a look in the program folder of that program which dll's they use, chances are that you can use this dll in your own app. Note that the license of this application may forbid using the code!

Problems when splitting Silverlight App into smaller components

I have a Silverlight 3 App that became quite big over the time. So I began to try to break it in several smaler Applications that will be dynamically loaded in my Main Application on demand. But I run into a strange problems with my VS 2008.
When I add a new Silverlight Application project to my solution and copy User Controls from my old Main Application into this new project it happens from time to time (about twice a day) that the XAML files and their code behind files loose their association. When this happens and I try to build the project, the compiler complains that he cannot find all the Ccontrols like buttons, labels etc. in the code behind files that I added to the class in the XAML-file. And the build fails of course.
The only workaround that I found so far is to add another Silverlight Application project and move all the content from the first added project to it. Than everything works fine for a while until the problem occurs again.
But that's not really a solution.
Any Ideas what happens here and what i can do?
Best Regards,
Rocko
I have seen issues like this before when changing the namespaces on controls in silverlight. The issue crops up when you don't change both the namespace on the control class, and the full name of the class in the x:class attribute on the root element of the control.
Not sure if this fits your situation or not, but it's the only time I've run into similar issues.

Resources