MuchinfoNumericElementViewModel.cs 968 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Windows;
  2. namespace Muchinfo.DataPager.Base
  3. {
  4. public class MuchinfoNumericElementViewModel
  5. {
  6. public object Content
  7. {
  8. get;
  9. private set;
  10. }
  11. public int PageIndex
  12. {
  13. get;
  14. private set;
  15. }
  16. public bool IsCurrent
  17. {
  18. get;
  19. private set;
  20. }
  21. public string GroupName
  22. {
  23. get;
  24. private set;
  25. }
  26. public Style NumericButtonStyle
  27. {
  28. get;
  29. private set;
  30. }
  31. public MuchinfoNumericElementViewModel(object content, int pageIndex, bool isCurrent, string groupName, Style numericButtonStyle)
  32. {
  33. this.Content = content;
  34. this.PageIndex = pageIndex;
  35. this.IsCurrent = isCurrent;
  36. this.GroupName = groupName;
  37. this.NumericButtonStyle = numericButtonStyle;
  38. }
  39. }
  40. }