CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • ViewModel lifetime

    rated by 0 users
    Answered (Verified) This post has 1 verified answer | 2 Replies | 3 Followers

    Top 500 Contributor
    27 Posts
    cconte posted on Mon, Sep 19 2011 1:13 PM

    Hi folks,

    We're developing a business  WPF application  using  CSLA4 and Bxf . We have just encountered an issue to manage the ViewModel lifetime. Cause, we didn't anticipate the ViewModel keep persisting through the pages.

    Per exemple, one viewmodel has a timer, to get data data periodically. And this viewmodel continues to get data even when the relevant page is not being viewed because the viewmodel does not get destroyed when the user goes to a different page. (Maybe the timer should be in the page rather than the viewmodel?)

    Can ViewModels be destroyed when the user navigates away from the associated page that is using them?

    Is there an option with bxf to do this ?

    Thanks in advance for your help,

    Cédric

    Answered (Verified) Verified Answer

    Top 10 Contributor
    9,475 Posts
    Verified by cconte

    I answered this in the Bxf forum on CodePlex.

    Rocky

    All Replies

    Top 10 Contributor
    9,475 Posts
    Verified by cconte

    I answered this in the Bxf forum on CodePlex.

    Rocky

    Top 500 Contributor
    27 Posts
    cconte replied on Tue, Sep 20 2011 4:41 AM

    Thanks Rocky. It was helpful for our WM lifetime understanding..

    Below the link to Rocky answer.

    http://bxf.codeplex.com/discussions/273108#post674015

    Page 1 of 1 (3 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems