I have a View Model attached with Multiple Pages. I have also Commands on different controls bound to properties in this ViewModel.
How Do I know the Command in ViewModel is called from which control?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Generally you don’t need to know the source. But there are always solutions for each state 🙂
You may use a property in your viewModel such as
Or you may use CommandParameter
But I think if we need to know the source control,something may missing in our design. But some conditions I agree this can be a need.
There is no way of getting action source as shown in java code below,we don’t interest in the source object with this concept. Maybe models or part of your models behavior should run uncommon.