Latest Developer Articles

10 Ways to Improve the Performance of Your WPF Application

Windows Presentation Foundation (WPF) applications tend to be slower on lower end machines or on machines without graphic acceleration devices. They seem to eat up resources and make the application unstable. However, note that the performance of a WPF application depends on the hardware you have. So, higher end machines obviously have a greater edge when it comes to WPF applications.

But, before we delve into the optimization techniques, it is sensible to agree that design and planning a product in its best terms can help us remove the bottlenecks in its performance. Another notable point is that the performance improvement is not a one-step process. It should be an indulging and iterative part of the development process. Good design of a WPF application can remove the irrelevant aspects that hinder the performance. For example, construction of objects at run time deteriorate the application's performance.

Although WPF offers a rich User Interface with impressive navigation and much more, you should consider this only if your user base requires a rich graphics interface. Nevertheless, WPF applications offer their flexibility when it comes to UI with their customizable styles, and control templates.

WPF architecture. Blue elements are Windows components; brown ones are WPF components.
Figure 1 (Image Source: Wikipedia)

The primary factor in rendering a WPF application is behind the number of pixels in it. The hardware rendering pipeline of WPF uses Microsoft's DirectX features on the hardware that the application is run. So if you have a dedicated GPU on the machine, the performance is immensely better.

feature 2 image

Creating a Server with .NET Socket Programming

HTTP isn't the only network protocol that's useful. Learn about, or beef up your skills with, socket-level programming.

feature 3 image

Common Library Functions in Visual Basic

Learn about the functions, and see a small example of how the particular functions can be used.

feature 4 image

Soft Deleting Entities Cleanly Using Entity Framework 6 Interceptors

Explore new features in EF 6 and understand how these can be used to achieve soft deletes in a cleaner way.

feature 5 image

Caching Regular Data Benefits Regular Programs, Too

Using output caching is now much easier to use, thanks to .NET 4 and higher, and also can be used in a traditional application.

feature 6 image

Sub Queries and Sub Tables in SQL and VB

Learn  more about sub queries and sub queries, and, more importantly, how to use them with Visual Basic.

Next:

Latest Developer Videos

More...

Latest CodeGuru Developer Columns

C++ Tips and Tricks

Quirky and yet persistent, C++ is a language that keeps programmers coming back to it. Pick up some new ways to wrangle it into your workflow.

CodeGuru Blogs

On the Forums

Top White Papers and Webcasts

  • Lenovo recommends Windows 8 Pro. "I dropped my laptop getting out of the taxi." This probably sounds familiar to most IT professionals. If your employees are traveling, you know their devices are in for a rough go. Whether it's a trip to the conference room or a convention out of town, any time equipment leaves a user's desk it is at risk of being put into harm's way. Stay connected at all times, whether at the office or on the go, with agile, durable, and flexible devices like the Lenovo® …

  • Live Event Date: September 23, 2015 @ 1:00 p.m. ET / 10:00 a.m. PT The cloud is not just about a runtime platform for your projects – now, you can do your development in the cloud, too. Check out this upcoming eseminar to learn how the cloud improves your development experience and team collaboration. Join Dana Singleterry, Principal Product Manager for Oracle Dev Tools, as he discusses how to simplify every aspect of the development lifecycle, including requirements gathering, version management, code …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date