void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.View = ((MetroDemo.ExampleWindows.IconsWindow)(target)); return; case 2: this.IconsListBox = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }