void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.root = ((GraphSharpTutorial01.Window1)(target)); return; case 2: this.graphLayout = ((GraphSharp.Controls.GraphLayout)(target)); return; } this._contentLoaded = true; }