110,533
社区成员
发帖
与我相关
我的任务
分享
Assembly ass = Assembly.LoadFrom(ofg.FileName);
foreach (Type type in ass.GetTypes())
{
if (type.IsSubclassOf(typeof(FrameworkElement)))
{
UIElement obj = Activator.CreateInstance(type) as UIElement;
Canvas.SetTop(obj, 0);
Canvas.SetLeft(obj, 0);
schemaView.MainCanvas.Children.Add(obj);
}
}