What is the Syntex to get the value of CanSave from ViewModelBase?

What is the Syntex to get the value of CanSave from ViewModelBase?

Old forum URL: forums.lhotka.net/forums/t/11261.aspx


Plum posted on Monday, March 26, 2012

 

 

 

I have a Property Change event from ViewModel.  In ViewModel Base there is a CanSave property and I don't know the C# Syntex to get this value from the Property Change event, object sender.

Object Hierarchy:

Csla.Xaml.ViewModelBase

Property Change Event:

public static void ViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)

{

// The code below does not work.

Csla.Xaml.ViewModelBase obj = (Csla.Xaml.ViewModelBase)sender;

}

 

Thanks

Copyright (c) Marimer LLC