예제 #1
0
 public override float ValueForOption(iCarousel carousel, iCarouselOption option, float aValue)
 {
     if (option == iCarouselOption.Spacing)
     {
         return(aValue * 1.1f);
     }
     return(aValue);
 }
예제 #2
0
        public override nfloat ValueForOption(iCarousel carousel, iCarouselOption option, nfloat defaultValue)
        {
            switch (option)
            {
            case iCarouselOption.Spacing: return(0.5f);
            }

            return(defaultValue);
        }
예제 #3
0
        public override nfloat ValueForOption(iCarousel carousel, iCarouselOption option, nfloat defaultValue)
        {
            switch (option)
            {
                case iCarouselOption.Spacing: return 0.5f;
            }

            return defaultValue;
        }
예제 #4
0
        public nfloat ValueForOption(iCarousel carousel, iCarouselOption option, nfloat value)
        {
            switch (option)
            {
            case iCarouselOption.Spacing:
                return((nfloat)(value * 1.1));

            case iCarouselOption.Wrap:
                return((nfloat)0.0);

            default:
                return(value);
            }
        }
            public override float ValueForOption(iCarousel carousel, iCarouselOption option, float value)
            {
                // customize carousel display
                switch (option)
                {
                case iCarouselOption.Wrap:
                    // normally you would hard-code this to true or false
                    return(owner.wrap ? 1.0f : 0.0f);

                case iCarouselOption.Spacing:
                    // add a bit of spacing between the item views
                    return(value * 1.05f);

                case iCarouselOption.FadeMax:
                    if (iCarouselType.Custom == carousel.Type)
                    {
                        return(0.0f);
                    }
                    return(value);

                default:
                    return(value);
                }
            }
 public override float ValueForOption(iCarousel carousel, iCarouselOption option, float value)
 {
     // customize carousel display
     switch (option) {
     case iCarouselOption.Wrap:
         // normally you would hard-code this to true or false
         return (owner.wrap ? 1.0f : 0.0f);
     case iCarouselOption.Spacing:
         // add a bit of spacing between the item views
         return value * 1.05f;
     case iCarouselOption.FadeMax:
         if (iCarouselType.Custom == carousel.Type) {
             return 0.0f;
         }
         return value;
     default:
         return value;
     }
 }
 public override float ValueForOption(iCarousel carousel, iCarouselOption option, float aValue)
 {
     if (option == iCarouselOption.Spacing) {
         return aValue * 1.1f;
     }
     return aValue;
 }
예제 #8
0
                                                                                                                                         
 public override nfloat ValueForOption(iCarousel carousel, iCarouselOption option, nfloat aValue)
                                                                                                                                         {
                                                                                                                                             if (option == iCarouselOption.Spacing)
                                                                                                                                             {
                                                                                                                                                 return(aValue * 1.1f);
                                                                                                                                             }
                                                                                                                                             if (option == iCarouselOption.Wrap)
                                                                                                                                             {
                                                                                                                                                 return(1.0f);
                                                                                                                                             }

                                                                                                                                             if (option == iCarouselOption.VisibleItems)
                                                                                                                                             {
                                                                                                                                                 return(7);
                                                                                                                                             }
                                                                                                                                             if (option == iCarouselOption.FadeMin)
                                                                                                                                             {
                                                                                                                                                 return(0);
                                                                                                                                             }
                                                                                                                                             if (option == iCarouselOption.FadeMax)
                                                                                                                                             {
                                                                                                                                                 return(0);
                                                                                                                                             }
                                                                                                                                             if (option == iCarouselOption.FadeRange)
                                                                                                                                             {
                                                                                                                                                 return(7);
                                                                                                                                             }
                                                                                                                                             return(aValue);
                                                                                                                                         }