adding IsActivated property

Jan 25, 2010 at 9:20 AM

protected override void OnWindowActivated()
        {
            base.OnWindowActivated();
            isActivated = true;

        }
        protected override void OnWindowDeactivated()
        {
            base.OnWindowDeactivated();
            isActivated = false;
        }

 

is it perhaps possible to add a property isActivated to the ViewModelBase class? So we know when the window is active.

Now I have to add it to each viewmodel...

 

Greetz

Manu

Coordinator
May 2, 2010 at 8:23 AM

I can add this to base class but if someone forgets to call base methods, the property will not be correct values. Ill add it though

Coordinator
May 4, 2010 at 9:17 AM
This is now added