Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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