The “this” that we use in Form application. What does it correspond to in WPF? Is it MainWindow? I am using a library that is build around Form application and there are alot of “this” and I don’t know how to convert the “this” in WPF
Share
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.
In C#,
thisis always a reference to the current instance of the class in which it is used.In fact, to quote from MSDN:
Examples can be found following the link above.
There is an exception to this rule when working with extension methods, however, where
thisis a modifier to the type of object by which the extension method is to be exposed.