Using extension SDKs in without installing it

September 29, 2014

In my Windows 8.1 project I wanted to use the SQLite PCL library. I Installed it from nuget and everything worked great so I committed the changes to the source control and moved on. When my colleague pulled the changes, it didn't compiled. The nuget package installed an extension SDK for me but apparently it doesn't install it when you restore the package (very bad for CI). So it seems that the only solution is putting the SDK inside our 3rdParty folder and putting it as part of our source control, but unfortunately this wasn't an easy task – so im writing about...
no comments

Dependent DLLs are not copied if referenced only from XAML

September 19, 2014

I got a nasty exception in my project: A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll Additional information: Could not load file or assembly 'AThirdParty, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. To illusatrate, this how my solution looked like: I have a control library that uses another control library (doesn't matter if in the same solution or from 3rd party).MyControlLibrary reference a control from the AThirdParty dll only in one of its user-controls xaml:<Grid> <aThirdParty:ThirdPartyControl/> </Grid> MyWPFApplication used the user-control from MyControlLibrary inside its...
no comments

WPF Lite TreeView

September 18, 2014

I received a call from a client last week about bad performance in their WPF application. It turns out that they expected that some view that holds a tree will need to show a few tens of items BUT when they deployed it to customer site they were surprised that the amount of items was actually a few thousands. Long story short – WPF TreeView doesn't scale very good, trying to expand a node with thousands of sub-items can take a long time. Virtualization doesn't work either (especially if you work with .NET framework prior to 4.5) because it...
no comments

System.Reflection.AmbiguousMatchException from xaml in Windows Phone

September 3, 2014

Lately I ran into a tricky bug inside a Windows Phone application. Sometimes an unhandled exception was thrown that caused the application to crash. Looking into the logs showed that the exception was System.Reflection.AmbiguousMatchException which is caused when the reflection mechanism finds more than one option for a member in a class. TL;DR; – Don't bind in xaml to a property with new modifer  The reason for the exception was that one of the team members decided to derive a class from some entity - lets call the entity Person. public class Person { public int Age...