I'm working with Visual Studio 2008 and I have created a window with a Canvas in a ScrollViewer. On the canvas, I've placed an image and the code I've written places buttons on the canvas at certain locations. So far, so good, but I'm also trying to delete
certain buttons that have a certain content. My method looks like this:
content = generateContent(dp);
(Button btn in
(btn.Content == content)
I think my problem lies with the loop, as I don't know for sure if this is correct; does it loop over all the buttons that are children of the canvas? If that works, the contents of the button, which have been generated by generateContent(), are compared
to the content that is generated the moment this method is called.
What do I do wrong?
To provide some more information: every time I execute my program, it displays this er
View Complete Post