I have a dream:
Im working on a note-taking application, where everyone can store notes and tag them. Now, it would be nice if the users could use the application for several purposes: Store book-information, recipes, checklists etc…
Book-information template http://dl.danielgilbert.de/templatetable.png
Here we have a book-information template. I could imagine a template selector underneath the title box, where you could select a template to enter information in an organized way. But I’m stuck.
- How would you actually “load” or “create” such a template?
- How would you store the data entered?
- How would you enable basic formatting options in the textfields?
- And finally: I would need a non-editable template for the overview, filled with the data that has been entered in the edit-mode.
I know, it’s not an easy question, but maybe there are some pretty good ideas out there. 🙂
Ok,
obviously it’s pretty dead simple to achieve what I want: If you enter anything into a control, it will be serialized if you use the XamlWriter. I could store the serialized Xaml and read it back when the note gets loaded. So, finally, the user will end up with a file where he enters some Markup like:
And in the Edit-Screen, the whole markup will be serialized with it’s values.
However, this has the drawback that you cannot change the template once assigned, or you cannot change the layout if the basic template changes. Maybe I’ll get an idea how to achieve this.