static void OnCameraPrototypeChanged(DependencyObject depObj, DependencyPropertyChangedEventArgs e)
        {
            FlippingControl cc3D = depObj as FlippingControl;

            if (cc3D != null && cc3D._viewport != null)
            {
                cc3D._viewport.Camera = cc3D.CreateCamera();
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((TestClient.FlippingControlWindow)(target));
                return;

            case 2:
                this.flipping = ((WPFCustomControls.Presentations.FlippingControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        static object ForceIsFrontOnView(DependencyObject sender, object value)
        {
            FlippingControl fc = (FlippingControl)sender;

            if (fc.CanFlip == false)
            {
                if ((bool)value == true)
                {
                    return((bool)false);
                }
                else
                {
                    return((bool)true);
                }
            }
            else
            {
                return((bool)value);
            }
        }