發表文章

目前顯示的是 1月 15, 2019的文章

How to find all methods currently subscribed to an event in WPF / C# during debugging in Visual Studio

圖片
1 I am quite new to WPF and rather new to C# and now have inherited a C#/WPF App with over 60k lines of code (no MVVM was used, the design pattern is rather improvised). Now, I have to change a rather small thing in the UI, but this control is quite crucial and therefore heavily woven into the whole solution. I know the "Live Visual Tree" Function in Visual Studio and also I know the Live Property Explorer. However, I would like to have something like a "Live EVENT Explorer" to see what methods are registered to an event of this control. I would like to have something like: a) A possibility to see, what methods are currently subscribed to a certain event (for example the SelectionChanged event of a ListView). With "currently" I mean, that the subscribed methods are changing quite a l...