public MainWindow() { InitializeComponent(); //Load Plugins WispControl.InitwispPlugManager(new WindowInteropHelper(this).Handle); wispManager = WispControl.wispPlugManager; this.DataContext = wispManager; int count = 0; foreach (UserControl temp in wispManager.GetUIList()) { this.RootContainer.Children.Add(temp); Grid.SetRow(temp, count); count++; } }
public static void InitwispPlugManager(IntPtr winPtr) { wispPlugManager = new WispPlugManager(winPtr); }