Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What Business Benefit does WPF provide?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01307283
Message ID:
01307571
Vues:
8
Hi,
PMJI, but looks like fun.

>>- Takes advantage of video processors to render, so it's faster than WinForms (Hardware acceleration)
>
>It's a myth!
>
>If you've ever built a WPF application you know it sucks a** when it comes to performance.

Have, and don't. Slower - yes, 'sucks' - no. But I think a lot of our perception of 'slowness' reflects the time we spend in the development environment. I don't think there's any reason why a WPF application should be perceptable slower from an end user POV.

>Yeah hardware acceleration is there, but it gets lost in the myriad of UI objects that need to be managed. This might change in the future but right now - perf is no reason.
>
>Hardware acceleration only helps with the rendering and shading and vector sizing. IT does nothing for page composition and layout where the CPU still is needed and there are much more objects involved at the .NET level (ie. rather high level code) than in Winforms which is basically calling low level Windows API semantics to render.
>

The benefits of hardware acceleration are surely going to depend on the Rendering Tier supported by the hardware. In general, with no acceleration, WPF might be slower, but with full support, maybe a lot faster. In WinForms it just isn't going to make any difference period.

>>- Everything is a vector graphic, so even when scaling, you don't get jagged edges
>
>Depends on what you're using. If you're building all your artwork using vectors yes. But if you're using images you still have to deal with scaling and distortion.

You get the benefit when using WPF controls themselves.

>And building scalable UIs is actually quite difficult even when you have anchors and docking available.

Difficult compared to doing the same thing in WinForms?

>Frankly if you build any sort of text application with WPF (other than the full scale text viewer) I've found that it really is horrible because WPF uses some odd variation on clear type that makes font display horribly blurry. this is especially noticable if you run on a machine that has clear type off and you see a WinForms (or any other WinApi app) in comparison to a WPF app side by side. It looks awful and blurry...

Haven't noticed this personally. But on the subject of Text what about the functionality provided by FlowDocument/FixedDocument/XPS?

>>- You can use UIs that are difficult or impossible with WinForms (Rich composition and customization)
>
>That's definitely true, but you have to know what you're doing.
>
>But you can also turn this around: You can't easily do things that you can do in WinForms with WPF. Possible yes, but because there's a severe lack of controls (even from 3rd party vendors) you don't get many features that you'd take for granted in a forms application.

I'd say 'a few features' rather than 'many features'
>No date picker, no grid, no masked input, etc. etc.

WPF has a Grid control ;=}. But yes, you've picked three of the bigger ommissions. Regarding 'severe lack of controls': I just did a quick count - WPF has 57 UI related objects in the default Toolbox, WinForms has 35....

>Most of the things you take for granted in WinForms are difficult to do with WPF. And creating custom controls is not easy either at least if you want to build a real WPF style control that supports styling and theming.

>I'll just swap two words in the above paragraph: Most of the things you take for granted in WPF are difficult to do with WinForms. And creating custom controls is not easy either at least if you want to build a real WPF style control that supports styling and theming.

>>- True separation of behavior from UI elements because of Declarative Programming
>
>>- Data binding better than WinForms
>
>This is one of the highlights of WPF for sure. The databinding and whole Dependency Property mechanisms are great.
>
>Unfortunately there are also serious issues with Data Validation (no way to detect validation errors BEFORE the data is updated back into the data bound source).

Binding Validation seems pretty flexible and comprehensive to me. What do you think is lacking?

>>- Microsoft is not using resources to further develop WinForms. All new work is being done on WPF
>
>That's not exactly a big deal given that most of the innovation in this space has always come from third party vendors.
>
Sounds like the VFP/.Net arugment (g,d&r from certain parties)

>WPF is cool and you can built some really interesting stuff with it, but don't expect to do even simple things in anything less than half a life time <g>... It's incredibly tedious to build even the simplest things that actually look nice.

Just plain don't agree with anything after the first comma (but, of course, beauty is in the eye of the beholder :-}

>I don't even want to think what kind of UI nightmares folks who are not versed with graphics design (ie. most of us) are going to create with this technology. It's like giving people Photoshop to design a user interface and saying - have at it.

I've never quite accepted the argument that you shouldn't give something to someone on the basis that they may mis-use it.....

>The way I see it WPF is a very shiny new toy that addresses a very specific market segment. It's not a tool - for now - for the Line of Business market. It's a tool for graphically rich application that require heavy visual interaction - typically bubbly consumer applications or graphically rich applications that do advanced graphing/charting or data manipulation using new UI implementations.
>
>There will be people building incredibly mind blowing apps with WPF, but at the same time you have to realize that most of those apps will be designed by designers who understand graphic design. For the average developer doing quality WPF design and layout is going to be a struggle...
>
>I've seen a few WPF apps that are trying to do 'basic' forms interfaces and it's not impressive in anyway. And it took the developers a heck of a long time to make that actually happen... the same apps in WinForms would have taken half the time.
>
>WPF is useful if you have a right application for it. But otherwise it's one of those technologies one should think about very hard before jumping into - unless you have an employer or client that's willing to foot the bill for you to experiement a lot.

Even for straightforward applications I still prefer the UI controls from WPF. There's a cleaner, more standard, structure to the class hierarchies - by comparison the Winforms controls seem a bit of a hodge-podge.

Footnote: I'm not really a WPF evangelist. Just thought an entrenched discussion re: WPF v WinForms would make a change from the .NET/VFP variety (g)
Regards,
Viv



>+++ Rick ---
>
>>
>>
>>>During a recent discussion of WPF and the possibility of using it in our applications the topic of what business benefits this new technology provides came up. We are a shop that has several small development teams creating and maintaining windows desktop applications. The applications we develop are not web enabled. We do not and will not have “designers” on staff.
>>> I can see plenty of negative expense in using this new technology but was unable to point to a single benefit.
>>>
>>>Are there any tangible benefits to using WPF beyond have a cool toolbar or button?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform