void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControlSelf = (SceneNodePropertyInspectorPane)target;
                break;

            case 2:
                this.InfoBar = (Border)target;
                break;

            case 3:
                this.SelectionNameDisplay = (StringEditor)target;
                break;

            case 4:
                this.IconImage = (Icon)target;
                break;

            case 5:
                this.SelectionTypeDisplay = (TextBlock)target;
                break;

            case 6:
                this.SearchBox = (ClearableTextBox)target;
                break;

            case 7:
                this.PopupHost = (Decorator)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
 private void OnCategoryContainerCommandsUpdateCategoryExpansionState(object sender, ExecutedRoutedEventArgs eventArgs)
 {
     this.Model.UpdateCategoryExpansion(SceneNodePropertyInspectorPane.GetCategoryContainer((RoutedEventArgs)eventArgs));
     eventArgs.Handled = true;
 }