void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                ((ScrollViewer)target).ScrollChanged += new ScrollChangedEventHandler(this.ScrollViewer_ScrollChanged);
                break;

            case 2:
                this.mCompatibilityMode = (CustomRadioButton)target;
                break;

            case 3:
                this.mPerformanceMode = (CustomRadioButton)target;
                break;

            case 4:
                this.mDirectX = (CustomRadioButton)target;
                break;

            case 5:
                this.mGlMode = (CustomRadioButton)target;
                break;

            case 6:
                this.softwareDecoding = (CustomRadioButton)target;
                break;

            case 7:
                this.mVSyncHelp = (CustomPictureBox)target;
                break;

            case 8:
                this.mHelpCenterImage = (CustomPictureBox)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mOrientation = (CustomComboBox)target;
                break;

            case 2:
                this.mRadioButtons = (Grid)target;
                break;

            case 3:
                this.mResolution960x540 = (CustomRadioButton)target;
                break;

            case 4:
                this.mResolution1280x720 = (CustomRadioButton)target;
                break;

            case 5:
                this.mResolution1600x900 = (CustomRadioButton)target;
                break;

            case 6:
                this.mResolution1920x1080 = (CustomRadioButton)target;
                break;

            case 7:
                this.mResolution2560x1440 = (CustomRadioButton)target;
                break;

            case 8:
                this.CustomResolutionTextBoxes = (Grid)target;
                break;

            case 9:
                this.CustomResolutionWidth = (CustomTextBox)target;
                break;

            case 10:
                this.CustomResolutionHeight = (CustomTextBox)target;
                break;

            case 11:
                this.mDpi160 = (CustomRadioButton)target;
                break;

            case 12:
                this.mDpi240 = (CustomRadioButton)target;
                break;

            case 13:
                this.mDpi320 = (CustomRadioButton)target;
                break;

            case 14:
                this.mInfoIcon = (CustomPictureBox)target;
                break;

            case 15:
                this.mSaveButton = (CustomButton)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
 public static void Bind(CustomRadioButton tb, string path)
 {
     BindingOperations.SetBinding((DependencyObject)tb, ContentControl.ContentProperty, (BindingBase)BlueStacksUIBinding.GetLocaleBinding(path));
 }