How to set breakpoint inside C # PresentationFramework.dll?

It may be a shot in the dark, but how can I set a breakpoint inside the next internal static method in PresentationFramework.dll?

System.Windows.Documents.TextEditorTyping._ShowCursor()

I came across a very similar situation with Joe , where I create a custom text field autocomplete using the TextBox control and a popup that contains the ItemsControl element. When I have focus in the textbox and a popup with StaysOpen = "False" and enter some characters, the mouse pointer will be hidden (via a call to System.Windows.Documents.TextEditorTyping.HideCursor, which I believe). Usually it is displayed on mouse movement, however, it seems that the pop-up window processes this event while it checks whether it should be hidden or not, therefore the pointer remains hidden when moving it around the window.

There is quirk where, when you press the key for the first time, the pointer disappears and then reappears, and then when you press the second key, the pointer remains hidden. This suggests that something is calling _ShowCursor (), and I'm curious to know what. Hence this post and the desire to set the breakpoint described above. How to set this breakpoint?

As for my real problem, the pointer remains hidden as soon as it moves, I hope to solve it either by emulating StaysOpen = "False" on my own, without blocking the mouse move events, or trigger the mouse move events myself to make the pointer appear again. Any other tips on this were appreciated.

+5
source share
4

( ), , Reflector Pro: http://www.red-gate.com/messageboard/viewforum.php?f=109

Reflector Pro WPF .cs debug PDB - Visual Studio Presentation Framework ( )

!

+5

. , - . , , , , Microsoft. .pdb, .

+3

, .

  • " "
  • break
  • , funciom
+2

For others who are working with this problem, here is how I did it (VS2015):

Downloaded and installed JetBrains dotPeek

run dotPeek as a character server

As explained here: https://www.jetbrains.com/help/decompiler/2016.1/Using_product_as_a_Symbol_Server.html

you may also have to remove / rename the already downloaded incorrect version of PresentationFramework.pdb, as described in the "Possible Problems and Solutions" section in the link above

0
source

All Articles