In a WPF app, what XAML code do I need to do the same job as this line of c#:
this.DataContext = this;
? Thanks
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.
I think you could do:
I’ve just tried it, and it seems to work…
EDIT: As noted in comments, apparently you can also use:
… but I haven’t tried that.