views:

31

answers:

1

I am developing a Sketchflow prototype in Blend 4 and I need to share some state across the entire app - for instance - the currently selected item on screen 1. I looked at using a Datastore but it can only store simple types (strings, booleans,etc.) I want to store an entire object in there and then databind to it from other screens.

I didn't want to have to resort to a shared viewmodel if I didn't have to - it is a throw away prototype and didn't want to start architecting it like a real app.

Any ideas of exisitng facilities in Sketchflow that make this easy?

thanks Michael

A: 

The datastore is probably the simplest, but there are other relatively simple, throw away style things you can do.

  1. Static variables in your app.xaml.cs files
  2. Write your own behavior that has static variables to store global state
Chuck Hays