Creating Rectangle Dynamically?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vineetbindal
    New Member
    • Jan 2009
    • 57

    Creating Rectangle Dynamically?

    Hi all.


    I am building a silverlight application in which i have to create a number of rectangles using c#(which is fine)

    i have two major problems.

    1. i need to join several rectangles together using paths,lines based on different selection(say user clicks 1 then join some rectangles, user clicks two joins some different rectangles)(the problem is how to decide those joining points dynamically)



    2. i have displayed some values in rectangles using text blocks those values also changes depending on the selection. (the problem is when user changes his choice. the rectangles with the changed values are displayed but the rectangles with the previous stage are still there) how do i remove them or clear them.

    i tried. canvas1.childre n.remove(rectan gle1);

    but that does not work.

    Help please
Working...