是某类型:

                    if (this.FindName(ControlName).GetType() == typeof(LabelIMG))
                    {
                    }

具有某接口:

                    if (this.FindName(ControlName).GetType().GetInterface("IControl",true) == typeof(IControl))
                    {
                    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2021-04-22
  • 2021-09-03
  • 2022-12-23
  • 2021-06-09
猜你喜欢
  • 2022-12-23
  • 2022-01-30
  • 2022-01-14
  • 2022-02-28
  • 2021-10-14
相关资源
相似解决方案