Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

32 rindas
894 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Collections.ObjectModel;
  7. using System.Collections;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. namespace BPA.UIControl
  11. {
  12. public class PageBarHelper<T>
  13. {
  14. public ObservableCollection<T> Colles { get; set; } = new ObservableCollection<T>();
  15. public static readonly DependencyProperty ItemsSourceProperty =
  16. DependencyProperty.Register("ItemsSource", typeof(IEnumerable), typeof(PageBarHelper<T>), new(default));
  17. public static IEnumerable GetValue(DependencyObject d)
  18. {
  19. return d.GetValue(ItemsSourceProperty) as IEnumerable;
  20. }
  21. public static void SetValue(DependencyObject d, IEnumerable value)
  22. {
  23. d.SetValue(ItemsSourceProperty, value);
  24. }
  25. }
  26. }