public List<V> GetViews<V>() where V : View
        {
            var views = from item in dockLayoutManager1.GetItems()
                        where item is LayoutPanel && ((LayoutPanel)item).Content.GetType() == typeof(V)
                        select ((LayoutPanel)item).Content as V;
            return views.ToList();
        }

 

相关文章:

  • 2021-10-30
  • 2021-09-25
  • 2021-06-17
  • 2021-06-12
  • 2021-11-06
  • 2021-11-18
  • 2021-10-27
猜你喜欢
  • 2021-06-10
  • 2022-12-23
  • 2021-10-04
  • 2022-01-11
  • 2021-05-27
  • 2022-12-23
相关资源
相似解决方案