public void Logout() { SecurityServices security = new SecurityServices(); security.LogoutUser(); // Debug.WriteLine("Realizar logout del usuario"); if (Contexto.Current.Sesion == null) { this.RaiseCanExecuteChanged(x => x.Logout()); this.RaiseCanExecuteChanged(x => x.Login()); this.RaiseCanExecuteChanged(x => x.UserInfo()); SelectedViewType = ViewType.Ninguno; // Esto anda!! FullName = null; } }