locked
set position in canvas RRS feed

  • Question

  • Hi
    iam facing a problem that we can set the position of ellipse and rectangle geometries using these code


    ellipseGeometry.Center = new Point(10,10);

    rectangleGeometry.Rect = new Rect(10,10,10,10);

    how can set the position of pathgeometry???


    please give a reply

    Vineeth

    Vineeth
    Thursday, October 16, 2008 4:12 AM

Answers

  • To set a Canvas child position you need to set one or more of the Attached Properties Canvas.Top, Canvas.Buttom, Canvas.Left, Canvas.Right or on the other hand to set its Margin.

    Hope it helped
    • Proposed as answer by udiko Thursday, October 16, 2008 4:38 PM
    • Marked as answer by Ji.Zhou Monday, October 20, 2008 12:00 PM
    • Unmarked as answer by Ji.Zhou Monday, October 20, 2008 12:00 PM
    • Marked as answer by Jim Zhou - MSFT Wednesday, October 22, 2008 9:45 AM
    Thursday, October 16, 2008 7:07 AM

All replies

  • To set a Canvas child position you need to set one or more of the Attached Properties Canvas.Top, Canvas.Buttom, Canvas.Left, Canvas.Right or on the other hand to set its Margin.

    Hope it helped
    • Proposed as answer by udiko Thursday, October 16, 2008 4:38 PM
    • Marked as answer by Ji.Zhou Monday, October 20, 2008 12:00 PM
    • Unmarked as answer by Ji.Zhou Monday, October 20, 2008 12:00 PM
    • Marked as answer by Jim Zhou - MSFT Wednesday, October 22, 2008 9:45 AM
    Thursday, October 16, 2008 7:07 AM


  • will you please check this thread

    clickhere



    Vineeth
    • Marked as answer by Ji.Zhou Monday, October 20, 2008 12:00 PM
    • Unmarked as answer by Ji.Zhou Monday, October 20, 2008 12:01 PM
    Thursday, October 16, 2008 8:10 AM