void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((CollectionSortFilterSample.MainWindow)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.StaffListDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 4: this.FilteredRoleComboBox = ((System.Windows.Controls.ComboBox)(target)); return; } this._contentLoaded = true; }