void MyItems_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { if (e.NewItems != null) { foreach (MyItems item in e.NewItems) { item.PropertyChanged += item_PropertyChanged; } } if (e.OldItems != null) { foreach (MyItems item in e.OldItems) { item.PropertyChanged -= item_PropertyChanged; } } } void item_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == "IsChecked") { if (MyItems.Any(i => i.IsChecked == true)) { ApplicationBar = (Microsoft.Phone.Shell.ApplicationBar)Resources["AppBarChecked"]; } else { ApplicationBar = (Microsoft.Phone.Shell.ApplicationBar)Resources["AppBarNotChecked"]; } } }
CustomMessageBox
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)