title: Move a rectangle around a canvas
body: <p>I have a canvas in the middle of my application with controls around it.
  I have a socket that recieves Points and saves them in a list.</p>
  
  <p>I draw small 4x4 rectangles on the canvas for the number of points in my list..
  say theres 4 points.. theres 4 rectangles.</p>
  
  <p>I want to be able to move the rectangles when the points change with code.
  is this possible without storyboards or any 'animation' class? and how would I go about doing what I need?</p>
  
  <p>I have tried:</p>
  
  <pre><code>        'cMap.Children.Remove(r)
  
          'Dim nr As Rectangle = New Rectangle() With {.Width = 4, .Height = 4, .Name = "r" &amp; P.Name, .Fill = Brushes.Red}
          'r.RenderTransform = New TranslateTransform(P.Position.X, P.Position.Y)
  
          Canvas.SetTop(cMap.Children(cMap.Children.IndexOf(r)), (512 / 2) + P.Position.Y)
          Canvas.SetLeft(cMap.Children(cMap.Children.IndexOf(r)), (512 / 2) + P.Position.X)
          'nr.SetValue(Canvas.TopProperty, (512 / 2) + P.Position.Y)
          'nr.SetValue(Canvas.LeftProperty, (512 / 2) + P.Position.X) ' P.Position.X)
          'cMap.Children.Add(nr)
  </code></pre>
  
  <p>... and none of those make the rectangles move. Also I have made sure that the data is changing; to no luck. </p>