MobileButtonStripItems.cs 528 B

12345678910111213141516
  1. using System.Collections.Generic;
  2. using System.Collections.ObjectModel;
  3. using System.Collections.Specialized;
  4. namespace InABox.Mobile
  5. {
  6. public class MobileButtonStripItems : ObservableCollection<MobileButtonStripItem>
  7. {
  8. public void AddRange(IEnumerable<string> items)
  9. {
  10. foreach (var item in items)
  11. Add(new MobileButtonStripItem() { Text = item } );
  12. OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
  13. }
  14. }
  15. }