title: Are the WPF Window position properties Left, Top, Height and Width ever actually Doubles?
body: <p>The position properties <a href="http://msdn.microsoft.com/en-us/library/system.windows.window.left.aspx" rel="nofollow noreferrer">Left</a>, <a href="http://msdn.microsoft.com/en-us/library/system.windows.window.top.aspx" rel="nofollow noreferrer">Top</a>, <a href="http://msdn.microsoft.com/en-us/library/system.windows.window.height.aspx" rel="nofollow noreferrer">Height</a> and <a href="http://msdn.microsoft.com/en-us/library/system.windows.window.width.aspx" rel="nofollow noreferrer">Width</a> of a WPF Window are Doubles. However when <a href="https://stackoverflow.com/questions/4926201/make-a-window-draggable-within-a-certain-boundary-wpf/4929816#4929816">interacting with windows messages</a> like <a href="http://msdn.microsoft.com/en-us/library/ms632632(v=VS.85).aspx" rel="nofollow noreferrer">WM_MOVING</a> and <a href="http://msdn.microsoft.com/en-us/library/ms632631(v=VS.85).aspx" rel="nofollow noreferrer">WM_MOVE</a>, one must cast the double to an <a href="http://msdn.microsoft.com/en-us/library/exx3b86w.aspx" rel="nofollow noreferrer">integral type</a>. </p>
  
  <p>This seemed okay to me since all the Windows Notifications seem to use integral types in all their positions arguments and I imagine that these messages are closely tied to the WPF postion properties.</p>
  
  <p>So the question is, am I correct in this assumption or can the windows notifications actually be doubles and eventually there's going to be some weird side-effect to this?</p>