I'm developing an XBAP and i have a simple requirement.
The DataContext
of the whole main page is set to an instance of my UserViewModel
. The UserViewModel
has a DependencyProperty
called AuthenticationState
which is an enum with values like 'Authenticated
','NotAutheticated
' and 'AuthenticationFailed
'.
Now, i need to respond to any change in this value by hiding/displaying various elements on the page.
What (and where) is the best way of doing that?