Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the most common mistakes made in WPF development? [closed]

Tags:

wpf

This question intends to provide a list of solutions to common pitfalls, "gotcha's", or design issues when developing WPF applications. This can also include proper design-patterns as long as there is an explanation as to why it works best. Responses should be voted up or down based on how common the type of issue is. Here are the rules:

  • One response per post. This will clearly give the most common issues the highest ranking.
  • It would be best to provide the link to the a related post or solution already living somewhere in SO land.
like image 709
Micah Avatar asked Nov 27 '08 00:11

Micah


1 Answers

Problem : The major issue I have seen so far is that people start coding in WPF with the winform UI model in mind.

Solution: WPF is not WinForms/MFC/Win32 So Forget all the UI side assumptions and norms you have used and learned while developing Windows based UI for last 20+ years.

It is very important to understand the core ideas behind this platform, This link- Major UI Development Breakthroughs in the new WPF platform will give an in depth view of WPF. Which lists out the following points. The highlighted ones are my favorite features of this platform.

  1. Advanced Graphics
  2. Drawing Object Model
  3. Rich Application Text
  4. Adaptable UI Layout
  5. Flexible Content Model
  6. Lookless Controls
  7. Data-Driven UI
  8. Consistent Styles
  9. Triggers
  10. Declarative Programming
like image 149
Jobi Joy Avatar answered Oct 19 '22 03:10

Jobi Joy