How to Indicate a Partial Match for WPF Window Name

PROBLEM

I have a dynamic window title in my application. Elements in the window cannot be located during execution because the title differs from when it was recorded.

SOLUTION

Edit the Caption property for the Window node in the Elements Explorer. Use a leading tilde (~) character to indicate a partial match and remove the dynamic portion.

fig1
fig2
Original Window Caption
fig3
fig4
Edited for Partial Match
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy