コード例 #1
0
        public string GetFlippingStyleName(FlippingStyle flippingStyle)
        {
            switch (flippingStyle)
            {
            case FlippingStyle.None:
                return(UISettings.SettingsPage_FlippingStyle_None);

            case FlippingStyle.Shift:
                return(UISettings.SettingsPage_FlippingStyle_Shift);

            case FlippingStyle.Overlap:
                return(UISettings.SettingsPage_FlippingStyle_Overlap);
            }
            throw new NotSupportedException();
        }
コード例 #2
0
        public PageManipulatorBase CreateManipulator(FlippingStyle type, FlippingMode mode)
        {
            switch (type)
            {
                case FlippingStyle.None:
                    return new StaticDragPageManipulation(_panel, mode);

                case FlippingStyle.Overlap:
                    return new OverlappingDragPageManipulation(_panel, mode);

                case FlippingStyle.Shift:
                    return new ContinuousDragPageManipulation(_panel, mode);

                default:
                    throw new NotSupportedException();
            }
        }
コード例 #3
0
        public PageManipulatorBase CreateManipulator(FlippingStyle type, FlippingMode mode)
        {
            switch (type)
            {
            case FlippingStyle.None:
                return(new StaticDragPageManipulation(_panel, mode));

            case FlippingStyle.Overlap:
                return(new OverlappingDragPageManipulation(_panel, mode));

            case FlippingStyle.Shift:
                return(new ContinuousDragPageManipulation(_panel, mode));

            default:
                throw new NotSupportedException();
            }
        }
コード例 #4
0
 public string GetFlippingStyleName(FlippingStyle flippingStyle)
 {
     switch (flippingStyle)
     {
         case FlippingStyle.None:
             return UISettings.SettingsPage_FlippingStyle_None;
         case FlippingStyle.Shift:
             return UISettings.SettingsPage_FlippingStyle_Shift;
         case FlippingStyle.Overlap:
             return UISettings.SettingsPage_FlippingStyle_Overlap;
     }
     throw new NotSupportedException();
 }