I want to gather a list of WPF pitfalls. Issues with WPF that are not that well known and either have some serious design consequences or some major inconveniences.
One topic per answer.
List:
- WPF doesn't call your dependency property getters and setters.
- Mouse.GetPosition() does not always return a correct value.
- WPF and Winforms cannot share the same layout space
- When using a WPF ItemsControl that virtualizes (for example a ListView), virtualization is turned off when grouping is turned on.
- Binding to a CLR property (not a DependencyProperty) can cause a memory leak.
- CommandManager.RequerySuggested event is implemented as a weak event.
Prior .NET 4.0: