您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

32 行
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. }