private SceneControl AddSceenControl(Scene scene) { SceneControl sceneControl = new SceneControl(scene); ScenesWrapPanel.Children.Add(sceneControl); sceneControl.Removed += new EventHandler(sceneControl_Removed); return sceneControl; }
private void Button_Click(object sender, RoutedEventArgs e) { SceneControl sc = new SceneControl(); IainList.Items.Add(sc); }