There is more then one Point class
- by Dmitry
Today I hit something very annoying while working with one of my colleagues. It seems there are two Point classes in .NET and by mistake we were trying for a good few minutes to figure out why our "Point(x,y)" wouldn’t take double, but only Int. Turns out we were using the wrong one since the XAML element in question needed the version with Double.
So, based on what you actually want to do, make sure you’re using the right namespace.
Please see below for MSDN reference links for each namespace version of Point, hope this saves you some time.
System.Windows Point (MSDN Ref - Double version)
System.Dawing Point (MSDN Ref - Int version)