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

BPAVirtualizingStackPanel.cs 666 B

1 년 전
123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Controls;
  7. namespace BPA.UIControl
  8. {
  9. /// <summary>
  10. /// 公开 BringIntoView() 的 VirtualizingStackPanel
  11. /// 当使用 TreeViewHelper.RightClickToSelected 需要使用该虚拟化 StackPanel 作为 ItemsPanel
  12. /// </summary>
  13. public class BPAVirtualizingStackPanel : VirtualizingStackPanel
  14. {
  15. /// <summary>
  16. /// Publically expose BringIndexIntoView.
  17. /// </summary>
  18. public void BringIntoView(int index)
  19. {
  20. this.BringIndexIntoView(index);
  21. }
  22. }
  23. }