1  private TestTabControl TabControlParent
 2         {
 3             get
 4             {
 5                 TestTabControl parent = base.Parent as TestTabControl;
 6                 if (parent != null)
 7                 {
 8                     return parent;
 9                 }
10                 for (DependencyObject obj2 = this; obj2 != null; obj2 = VisualTreeHelper.GetParent(obj2))
11                 {
12                     TestTabControl control2 = obj2 as TestTabControl;
13                     if (control2 != null)
14                     {
15                         return control2;
16                     }
17                 }
18                 return null;
19             }
20         }

 

相关文章:

  • 2021-09-13
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-05-19
  • 2022-12-23
  • 2021-09-10
猜你喜欢
  • 2022-01-07
  • 2021-09-13
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案