I'm trying to get a list of objects that are subscribing to the PasswordBox PasswordChanged event.

The PasswordBox has a static readonly RoutedEvent PasswordChangedEvent and an instance PasswordChanged event.

Thanks!

有帮助吗?

解决方案

Perhaps you can look at this a different way.

Register for the PasswordChanged event, modify the PasswordBox value, then verify your listener was called with the provided value.

Since you have a reference to the control this will be much easier then attempting to acquire the list of subscribers external to the control.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top