Hi, I am using the following code below to save and load the changes a user makes to shapes on a canvas (called 'myCanvas'). So I use the XamlWriter to save the entire Canvas to a file and the XamlReader to read. The XamlWriter writes appropriately but after calling the XamlReader the Canvas does not update with the saved content.
Am I missing a step?
I wouldn't approach it like this. A simpler way to do this would be to implement a value converter which did the heavy work of just displaying the appropriate image, rather than showing and hiding elements.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
With a limited Grid space, I want to have a list of TextBoxes (email addresses). If the TextBoxes fill up the Grid space I want a vertical scroll bar to appear, so that the TextBoxes don't run into the next Grid space. If the scroll bar is there (but grayed out) because the TextBoxes do not fill up the Grid space, that's OK.
Ahh. Yes. I didn't quite understand that. I haven't done any Binding before, but looks pretty straightforward. I'm sure I can figure it out with your sample. I appreciate it.
I had actually created a ListBox and populated it with TextBlocks showing the Email #, but that's it. I couldn't figure out how to populate it with a second item TextBoxes. Binding looks like the answer.