//获取内部 ScrollViewer方法 public static T FindVisualChild<T>(DependencyObject obj) where T : DependencyObject { if (obj != null) { for (int i = 0; i < VisualTreeHelper.GetChildrenCount(obj); i++)
//取得特定名称的控件 Control control = Controls.Find("button1", true)[0]; //取得该控件的属性object o = control.GetType().GetProperty("PropertyName").GetValue(control, null); //取得该控件的事件System.Reflection.EventInfo ev = control.GetType().GetEvent("Cl