Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Problem with StorageHandler and ViewModel WithParam

$
0
0
Hi,
I think that caliburn doesn't support a frequent situation.
I have a ViewModel and I navigate to it using WithParam to a property1. When I create its relative StorageHandler, I cannot configure Id using property1, because its value is available while saving, but not while restoring.
For this reason, the state is the same event for different viewmodel instances. For example, if I navigate to the same viewmodel setting property1 to an other value, event it's a new navigation, the engine try to restore using a state relative to another viewmodel.
How can I resolve this?

Thank you

Viewing all articles
Browse latest Browse all 1760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>