private void UpdateCount() { Count = ItemsSource != null ? ItemsSource.Count() : 0; FeturesFoundTextBlock.Text = Count == 1 ? "1 feature found" : string.Format("{0} features found", Count); }