protected override void InitializeFields()
        {
            base.InitializeFields();
            this.BitState[35184372088832L] = true;
            this.BitState[70368744177664L] = true;
            CarouselEllipsePath carouselEllipsePath = new CarouselEllipsePath();

            carouselEllipsePath.Center       = new Point3D(50.0, 50.0, 0.0);
            carouselEllipsePath.FinalAngle   = -100.0;
            carouselEllipsePath.InitialAngle = -90.0;
            carouselEllipsePath.U            = new Point3D(-20.0, -17.0, -50.0);
            carouselEllipsePath.V            = new Point3D(30.0, -25.0, -60.0);
            carouselEllipsePath.ZScale       = 500.0;
            this.carouselPath         = (ICarouselPath)carouselEllipsePath;
            this.BypassLayoutPolicies = true;
            this.carouselItemBehavior = new CarouselItemsLocationBehavior(this);
            this.items = new RadItemVirtualizationCollection((IVirtualViewport)this);
            this.items.ItemsChanged += new ItemChangedDelegate(this.OnItemsChanged);
            this.items.ItemTypes     = new Type[11]
            {
                typeof(RadButtonElement),
                typeof(RadImageItem),
                typeof(RadImageButtonElement),
                typeof(RadLabelElement),
                typeof(RadItemsContainer),
                typeof(RadRotatorElement),
                typeof(RadDropDownListElement),
                typeof(RadWebBrowserElement),
                typeof(RadTextBoxElement),
                typeof(RadCheckBoxElement),
                typeof(RadMaskedEditBoxElement)
            };
        }
Example #2
0
        protected override void InitializeFields()
        {
            base.InitializeFields();

            this.BitState[EnableLoopingStateKey] = true;
            this.BitState[VirtualModeStateKey]   = true;

            CarouselEllipsePath defaultPath = new CarouselEllipsePath();

            defaultPath.Center       = new Telerik.WinControls.UI.Point3D(50, 50, 0);
            defaultPath.FinalAngle   = -100;
            defaultPath.InitialAngle = -90;
            defaultPath.U            = new Telerik.WinControls.UI.Point3D(-20.0, -17.0, -50.0);
            defaultPath.V            = new Telerik.WinControls.UI.Point3D(30.0, -25.0, -60.0);
            defaultPath.ZScale       = 500;
            this.carouselPath        = defaultPath;

            this.BypassLayoutPolicies = true;
            this.carouselItemBehavior = new CarouselItemsLocationBehavior(this);

            this.items = new RadItemVirtualizationCollection(this);
            this.items.ItemsChanged += new ItemChangedDelegate(OnItemsChanged);
            this.items.ItemTypes     = new Type[] {
                typeof(RadButtonElement),
                typeof(RadImageItem),
                typeof(RadImageButtonElement),
                typeof(RadLabelElement),
                typeof(RadItemsContainer),
                typeof(RadRotatorElement),
                typeof(RadComboBoxElement),
                typeof(RadWebBrowserElement),
                typeof(RadTextBoxElement),
                typeof(RadCheckBoxElement),
                typeof(RadMaskedEditBoxElement)
            };
        }