hello

i made a UniformGrid (called it "bord") and added rectangles as children:

Code:
for i as integer = 0 to 200
       bord.children.add(new rectangle)
next
it works well, and i wanted to know if there's a code that whenever i click with the mouse on a specific rectangle it could be replaced with something else.

i am new to wpf so a clear explanation would be appreciated