WPF looks complicated compared to WinForms---why?

R

raylopez99

Took a look at a demo of font dialog for WPF, and it looks
complicated. You could do the same thing in C# 3 WinForms 2.0 in about
one-half to one-fourth the code.

So I wonder, for you that have made the transition to WPF, how much of
the seemingly extra code in WPF is due to code separation and how much
is for the new 'transparent' Aero/Vista type interface, and how much
for other stuff (security, accessibility, localization, etc)?

Curious before I make the leap (which I plan to). But WinForms is
very easy IMO--after about two months I feel pretty confident, though
things do blow up daily and I struggle to fix them (with a little help
from my friends).

RL

Accessibility - Accessibility Best Practices

Security - Windows Presentation Foundation Security

Localization - WPF Globalization and Localization Overview
 
P

Pavel Minaev

raylopez99 said:
Took a look at a demo of font dialog for WPF, and it looks
complicated. You could do the same thing in C# 3 WinForms 2.0 in about
one-half to one-fourth the code.

Without looking at the specific code for both examples you're
referring to, it's hard to tell. For that matter, do you count the
XAML markup for code? Because if you do, you should really count the
generated *.designer.cs files for WinForms as well...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top