Example #1
0
        WSwipeBehaviorOnInvoked GetSwipeBehaviorOnInvoked(SwipeBehaviorOnInvoked swipeBehaviorOnInvoked)
        {
            switch (swipeBehaviorOnInvoked)
            {
            case SwipeBehaviorOnInvoked.Auto:
                return(WSwipeBehaviorOnInvoked.Auto);

            case SwipeBehaviorOnInvoked.Close:
                return(WSwipeBehaviorOnInvoked.Close);

            case SwipeBehaviorOnInvoked.RemainOpen:
                return(WSwipeBehaviorOnInvoked.RemainOpen);
            }

            return(WSwipeBehaviorOnInvoked.Auto);
        }
Example #2
0
        public static WSwipeBehaviorOnInvoked ToPlatform(this SwipeBehaviorOnInvoked swipeBehaviorOnInvoked)
        {
            switch (swipeBehaviorOnInvoked)
            {
            case SwipeBehaviorOnInvoked.Auto:
                return(WSwipeBehaviorOnInvoked.Auto);

            case SwipeBehaviorOnInvoked.Close:
                return(WSwipeBehaviorOnInvoked.Close);

            case SwipeBehaviorOnInvoked.RemainOpen:
                return(WSwipeBehaviorOnInvoked.RemainOpen);
            }

            return(WSwipeBehaviorOnInvoked.Auto);
        }