private void TeamExplorerOnPropertyChanged(object sender, PropertyChangedEventArgs e) { if (TeamExplorer != null && e.PropertyName == CoreExtensions.GetMemberName(() => TeamExplorer.CurrentPage)) { IsInUserInfoPage = TeamExplorer.CurrentPage != null && TeamExplorer.CurrentPage.GetType() == typeof(UserInfoPage); } }
private async void TeamExplorerOnPropertyChanged(object sender, PropertyChangedEventArgs e) { if (TeamExplorer != null && e.PropertyName == CoreExtensions.GetMemberName(() => TeamExplorer.CurrentPage)) { TeamExplorer.PropertyChanged -= TeamExplorerOnPropertyChanged; eventRegistered = false; await RefreshAsync(); } }