Ejemplo n.º 1
0
 /// <summary>
 /// Updates the already drawn selection box
 /// </summary>
 /// <param name="selectionRectangle"></param>
 /// <returns></returns>
 private Rectangle UpdateSelectionBound(Rectangle selectionRectangle)
 {
     selectionRectangle.Width = m_SelectionRectangle.Width;
     selectionRectangle.Height = m_SelectionRectangle.Height;
     selectionRectangle.Margin = new Thickness(m_SelectionRectangle.Left, m_SelectionRectangle.Top,
         m_SelectionRectangle.Right, m_SelectionRectangle.Bottom);
     selectionRectangle.UpdateLayout();
     return selectionRectangle;
 }