Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

41 righe
1.3 KiB

  1. using BPA.UIControl.Commons.KnownBoxes;
  2. using System;
  3. using System.Windows;
  4. using System.Windows.Controls;
  5. using System.Windows.Media.Animation;
  6. using System.Windows.Shapes;
  7. namespace BPA.UIControl
  8. {
  9. /// <summary>
  10. /// ListBox 帮助类
  11. /// </summary>
  12. public static class ListBoxHelper
  13. {
  14. /// <summary>
  15. /// 小滚动条
  16. /// </summary>
  17. public static readonly DependencyProperty IsShowLittleBarProperty =
  18. DependencyProperty.RegisterAttached("IsShowLittleBar", typeof(bool), typeof(ListBoxHelper), new PropertyMetadata(BooleanBoxes.FalseBox));
  19. /// <summary>
  20. /// Gets the is ShowLittleBar.
  21. /// </summary>
  22. /// <param name="obj">The obj.</param>
  23. /// <returns>A bool.</returns>
  24. public static bool GetIsShowLittleBar(DependencyObject obj)
  25. {
  26. return (bool)obj.GetValue(IsShowLittleBarProperty);
  27. }
  28. /// <summary>
  29. /// Sets the is ShowLittleBar.
  30. /// </summary>
  31. /// <param name="obj">The obj.</param>
  32. /// <param name="value">If true, value.</param>
  33. public static void SetIsShowLittleBar(DependencyObject obj, bool value)
  34. {
  35. obj.SetValue(IsShowLittleBarProperty, BooleanBoxes.Box(value));
  36. }
  37. }
  38. }