c# - Determining from which View/UserControl a Command was called -
What is the definitive way to determine which scene (user control) was called?
For example, if I have two views, then each single view is tied to the modal, how can I decide how a specific command was called? Having a separate order for each scene will not make any difference in this scenario, because it is an external service that should be informed about the particular active view.
I assume that you call the command from userstrop, so if you say the method, example For some method, then as a method, a UserControl object is required to be taken as a parameter. In other words, you should be like something like:
some blank posts (User control U, other parameters ...) {if (u have some user controls) {\\ nothing do} And if ....} and call this method on your user control:
some mode (this, .....) \\ This keyword will send a UserControl object if you say that method within a UserControl class, in other words it crosses itself as a parameter The will
Comments
Post a Comment