Why does the binding get updated only once in WPF user control?

Recently I struggled on my user control trying to make the dependency property be updated when I change the source of the binding. That confirmed my belief that WPF does not forgive any single developer’s mistake. For the sake of this post I simplified the code. The code of the user control was something like this And the xaml, here I use this control was like this Simple, noth…

By Mirek on (tags: dependency property, user control, WPF, categories: code)

Strange phenomenon after moving to Visual Studio 2012

Recently we moved our main WPF project to .net framework 4.5 and Visual Studio 2012. Then when I tried to preview some of basic views in Visual Studio designer I faced some strange problems. We have several user controls that we use in our views. The error we get was After deeper investigation we found another exception This was mysterious, because when running the application,…

By Mirek on (tags: .net 4.5, user control, Visual Studio 2012, WPF, categories: architecture)