c#: what is the purpose of wpf vs. winforms [closed]
- by every_answer_gets_a_point
i know wpf can be richer-looking, but what is the point of using them if they complicate things so much?
for example if i want to do something on form load in wpf i have to through the trouble of writing this:
public MyWindow()
{
Loaded += MyWindow_Loaded;
}
private void MyWindow_Loaded(object sender, RoutedEventArgs e)
{
// do work here
}
whereas in winforms all i do is double click on the form
the question is what are the benefits of using wpf over winforms?