25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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